diff options
| author | Nirmoy Das <[email protected]> | 2024-12-13 12:24:15 +0000 |
|---|---|---|
| committer | Nirmoy Das <[email protected]> | 2024-12-16 12:46:42 +0000 |
| commit | cda06412c06893a6f07a2fbf89d42a0972ec9e8e (patch) | |
| tree | 2250a99c7a7846fd1f413d2b394b8844d0704c15 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | drm/xe: Use non-interruptible wait when moving BO to system (diff) | |
| download | kernel-cda06412c06893a6f07a2fbf89d42a0972ec9e8e.tar.gz kernel-cda06412c06893a6f07a2fbf89d42a0972ec9e8e.zip | |
drm/xe: Wait for migration job before unmapping pages
Fix a potential GPU page fault during tt -> system moves by waiting for
migration jobs to complete before unmapping SG. This ensures that IOMMU
mappings are not prematurely torn down while a migration job is still in
progress.
v2: Use intr=false(Matt A)
v3: Update commit message(Matt A)
v4: s/DMA_RESV_USAGE_BOOKKEEP/DMA_RESV_USAGE_KERNEL(Thomas)
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/3466
Fixes: 75521e8b56e8 ("drm/xe: Perform dma_map when moving system buffer objects to TT")
Cc: Thomas Hellström <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Cc: [email protected] # v6.11+
Cc: Matthew Auld <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Reviewed-by: Thomas Hellström <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Nirmoy Das <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions
