Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon/dp_auxch: Ratelimit aux transfer debug messages

Aux transfers always fail with non-zero status flags when there's
nothing connected on the port, so we don't usually need to see all of
the debugging information from it. Also, we try reprobing a -lot-, so
without ratelimiting most of the kernel log is filled up with messages
from radeon_dp_aux_transfer_native.

Signed-off-by: Lyude <lyude@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Lyude and committed by
Alex Deucher
92c177b7 7bb0613e

+2 -1
+2 -1
drivers/gpu/drm/radeon/radeon_dp_auxch.c
··· 168 168 goto done; 169 169 } 170 170 if (tmp & AUX_RX_ERROR_FLAGS) { 171 - DRM_DEBUG_KMS("dp_aux_ch flags not zero: %08x\n", tmp); 171 + DRM_DEBUG_KMS_RATELIMITED("dp_aux_ch flags not zero: %08x\n", 172 + tmp); 172 173 ret = -EIO; 173 174 goto done; 174 175 }