summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
diff options
context:
space:
mode:
authorKenneth Feng <kenneth.feng@amd.com>2024-03-28 11:00:50 +0800
committerAlex Deucher <alexander.deucher@amd.com>2024-04-09 22:07:30 -0400
commit7c1d9e10e6643121f1ffe9c0903467cc8682eba8 (patch)
treeb380264c766844cbb045dd3dec91c924a9d5a6e6 /drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
parent52821adbc30668e9ebf3b236b2c9f9ac9a135446 (diff)
downloadlinux-stable-7c1d9e10e6643121f1ffe9c0903467cc8682eba8.tar.gz
linux-stable-7c1d9e10e6643121f1ffe9c0903467cc8682eba8.tar.bz2
linux-stable-7c1d9e10e6643121f1ffe9c0903467cc8682eba8.zip
drm/amd/pm: fix the high voltage issue after unload
fix the high voltage issue after unload on smu 13.0.10 Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c')
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
index 9c03296f92cd..67117ced7c6a 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c
@@ -2751,7 +2751,13 @@ static int smu_v13_0_0_set_mp1_state(struct smu_context *smu,
switch (mp1_state) {
case PP_MP1_STATE_UNLOAD:
- ret = smu_cmn_set_mp1_state(smu, mp1_state);
+ ret = smu_cmn_send_smc_msg_with_param(smu,
+ SMU_MSG_PrepareMp1ForUnload,
+ 0x55, NULL);
+
+ if (!ret && smu->smu_baco.state == SMU_BACO_STATE_EXIT)
+ ret = smu_v13_0_disable_pmfw_state(smu);
+
break;
default:
/* Ignore others */