]> Git Repo - linux.git/commitdiff
drm/i915: Just clear the mmiodebug before a register access
authorChris Wilson <[email protected]>
Mon, 3 Oct 2016 12:45:14 +0000 (13:45 +0100)
committerChris Wilson <[email protected]>
Mon, 3 Oct 2016 19:59:54 +0000 (20:59 +0100)
When we enable the per-register access mmiodebug, it is to detect which
access is illegal. Reporting on earlier untraced access outside of the
mmiodebug does not help debugging (as the suspicion is immediately put
upon the current register which is not at fault)!

References: https://bugs.freedesktop.org/show_bug.cgi?id=97985
Signed-off-by: Chris Wilson <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Cc: [email protected]
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_uncore.c

index a9b6c936aadd6a5875c1dddcee416e48a8217725..ee2306a79747ce90eb6ea862a8ab33b64280da3c 100644 (file)
@@ -796,10 +796,9 @@ __unclaimed_reg_debug(struct drm_i915_private *dev_priv,
                      const bool read,
                      const bool before)
 {
-       if (WARN(check_for_unclaimed_mmio(dev_priv),
-                "Unclaimed register detected %s %s register 0x%x\n",
-                before ? "before" : "after",
-                read ? "reading" : "writing to",
+       if (WARN(check_for_unclaimed_mmio(dev_priv) && !before,
+                "Unclaimed %s register 0x%x\n",
+                read ? "read from" : "write to",
                 i915_mmio_reg_offset(reg)))
                i915.mmio_debug--; /* Only report the first N failures */
 }
This page took 0.058191 seconds and 4 git commands to generate.