drm/amd/pm: inform SMU RLC status thus enable/disable DPM feature for vangogh
authorXiaomeng Hou <Xiaomeng.Hou@amd.com>
Tue, 1 Dec 2020 10:33:33 +0000 (18:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 10 Dec 2020 21:41:50 +0000 (16:41 -0500)
commita0f55287b50c3e4d2fae6e3a09d2c8ea81140897
tree503c543288e37e76c2baf2ca2a891775ac5e00c3
parentfe96eb197e98efa32c129c4af3b44813c42bb93f
drm/amd/pm: inform SMU RLC status thus enable/disable DPM feature for vangogh

RLC is halted when system suspend/shutdown. However, due to DPM enabled, PMFW is
unaware of RLC being halted and will continue sending messages, which would
eventually cause an ACPI hang. Use the system_feature_control interface to
notify SMU the status of RLC (Normal/OFF) thus enable/disable DPM feature.

Signed-off-by: Xiaomeng Hou <Xiaomeng.Hou@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Lazar Lijo <Lijo.Lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.h