OSDN Git Service

drm/i915: Defer enabling hangcheck to the first fake breadcrumb interrupt
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Feb 2017 20:58:49 +0000 (20:58 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 27 Feb 2017 21:57:22 +0000 (21:57 +0000)
commit19d0a5727123509f0fd8b84551d4715e86937df9
treeb99fc1754c178d1d9a37644e732cd2b623b6b4b5
parent56299fb7d9047cc1d25362827073b2ac0984ed21
drm/i915: Defer enabling hangcheck to the first fake breadcrumb interrupt

By deferring hangcheck to the fake breadcrumb interrupt, we can simply
the enabling procedure slightly - as by enabling the fake, we then
enable the hangcheck. By always enabling the hangcheck from each fake
interrupt (it will be a no-op for an already queued hangcheck), it will
make restoring the breadcrumbs after a reset simpler in the next patch.

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: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170227205850.2828-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_breadcrumbs.c