drm/i915: clear error registers after error capture
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 30 Aug 2018 13:24:24 +0000 (14:24 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 30 Aug 2018 16:00:41 +0000 (17:00 +0100)
commit096055487115883dc82fdebb5d16444585e4fc24
tree5952a669c89313e5933718993c1e6c9ae35fba55
parent381116d327b55b26cc99fb0fa78526c029fb969b
drm/i915: clear error registers after error capture

We need to clear the register in order to get correct value after the
next potential hang.

v2: Centralize error register clearing in i915_irq.c (Chris)

v3: Don't read gen8 register on < gen6 (Chris)

v4: Don't swap gen8+ & gen6+ code... (Chris)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180830132424.21940-1-lionel.g.landwerlin@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_irq.c