]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc516d86e76ee4e99d3b0ac3a160e36b9f18c1fc4
tree949523de2ffb0ad320f855013b1f0c1d909a0f43
parent30726638bbe6493ec199337ec70113a748aa63ff
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