drm/amdgpu/powerplay: Modify SMC message name for setting power profile mode
Subsystems (2)
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
@@ -698,7 +698,7 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, ureturn -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
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
Signed-off-by chen gong <[email protected]>--- 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@@ -698,7 +698,7 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, ureturn -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
[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
@@ -698,7 +698,7 @@ static int renoir_set_power_profile_mode(struct smu_context *smu, long *input, ureturn -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&data=02%7C01%7Cevan.quan%40amd.com%7C28cab167186b4d45b98608d82707913d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637302261221689997&sdata=16o7HVJd1iLxb%2Be%2BUkxHgp2%2BtEh%2FDLByI5iA7MAeaQc%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx