diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-25 13:16:02 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-25 13:22:43 +0100 |
commit | de867c20b94b6d52a0b10cb02f10a1f475abf7f5 (patch) | |
tree | 9de92c4c9427b4e13d24be78a31eed52ea3a639e /drivers/gpu/drm/i915/i915_drv.h | |
parent | 7ef54de7fdf13953c1721e4b6b43e7b8d76d5521 (diff) | |
download | lwn-de867c20b94b6d52a0b10cb02f10a1f475abf7f5.tar.gz lwn-de867c20b94b6d52a0b10cb02f10a1f475abf7f5.zip |
drm/i915: Include the kernel uptime in the error state
As well as knowing when the error occurred, it is more interesting to me
to know how long after booting the error occurred, and for good measure
record the time since last hw initialisation.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161025121602.1457-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index b4cb1f0f0632..7a621c74254e 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -746,6 +746,8 @@ struct intel_display_error_state; struct drm_i915_error_state { struct kref ref; struct timeval time; + struct timeval boottime; + struct timeval uptime; struct drm_i915_private *i915; @@ -2099,6 +2101,8 @@ struct drm_i915_private { * off the idle_work. */ struct delayed_work idle_work; + + ktime_t last_init_time; } gt; /* perform PHY state sanity checks? */ |