]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Wait on in-syncs when swicthing to dma-fence mode
authorMatthew Brost <matthew.brost@intel.com>
Fri, 12 Dec 2025 18:28:45 +0000 (10:28 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Mon, 15 Dec 2025 22:02:54 +0000 (14:02 -0800)
commit4ac9048d05017449dde6320694d6e4700a8b9f5f
tree8b346173f87b4d39e6a15a8edf99e9fbaab0f6a7
parent8533051ce92015e9cc6f75e0d52119b9d91610b6
drm/xe: Wait on in-syncs when swicthing to dma-fence mode

If a dma-fence submission has in-fences and pagefault queues are running
work, there is little incentive to kick the pagefault queues off the
hardware until the dma-fence submission is ready to run. Therefore, wait
on the in-fences of the dma-fence submission before removing the
pagefault queues from the hardware.

v2:
 - Fix kernel doc (CI)
 - Don't wait under lock (Thomas)
 - Make wait interruptable

Suggested-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patch.msgid.link/20251212182847.1683222-6-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_exec.c
drivers/gpu/drm/xe/xe_hw_engine_group.c
drivers/gpu/drm/xe/xe_hw_engine_group.h
drivers/gpu/drm/xe/xe_sync.c
drivers/gpu/drm/xe/xe_sync.h