]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix false positive "Unclaimed write" messages
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 20 Nov 2012 15:27:38 +0000 (13:27 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Nov 2012 16:47:07 +0000 (17:47 +0100)
commit8ca030b678e9fa737417f2f1f072f77e6f624832
treeb1ecb0e6291d6fd4368bf0028784e63bf967ccc5
parentb2bd4c6cec2c566c5f73674a1556f845e5ea68a3
drm/i915: fix false positive "Unclaimed write" messages

We don't check if the "unclaimed register" bit is set before we call
writel, so if it was already set before, we might print a misleading
message about "unclaimed write" on the wrong register.

This patch makes us check the unclaimed bit before the writel, so we
can print a new "Unknown unclaimed register before writing to %x"
message.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c