drm/i915: avoid unclaimed registers when capturing the error state
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 1 Nov 2013 15:32:08 +0000 (13:32 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 1 Nov 2013 17:54:51 +0000 (18:54 +0100)
commit9d1cb9147dbe45f6e94dc796518ecf67cb64b359
tree949523de2ffb0ad320f855013b1f0c1d909a0f43
parent26756809583c1023dcbc896261105c1e289d262b
drm/i915: avoid unclaimed registers when capturing the error state

Even though we only check for unclaimed registers while we're writing
registers, if we read a bad register we'll still trigger a CPU error
interrupt, and we'll print an "Unclaimed register" DRM_ERROR due to
that. To avoid this error, just avoid touching power domains that are
not enabled.

Use kzalloc so we're sure all the disabled domains will be zeroed on
the error state file. We already print the information that is enough
to discover if the power well is enabled on the error state file, so
this should not be a problem.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69747
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c