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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[AMD Official Use Only - Internal Distribution Only]

That's true.
Reviewed-by: Evan Quan <evan.quan@xxxxxxx>

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

I consulted Cai Land(Chuntian.Cai@xxxxxxx), 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@xxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxxx
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
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux