intel_error_decode: First try /sys/drm/card0/error for the error-state
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Aug 2013 22:41:54 +0000 (23:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Aug 2013 22:43:25 +0000 (23:43 +0100)
commitdbbf2e9b24d1488402269a803a230f341791d39a
tree83b8a1b84231f458d96ca906f05ad56c4a8035eb
parenta285f03f56050b9a9cb02f232078b63b4a181ed2
intel_error_decode: First try /sys/drm/card0/error for the error-state

As the sysfs is almost always mounted and readable, we have a higher
success rate checking for our error state there than in debugfs.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tools/intel_error_decode.c