summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_scheduler_types.h
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2021-07-27 03:23:24 +0300
committerJohn Harrison <John.C.Harrison@Intel.com>2021-07-28 03:31:45 +0300
commitc41ee2873eb37ffff1b4185262b8efefc0c0d6e3 (patch)
tree7b9d1ddcc39a90ba5a6b084896e112bdb63b20d2 /drivers/gpu/drm/i915/i915_scheduler_types.h
parenteb5e7da736f36f558b9f8992f5e691a5b3b46b84 (diff)
downloadlinux-c41ee2873eb37ffff1b4185262b8efefc0c0d6e3.tar.xz
drm/i915: Reset GPU immediately if submission is disabled
If submission is disabled by the backend for any reason, reset the GPU immediately in the heartbeat code as the backend can't be reenabled until the GPU is reset. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: John Harrison <John.C.Harrison@Intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210727002348.97202-10-matthew.brost@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_scheduler_types.h')
-rw-r--r--drivers/gpu/drm/i915/i915_scheduler_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_scheduler_types.h b/drivers/gpu/drm/i915/i915_scheduler_types.h
index 00384e2c5273..eaef233e9080 100644
--- a/drivers/gpu/drm/i915/i915_scheduler_types.h
+++ b/drivers/gpu/drm/i915/i915_scheduler_types.h
@@ -169,6 +169,11 @@ struct i915_sched_engine {
void (*destroy)(struct kref *kref);
/**
+ * @disabled: check if backend has disabled submission
+ */
+ bool (*disabled)(struct i915_sched_engine *sched_engine);
+
+ /**
* @kick_backend: kick backend after a request's priority has changed
*/
void (*kick_backend)(const struct i915_request *rq,