Skip to contentSkip to conversation

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

PATCH In review chen gong 3 participants 3 messages Jul 13, 2020 – Jul 14, 2020

Subsystems (2)
lore
Share & tools
lore

chen gong

author
#0 lore raw

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

I consulted Cai Land([email protected]), 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.

---
 drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1 -1
index 5071cfb..4fcb51e 100644
@@ -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) {
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · chen gong

I consulted Cai Land([email protected]), 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.

Weird.

Quoted 22 lines
---
 drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1 -2
index 5071cfb..4fcb51e 100644
@@ -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

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by on v1 1/1
#2 lore raw
In reply to chen gong

[AMD Official Use Only - Internal Distribution Only]

That's true.

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

I consulted Cai Land([email protected]), 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.

---
 drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +1 -1
index 5071cfb..4fcb51e 100644
@@ -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
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Cevan.quan%40amd.com%7C28cab167186b4d45b98608d82707913d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637302261221689997&amp;sdata=16o7HVJd1iLxb%2Be%2BUkxHgp2%2BtEh%2FDLByI5iA7MAeaQc%3D&amp;reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx