]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe/xe_guc_submit: Declare reset if banned or killed or wedged
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Fri, 10 May 2024 19:45:40 +0000 (12:45 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 14 May 2024 23:28:53 +0000 (16:28 -0700)
commitb31cfb47b27ae02ea7fb3f956b99c79356730e2a
tree77a6bf7b9e202d1562fc700f6b77c23378b8e09a
parentabdea2847acfe41313620a5359940522990018e3
drm/xe/xe_guc_submit: Declare reset if banned or killed or wedged

Add an additional condition to the reset_status guc_exec_queue_op that
returns true if the exec queue has been banned or killed or wedged.  The
reset_status op is only used for exiting any xe_wait_user_fence_ioctl
that waits on an exec queue without timing out, so doing this will exit
the ioctl early in cases where the exec queue can no longer function,
such as after a GuC stop during a reset.

Suggested-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240510194540.3246991-3-jonathan.cavitt@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c