]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Simplify pinned bo iteration
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 21 Mar 2025 13:37:09 +0000 (14:37 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 21 Mar 2025 16:07:53 +0000 (17:07 +0100)
commitf3e08e98bf408a44182b0e3e946521a0e9b5482f
tree2d0a0cf14e5c0e28e330f5e7e3bd69fd6a51f718
parent7c53ff050ba88bb37eed3e17f2bb8ec592d83302
drm/xe: Simplify pinned bo iteration

Introduce and use a helper to iterate over the various pinned bo lists.
There are a couple of slight functional changes:

1) GGTT maps are now performed with the bo locked.
2) If the per-bo callback fails, keep the bo on the original list.

v2:
- Skip unrelated change in xe_bo.c

Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250321133709.75327-1-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_bo_evict.c