aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchen gong <curry.gong@amd.com>2020-07-13 16:11:24 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-07-14 15:41:51 -0400
commit98a34cf931e848f8489d3fb15a8f5fc03802ad65 (patch)
tree743deedbfa35a4d761b105b8b2890dc3b3995c0a
parentbe73e608ae2711dc8a1ab8b9549d9e348061b2ee (diff)
downloadlinux-davinci-98a34cf931e848f8489d3fb15a8f5fc03802ad65.tar.gz
drm/amdgpu/powerplay: Modify SMC message name for setting power profile mode
I consulted Cai Land(Chuntian.Cai@amd.com), he told me corresponding smc message name to fSMC_MSG_SetWorkloadMask() is "PPSMC_MSG_ActiveProcessNotify" in firmware code of Renoir. Strange though it may seem, but it's a fact. Signed-off-by: chen gong <curry.gong@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/amd/powerplay/renoir_ppt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/renoir_ppt.c b/drivers/gpu/drm/amd/powerplay/renoir_ppt.c
index 67476047c067d..fbb3f3a0dff73 100644
--- a/drivers/gpu/drm/amd/powerplay/renoir_ppt.c
+++ b/drivers/gpu/drm/amd/powerplay/renoir_ppt.c
@@ -689,7 +689,7 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, u
return -EINVAL;
}
- ret = smu_send_smc_msg_with_param(smu, SMU_MSG_SetWorkloadMask,
+ ret = smu_send_smc_msg_with_param(smu, SMU_MSG_ActiveProcessNotify,
1 << workload_type,
NULL);
if (ret) {