[PATCH] drm/amdgpu/powerplay: Modify SMC message name for setting power profile mode

Quan, Evan Evan.Quan at amd.com
Tue Jul 14 02:34:33 UTC 2020


[AMD Official Use Only - Internal Distribution Only]

That's true.
Reviewed-by: Evan Quan <evan.quan at amd.com>

-----Original Message-----
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of chen gong
Sent: Monday, July 13, 2020 4:34 PM
To: amd-gfx at lists.freedesktop.org
Cc: Gong, Curry <Curry.Gong at amd.com>
Subject: [PATCH] drm/amdgpu/powerplay: Modify SMC message name for setting power profile mode

I consulted Cai Land(Chuntian.Cai at 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 at amd.com>
---
 drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/powerplay/renoir_ppt.c b/drivers/gpu/drm/amd/powerplay/renoir_ppt.c
index 5071cfb..4fcb51e 100644
--- a/drivers/gpu/drm/amd/powerplay/renoir_ppt.c
+++ b/drivers/gpu/drm/amd/powerplay/renoir_ppt.c
@@ -698,7 +698,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) {
--
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cevan.quan%40amd.com%7C28cab167186b4d45b98608d82707913d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637302261221689997&sdata=16o7HVJd1iLxb%2Be%2BUkxHgp2%2BtEh%2FDLByI5iA7MAeaQc%3D&reserved=0


More information about the amd-gfx mailing list