mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-21 04:53:46 -04:00
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
This commit is contained in:
committed by
John Harrison
parent
eb5e7da736
commit
c41ee2873e
@@ -440,6 +440,11 @@ static void default_destroy(struct kref *kref)
|
||||
kfree(sched_engine);
|
||||
}
|
||||
|
||||
static bool default_disabled(struct i915_sched_engine *sched_engine)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
struct i915_sched_engine *
|
||||
i915_sched_engine_create(unsigned int subclass)
|
||||
{
|
||||
@@ -454,6 +459,7 @@ i915_sched_engine_create(unsigned int subclass)
|
||||
sched_engine->queue = RB_ROOT_CACHED;
|
||||
sched_engine->queue_priority_hint = INT_MIN;
|
||||
sched_engine->destroy = default_destroy;
|
||||
sched_engine->disabled = default_disabled;
|
||||
|
||||
INIT_LIST_HEAD(&sched_engine->requests);
|
||||
INIT_LIST_HEAD(&sched_engine->hold);
|
||||
|
||||
Reference in New Issue
Block a user