Commit 02196c77 authored by Mika Kuoppala's avatar Mika Kuoppala Committed by Daniel Vetter

drm/i915: Spam less on dp aux send/receive problems

If we encounter frequent problems with dp aux channel
communications, we end up spamming the dmesg with the
exact similar trace and status.

Inject a new backtrace only if we have new information
to share as otherwise we flush out all other important
stuff.
Signed-off-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 842315ee
...@@ -849,8 +849,15 @@ intel_dp_aux_ch(struct intel_dp *intel_dp, ...@@ -849,8 +849,15 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,
} }
if (try == 3) { if (try == 3) {
WARN(1, "dp_aux_ch not started status 0x%08x\n", static u32 last_status = -1;
I915_READ(ch_ctl)); const u32 status = I915_READ(ch_ctl);
if (status != last_status) {
WARN(1, "dp_aux_ch not started status 0x%08x\n",
status);
last_status = status;
}
ret = -EBUSY; ret = -EBUSY;
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment