On Wed, Dec 5, 2012 at 5:38 PM, Damien Lespiau <damien.lespiau at intel.com> wrote: > On Thu, Nov 15, 2012 at 4:17 PM, Daniel Vetter <daniel.vetter at ffwll.ch> wrote: >> +++ b/drivers/gpu/drm/i915/i915_debugfs.c >> @@ -1596,7 +1596,7 @@ i915_wedged_read(struct file *filp, >> >> len = snprintf(buf, sizeof(buf), >> "wedged : %d\n", >> - atomic_read(&dev_priv->gpu_error.wedged)); >> + atomic_read(&dev_priv->gpu_error.reset_counter)); > > I was wondering if you might want to expose wedge as > (gpu_error.reset_counter == I915_WEDGED) and have a separate > reset_counter set to (gpu_error.reset_counter >> 1) Other interfaces are equally raw in debugfs, so I've figured this is good enough ... -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch