drm/amd/powerplay: enable thermal throttling logging support V2
authorEvan Quan <evan.quan@amd.com>
Fri, 22 May 2020 07:42:40 +0000 (15:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 May 2020 17:55:07 +0000 (13:55 -0400)
commitbcdc7c05bd2dd8fa8afbd725110d5ec3075d4b42
tree973dd6253d0e225765bd4ced9e3b22fc8e703f0e
parent8c0bba64795fdfa89299aa160887ef3ff85c77d2
drm/amd/powerplay: enable thermal throttling logging support V2

Currently this feature is supported on Arcturus only. PMFW will
interrupt driver the first time when thermal throttling happened
and every one second afterwards if the throttling continuing. On
receiving the 1st interrupt, driver logs it the first time. However,
if the throttling continues, the logging will be performed every
minute to avoid log flooding.

V2: simplify the implemention by ratelimited printk

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smu_v11_0.c