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_gem_debugfs.c | |
parent | 832cc28d5bc676331e6376d940ae45d5937aa688 (diff) | |
download | lwn-8a90523639f49dc4b4fa7ae47bb9c8ed73ea8577.tar.gz lwn-8a90523639f49dc4b4fa7ae47bb9c8ed73ea8577.zip |
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_gem_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_debugfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_debugfs.c b/drivers/gpu/drm/i915/i915_gem_debugfs.c index 9a44bfcb8139..cb3b97405fbf 100644 --- a/drivers/gpu/drm/i915/i915_gem_debugfs.c +++ b/drivers/gpu/drm/i915/i915_gem_debugfs.c @@ -343,6 +343,8 @@ static int i915_error_state(struct seq_file *m, void *unused) error = dev_priv->first_error; + seq_printf(m, "Time: %ld s %ld us\n", error->time.tv_sec, + error->time.tv_usec); seq_printf(m, "EIR: 0x%08x\n", error->eir); seq_printf(m, " PGTBL_ER: 0x%08x\n", error->pgtbl_er); seq_printf(m, " INSTPM: 0x%08x\n", error->instpm); |