]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Do not short-circuit tasklets during reset
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 13 Jul 2018 20:35:28 +0000 (21:35 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 13 Jul 2018 21:32:20 +0000 (22:32 +0100)
commit52d9cc6a64698f0435ef8353d7a36e31c469280f
treec86e5260918def9edae460cadef3ad0052a6bf73
parentae64469be2df1320ade3ed35cb4603b1ffc40f18
drm/i915: Do not short-circuit tasklets during reset

Inside intel_engine_is_idle(), we flush the tasklet to ensure that is
being run in a timely fashion (ksoftirqd has taught us to expect the
worst). However, if we are in the middle of reset, the HW may not yet be
ready to execute the submission tasklet and so we must respect the
disable flag.

Fixes: fe1d1b3a621c ("drm/i915: Speed up idle detection by kicking the tasklets")
Testcase: igt/drv_selftest/live_hangcheck
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180713203529.1973-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_engine_cs.c