]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Move irq state manipulation inside irq disabled region
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 2 Mar 2018 13:12:46 +0000 (13:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 2 Mar 2018 23:11:11 +0000 (23:11 +0000)
commit727e4faa4352e89e846347cde9455f8ccf1ecc7d
treec9c80087ae6c56d95882df847e4870e32434577a
parent337346884bb25208494ee0e5d479a2ce20ba1b9e
drm/i915/execlists: Move irq state manipulation inside irq disabled region

Although this state (execlists->active and engine->irq_posted) itself is
not protected by the engine->timeline spinlock, it does conveniently
ensure that irqs are disabled. We can use this to protect our
manipulation of the state and so ensure that the next IRQ to arrive sees
consistent state and (hopefully) ignores the reset engine.

Suggested-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180302131246.22036-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c