]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/sched: Add several job helpers to avoid drivers touching scheduler state
authorMatthew Brost <matthew.brost@intel.com>
Tue, 9 Dec 2025 20:00:38 +0000 (12:00 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Sat, 13 Dec 2025 08:34:20 +0000 (00:34 -0800)
commit38b069333b58c86b7588d59cc55a065611190926
treec92084dff459c6eb9cc078fff1e1c97d3241045f
parent343f5683cfa443000904c88ce2e23656375fc51c
drm/sched: Add several job helpers to avoid drivers touching scheduler state

In the past, drivers used to reach into scheduler internals—this must
end because it makes it difficult to change scheduler internals, as
driver-side code must also be updated.

Add helpers to check if the scheduler is stopped and to query a job’s
signaled state to avoid reaching into scheduler internals. These are
expected to be used driver-side in recovery and debug flows.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Link: https://patch.msgid.link/20251209200039.1366764-2-matthew.brost@intel.com
drivers/gpu/drm/scheduler/sched_main.c
include/drm/gpu_scheduler.h