]> git.baikalelectronics.ru Git - kernel.git/commit
drm/powerplay: Ratelimit PP_ASSERT warnings
authorKent Russell <kent.russell@amd.com>
Wed, 12 Feb 2020 14:33:13 +0000 (09:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Feb 2020 21:04:31 +0000 (16:04 -0500)
commit9c82fffe574a8f2e503fc78dac316e4f544204c7
treec0f1673c208b784f31690d2933208eeab1250fb8
parent9e1741d6e3ce274c9f887f5de52fae1d316f3d3a
drm/powerplay: Ratelimit PP_ASSERT warnings

In certain situations the message could be reported dozens-to-hundreds of
times, based on how often the function is called.
E.g. If MCLK DPM, any calls to get/set MCLK will result in a failure
message, potentially flooding dmesg. Ratelimit the warnings to avoid
this flood.

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/inc/pp_debug.h