]> www.infradead.org Git - users/hch/configfs.git/commit
drm/xe: Invert runnable_state / pending enable check and assert
authorMatthew Brost <matthew.brost@intel.com>
Fri, 14 Jun 2024 06:13:43 +0000 (23:13 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 20 Jun 2024 22:33:14 +0000 (15:33 -0700)
commit0d39640ace670bccb7f03b2a9e5463ec0885a9ca
tree0c28c1a284fb557928d28622b8eb70d378288a57
parent2b79878b0784ba7253ad9b8dee66495b288272c9
drm/xe: Invert runnable_state / pending enable check and assert

Rather than checking for pending enable and asserting runnable_state ==
1 in sched done handler, invert these. This is more robust code taking
action based on the G2H message and asserting KMD tracking state is
correct.

Suggested-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240614061343.2931649-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c