Skip to content

Commit 40bcf6e

Browse files
committed
Merge tag 'drm-xe-fixes-2025-09-03' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes
- Fix incorrect migration of backed-up object to VRAM (Thomas) Signed-off-by: Dave Airlie <[email protected]> From: Rodrigo Vivi <[email protected]> Link: https://lore.kernel.org/r/[email protected]
2 parents 42e0a73 + 379b3c9 commit 40bcf6e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/xe/xe_bo.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,8 +819,7 @@ static int xe_bo_move(struct ttm_buffer_object *ttm_bo, bool evict,
819819
return ret;
820820
}
821821

822-
tt_has_data = ttm && (ttm_tt_is_populated(ttm) ||
823-
(ttm->page_flags & TTM_TT_FLAG_SWAPPED));
822+
tt_has_data = ttm && (ttm_tt_is_populated(ttm) || ttm_tt_is_swapped(ttm));
824823

825824
move_lacks_source = !old_mem || (handle_system_ccs ? (!bo->ccs_cleared) :
826825
(!mem_type_is_vram(old_mem_type) && !tt_has_data));

0 commit comments

Comments
 (0)