Skip to content

Commit 528cef1

Browse files
nirmoyThomas Hellström
authored andcommitted
drm/xe: Use non-interruptible wait when moving BO to system
Ensure a non-interruptible wait is used when moving a bo to XE_PL_SYSTEM. This prevents dma_mappings from being removed prematurely while a GPU job is still in progress, even if the CPU receives a signal during the operation. Fixes: 75521e8 ("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+ Suggested-by: 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]> (cherry picked from commit dc5e20a) Signed-off-by: Thomas Hellström <[email protected]>
1 parent a53da2f commit 528cef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ static int xe_bo_move(struct ttm_buffer_object *ttm_bo, bool evict,
724724
new_mem->mem_type == XE_PL_SYSTEM) {
725725
long timeout = dma_resv_wait_timeout(ttm_bo->base.resv,
726726
DMA_RESV_USAGE_BOOKKEEP,
727-
true,
727+
false,
728728
MAX_SCHEDULE_TIMEOUT);
729729
if (timeout < 0) {
730730
ret = timeout;

0 commit comments

Comments
 (0)