]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe416b192696587e9adbe20822c0cf1856816658
tree973dd6253d0e225765bd4ced9e3b22fc8e703f0e
parent629778100e1fa0a9cf95980d391f02ad4204edb8
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