diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-07-11 16:48:03 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-07-13 15:33:37 -0700 |
commit | 8a90523639f49dc4b4fa7ae47bb9c8ed73ea8577 (patch) | |
tree | 6b7142b32b16c2f87e38420568a39f92968692b3 /drivers/gpu/drm/i915/i915_drv.h | |
parent | 832cc28d5bc676331e6376d940ae45d5937aa688 (diff) |
drm/i915: refactor error detection & collection
This patch refactors the existing error detection and collection code,
placing most of it in i915_handle_error(). Additionally, we introduce a
work queue for scheduling post-crash tasks such as generating a uevent.
Using the uevent facility, userspace should be able to capture a
post-mortem dump for diagnostics.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index d0875287588..b05b44dd3bf 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -229,6 +229,7 @@ typedef struct drm_i915_private { spinlock_t error_lock; struct drm_i915_error_state *first_error; + struct work_struct error_work; /* Register state */ u8 saveLBB; |