drm/i915/dp: Ratelimit DP aux timeout messages
authorLyude <lyude@redhat.com>
Thu, 23 Feb 2017 03:31:02 +0000 (22:31 -0500)
committerLyude <lyude@redhat.com>
Thu, 23 Feb 2017 03:46:30 +0000 (22:46 -0500)
Right now this is just leaving a lot of spam in dmesg that makes real
issues more difficult to debug. As well (as noted by the comment right
above the DRM_DEBUG_KMS() call) this is normal behavior when there's
nothing connected to the DisplayPort connector.

Signed-off-by: Lyude <lyude@redhat.com>
drivers/gpu/drm/i915/intel_dp.c

index 024798a9c01613120139f1e59f46470241b746fb..fca0fcade2d6946213f1fa0c6c4ec4064937d470 100644 (file)
@@ -1121,7 +1121,8 @@ done:
        /* Timeouts occur when the device isn't connected, so they're
         * "normal" -- don't fill the kernel log with these */
        if (status & DP_AUX_CH_CTL_TIME_OUT_ERROR) {
-               DRM_DEBUG_KMS("dp_aux_ch timeout status 0x%08x\n", status);
+               DRM_DEBUG_KMS_RATELIMITED("dp_aux_ch timeout status 0x%08x\n",
+                                         status);
                ret = -ETIMEDOUT;
                goto out;
        }