drm/i915: add error_state sysfs entry
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 6 Jun 2013 14:38:54 +0000 (17:38 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Jul 2013 17:39:31 +0000 (19:39 +0200)
commitef86ddced720fddc3835558447a7f594d3609c73
tree3813cc9efcb5ff0ab7664167396a7c6b2f838052
parent4dc955f7f5241a92767e2b3ffd74f49a82938999
drm/i915: add error_state sysfs entry

As getting error state doesn't anymore require big kmallocs,
make error state accessible also from sysfs.

v2: - error state clearing (Chris Wilson)
    - user hint, proper access mode bits and name (Daniel Vetter)

v3: release resources in proper order (Chris Wilson)

Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Apply Chris' s/error_state/error/ bikeshed on the sysfs
name. Also update the dmesg message, spotted by Chris.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_sysfs.c