Skip to contentSkip to conversation

drm/amdgpu/powerplay: using the FCLK DPM table to set the MCLK for DPM states consist of three entities :FCLK, UCLK, MEMCLK all these three clk change together , MEMCLK from FCLK.

PATCH In review Yuxian Dai 3 participants 4 messages Mar 31, 2020 – Apr 1, 2020

Subsystems (2)
lore
Share & tools
lore

Yuxian Dai

author
#0 lore raw

PATCH 1/1 drm/amdgpu/powerplay: using the FCLK DPM table to set the MCLK for DPM states consist of three entities :FCLK, UCLK, MEMCLK all these three clk change together , MEMCLK from FCLK.

From: "[email protected]" <[email protected]>

Change-Id Ia45f3069fc7ae56db495cb5a3865e2c50c550774
---
 drivers/gpu/drm/amd/powerplay/renoir_ppt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.h +1 -1
index 2a390ddd37dd..89cd6da118a3 100644
@@ -37,7 +37,7 @@ extern void renoir_set_ppt_funcs(struct smu_context *smu);
 			freq = table->SocClocks[dpm_level].Freq;	\
 			break;						\
 		case SMU_MCLK:						\
-			freq = table->MemClocks[dpm_level].Freq;	\
+			freq = table->FClocks[dpm_level].Freq;	\
 			break;						\
 		case SMU_DCEFCLK:					\
 			freq = table->DcfClocks[dpm_level].Freq;	\
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Yuxian Dai

From: "[email protected]" <[email protected]>

Your patch title is too long; it is basically the whole patch description rather than just a title. Please split it up between the title and descriptions. E.g.,

drm/amdgpu/powerplay: fix MCLK DPM handling for renoir

Using the FCLK DPM table to set the MCLK for DPM states consist of three entities:
FCLK
UCLK
MEMCLK
All these three clk change together, MEMCLK from FCLK, so use the fclk frequency.

With that fixed, patch is:

Quoted 23 lines
Change-Id Ia45f3069fc7ae56db495cb5a3865e2c50c550774
---
 drivers/gpu/drm/amd/powerplay/renoir_ppt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.h +1 -2
index 2a390ddd37dd..89cd6da118a3 100644
@@ -37,7 +37,7 @@ extern void renoir_set_ppt_funcs(struct smu_context *smu);
                        freq = table->SocClocks[dpm_level].Freq;        \
                        break;                                          \
                case SMU_MCLK:                                          \
-                       freq = table->MemClocks[dpm_level].Freq;        \
+                       freq = table->FClocks[dpm_level].Freq;  \
                        break;                                          \
                case SMU_DCEFCLK:                                       \
                        freq = table->DcfClocks[dpm_level].Freq;        \
--

2.17.1

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

#2 lore raw
Quoted 18 lines · Alex Deucher
Quoted 2 lines · Yuxian Dai

From: "[email protected]" <[email protected]>

Your patch title is too long; it is basically the whole patch description rather than just a title. Please split it up between the title and descriptions. E.g.,

drm/amdgpu/powerplay: fix MCLK DPM handling for renoir

Using the FCLK DPM table to set the MCLK for DPM states consist of three entities:
FCLK
UCLK
MEMCLK
All these three clk change together, MEMCLK from FCLK, so use the fclk frequency.

Quoted 3 lines

With that fixed, patch is:

Yes, and usually, we don't leave the commit message as empty. David, you need describe the detailed info in the commit not the title.

Thanks,
Ray

Quoted 23 lines
Quoted 23 lines
Change-Id Ia45f3069fc7ae56db495cb5a3865e2c50c550774
---
 drivers/gpu/drm/amd/powerplay/renoir_ppt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.h +1 -2
index 2a390ddd37dd..89cd6da118a3 100644
@@ -37,7 +37,7 @@ extern void renoir_set_ppt_funcs(struct smu_context *smu);
                        freq = table->SocClocks[dpm_level].Freq;        \
                        break;                                          \
                case SMU_MCLK:                                          \
-                       freq = table->MemClocks[dpm_level].Freq;        \
+                       freq = table->FClocks[dpm_level].Freq;  \
                        break;                                          \
                case SMU_DCEFCLK:                                       \
                        freq = table->DcfClocks[dpm_level].Freq;        \
--

2.17.1

Quoted 8 lines
Quoted 4 lines

_______________________________________________
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%7Cray.huang%40amd.com%7C541f2e15da804d81c5b508d7d57949d2%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637212590166168794&amp;sdata=7x4pBWEPuVHbb8ro%2Fpy5%2BgiJhrxWbLrxGqHSro9KUV8%3D&amp;reserved=0

_______________________________________________
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%7Cray.huang%40amd.com%7C541f2e15da804d81c5b508d7d57949d2%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637212590166168794&amp;sdata=7x4pBWEPuVHbb8ro%2Fpy5%2BgiJhrxWbLrxGqHSro9KUV8%3D&amp;reserved=0

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

#3 lore raw

[AMD Official Use Only - Internal Distribution Only]

Quoted 18 lines · Alex Deucher
Quoted 2 lines · Yuxian Dai

From: "[email protected]" <[email protected]>

Your patch title is too long; it is basically the whole patch description rather than just a title. Please split it up between the title and descriptions. E.g.,

drm/amdgpu/powerplay: fix MCLK DPM handling for renoir

Using the FCLK DPM table to set the MCLK for DPM states consist of three entities:
FCLK
UCLK
MEMCLK
All these three clk change together, MEMCLK from FCLK, so use the fclk frequency.

Quoted 3 lines

With that fixed, patch is:

Yes, and usually, we don't leave the commit message as empty. David, you need describe the detailed info in the commit not the title.

Quoted 1 line

missing a blank line, so the description confuse you . I will update it according your suggestion.

Thanks,
Ray

Quoted 24 lines
Quoted 24 lines
Change-Id Ia45f3069fc7ae56db495cb5a3865e2c50c550774
---
 drivers/gpu/drm/amd/powerplay/renoir_ppt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.h +1 -2
index 2a390ddd37dd..89cd6da118a3 100644
@@ -37,7 +37,7 @@ extern void renoir_set_ppt_funcs(struct smu_context *smu);
                        freq = table->SocClocks[dpm_level].Freq;        \
                        break;                                          \
                case SMU_MCLK:                                          \
-                       freq = table->MemClocks[dpm_level].Freq;        \
+                       freq = table->FClocks[dpm_level].Freq;  \
                        break;                                          \
                case SMU_DCEFCLK:                                       \
                        freq = table->DcfClocks[dpm_level].Freq;        \
--

2.17.1

Quoted 16 lines
Quoted 8 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fli
sts.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01% 7Cray.huang%40amd.com%7C541f2e15da804d81c5b508d7d57949d2%7C3dd8961fe 4884e608e11a82d994e183d%7C0%7C0%7C637212590166168794&amp;sdata=7x4pB WEPuVHbb8ro%2Fpy5%2BgiJhrxWbLrxGqHSro9KUV8%3D&amp;reserved=0

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
s.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=02%7C01%7Cra y.huang%40amd.com%7C541f2e15da804d81c5b508d7d57949d2%7C3dd8961fe4884e6 08e11a82d994e183d%7C0%7C0%7C637212590166168794&amp;sdata=7x4pBWEPuVHbb 8ro%2Fpy5%2BgiJhrxWbLrxGqHSro9KUV8%3D&amp;reserved=0

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