]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Return first unsignaled job first pending job helper
authorMatthew Brost <matthew.brost@intel.com>
Wed, 8 Oct 2025 21:45:03 +0000 (14:45 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 9 Oct 2025 10:22:20 +0000 (03:22 -0700)
commitb00d1e3fc8b7693c89ddae2ce34dc804eeb2ce37
treeff7f3a0ab0cbd129d58c453f5f0b3449c1ef8e08
parentf6375fb3aa9485d572d967c2e6ee1dde22f5ca34
drm/xe: Return first unsignaled job first pending job helper

In all cases where the first pending job helper is called, we only want
to retrieve the first unsignaled pending job, as this helper is used
exclusively in recovery flows. It is possible for signaled jobs to
remain in the pending list as the scheduler is stopped, so those should
be skipped.

Also, add kernel documentation to clarify this behavior.

v8:
 - Split out into own patch (Auld)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://lore.kernel.org/r/20251008214532.3442967-6-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gpu_scheduler.h