drm/i915: enable error detection & state collection
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 18 Jun 2009 23:56:52 +0000 (16:56 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 1 Jul 2009 17:50:02 +0000 (10:50 -0700)
commit63eeaf38251183ec2b1caee11e4a2c040cb5ce6c
treefca34774fbd842612f4e366afa6b037b0f3f39ea
parente83c2b0ff325f52dda1aff3572d0e1516216c54b
drm/i915: enable error detection & state collection

This patch enables error detection by enabling several types of error
interrupts.  When an error interrupt is received, the interrupt
handler captures the error state; hopefully resulting in an accurate
set of error data (error type, active head pointer, etc.).  The new
record is then available from sysfs.  The current code will also dump
the error state to the system log.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_debugfs.c
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h