Skip to contentSkip to conversation

drm/amd/powerplay: fix smu clock type change miss error

PATCH In review Wang, Kevin(Yang) 3 participants 3 messages Jul 11, 2019 – Jul 12, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/powerplay: fix smu clock type change miss error

in the smu module, use the smu_xxxclk type to identify the CLK type use SMU_SCLK, SMU_MCLK to replace PP_SCLK, PP_MCLK.

Change-Id Ifa870aea38f043e1983f6f0560eed2ac070b68b7
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +2 -2
index 1c15f02101fe..de6cc5d489cd 100644
@@ -1386,8 +1386,8 @@ int smu_adjust_power_state_dynamic(struct smu_context *smu,
 							 &soc_mask);
 			if (ret)
 				return ret;
-			smu_force_clk_levels(smu, PP_SCLK, 1 << sclk_mask);
-			smu_force_clk_levels(smu, PP_MCLK, 1 << mclk_mask);
+			smu_force_clk_levels(smu, SMU_SCLK, 1 << sclk_mask);
+			smu_force_clk_levels(smu, SMU_MCLK, 1 << mclk_mask);
 			break;
 
 		case AMD_DPM_FORCED_LEVEL_MANUAL:
Signature · 6 lines
2.22.0

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by Feifei Xu
#2 lore raw
Quoted 33 lines · Kevin(Yang)

in the smu module, use the smu_xxxclk type to identify the CLK type use SMU_SCLK, SMU_MCLK to replace PP_SCLK, PP_MCLK.

Change-Id Ifa870aea38f043e1983f6f0560eed2ac070b68b7

---
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +2 -2
index 1c15f02101fe..de6cc5d489cd 100644
@@ -1386,8 +1386,8 @@ int smu_adjust_power_state_dynamic(struct smu_context *smu,
                            &soc_mask);
           if (ret)
               return ret;
-            smu_force_clk_levels(smu, PP_SCLK, 1 << sclk_mask);
-            smu_force_clk_levels(smu, PP_MCLK, 1 << mclk_mask);
+            smu_force_clk_levels(smu, SMU_SCLK, 1 << sclk_mask);
+            smu_force_clk_levels(smu, SMU_MCLK, 1 << mclk_mask);
           break;
 
       case AMD_DPM_FORCED_LEVEL_MANUAL:
Signature · 6 lines
2.22.0

_______________________________________________
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 Evan Quan
#3 lore raw
In reply to a message not in the archive
Quoted 42 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Wang, Kevin(Yang)
Sent: Thursday, July 11, 2019 9:41 PM
To: [email protected]
Cc: Wang, Kevin(Yang) <[email protected]>; Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/powerplay: fix smu clock type change miss error

in the smu module, use the smu_xxxclk type to identify the CLK type use SMU_SCLK, SMU_MCLK to replace PP_SCLK, PP_MCLK.

Change-Id Ifa870aea38f043e1983f6f0560eed2ac070b68b7
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +1 -2
index 1c15f02101fe..de6cc5d489cd 100644
@@ -1386,8 +1386,8 @@ int smu_adjust_power_state_dynamic(struct
 smu_context *smu,
 							 &soc_mask);
 			if (ret)
 				return ret;
-			smu_force_clk_levels(smu, PP_SCLK, 1 <<
 sclk_mask);
-			smu_force_clk_levels(smu, PP_MCLK, 1 <<
 mclk_mask);
+			smu_force_clk_levels(smu, SMU_SCLK, 1 <<

sclk_mask);

drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +1 -0
+			smu_force_clk_levels(smu, SMU_MCLK, 1 <<

mclk_mask);

drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +0 -1
 			break;
 
 		case AMD_DPM_FORCED_LEVEL_MANUAL:
--

2.22.0

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