]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Don't copy pinned kernel bos twice on suspend
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 18 Sep 2025 09:22:05 +0000 (11:22 +0200)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 22 Sep 2025 12:30:05 +0000 (14:30 +0200)
commit9e69bafece43dcefec864f00b3ec7e088aa7fcbc
tree779446c73aff927c5fd19d1cb28c84d1662c831a
parent6372843af46edfd84d7145f4cb9f2b87dd9fdc62
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: c6a4d46ec1d7 ("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
drivers/gpu/drm/xe/xe_bo_evict.c