]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Reset the breadcrumbs IRQ more carefully
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Oct 2016 06:53:26 +0000 (07:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Oct 2016 07:27:23 +0000 (08:27 +0100)
commit206f07dc86a4ac1b6d0dca01f6f5ff76fe73020e
tree60122b41d94bebe6120feaad0719abc9c85433cc
parent30d5ae414813c9b230ac1a0f0ebadedc66119870
drm/i915: Reset the breadcrumbs IRQ more carefully

Along with the interrupt, we want to restore the fake-irq and
wait-timeout detection. If we use the breadcrumbs interface to setup the
interrupt as it wants, the auxiliary timers will also be restored.

v2: Cancel both timers as well, sanitize the IMR.

Fixes: de44a5363c60 ("drm/i915: Update reset path to fix incomplete requests")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161007065327.24515-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_breadcrumbs.c
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h