]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amdgpu/powerplay: Modify SMC message name for setting power profile mode
authorchen gong <curry.gong@amd.com>
Mon, 13 Jul 2020 08:11:24 +0000 (16:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jul 2020 19:41:51 +0000 (15:41 -0400)
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
drivers/gpu/drm/amd/powerplay/renoir_ppt.c

index 67476047c067d1d0f99b7ecba83ca2a00ed90dca..fbb3f3a0dff73f9324f1ae12e83daec8269d35c2 100644 (file)
@@ -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) {