Skip to content

Commit 77c8ede

Browse files
Thomas Hellströmrodrigovivi
authored andcommitted
drm/xe: Don't copy pinned kernel bos twice on suspend
We were copying the bo content the bos on the list "xe->pinned.late.kernel_bo_present" twice on suspend. Presumingly the intent is to copy the pinned external bos on the first pass. This is harmless since we (currently) should have no pinned external bos needing copy since a) exernal system bos don't have compressed content, b) We do not (yet) allow pinning of VRAM bos. Still, fix this up so that we copy pinned external bos on the first pass. We're about to allow bos pinned in VRAM. Fixes: c6a4d46 ("drm/xe: evict user memory in PM notifier") Cc: Matthew Auld <matthew.auld@intel.com> Cc: <stable@vger.kernel.org> # v6.16+ Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://lore.kernel.org/r/20250918092207.54472-2-thomas.hellstrom@linux.intel.com (cherry picked from commit 9e69baf) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent b67e742 commit 77c8ede

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/xe/xe_bo_evict.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ int xe_bo_evict_all(struct xe_device *xe)
158158
if (ret)
159159
return ret;
160160

161-
ret = xe_bo_apply_to_pinned(xe, &xe->pinned.late.kernel_bo_present,
162-
&xe->pinned.late.evicted, xe_bo_evict_pinned);
161+
ret = xe_bo_apply_to_pinned(xe, &xe->pinned.late.external,
162+
&xe->pinned.late.external, xe_bo_evict_pinned);
163163

164164
if (!ret)
165165
ret = xe_bo_apply_to_pinned(xe, &xe->pinned.late.kernel_bo_present,

0 commit comments

Comments
 (0)