diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-18 16:56:52 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-07-01 10:50:02 -0700 |
commit | 63eeaf38251183ec2b1caee11e4a2c040cb5ce6c (patch) | |
tree | fca34774fbd842612f4e366afa6b037b0f3f39ea /drivers/gpu/drm/i915/i915_dma.c | |
parent | e83c2b0ff325f52dda1aff3572d0e1516216c54b (diff) | |
download | op-kernel-dev-63eeaf38251183ec2b1caee11e4a2c040cb5ce6c.zip op-kernel-dev-63eeaf38251183ec2b1caee11e4a2c040cb5ce6c.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index f112c76..f833649 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -1180,6 +1180,7 @@ int i915_driver_load(struct drm_device *dev, unsigned long flags) pci_enable_msi(dev->pdev); spin_lock_init(&dev_priv->user_irq_lock); + spin_lock_init(&dev_priv->error_lock); dev_priv->user_irq_refcount = 0; ret = drm_vblank_init(dev, I915_NUM_PIPE); |