drm/amdgpu/powerplay:avoid to show invalid DPM table info
Subsystems (2)
PATCH 1/1 drm/amdgpu/powerplay:avoid to show invalid DPM table info
for different ASIC support different the number of DPM levels, we should avoid to show the invalid level value.
v1 -> v2:
follow the suggestion,clarifiy the description for this
change
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +2 -0
@@ -296,6 +296,8 @@ static int renoir_print_clk_levels(struct smu_context *smu,for (i =0 ; i < count; i++) {GET_DPM_CUR_FREQ (clk_table, clk_type, i, value); +if (!value) +continue ; size +=sprintf (buf + size,"%d: %uMhz %s\n" , i, value, cur_value == value ?"*" :"" );if (cur_value == value)
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 7 lines · Yuxian Dai
for different ASIC support different the number of DPM levels, we should avoid to show the invalid level value.
v1 -> v2:
follow the suggestion,clarifiy the description for this
changeSigned-off-by Yuxian Dai <[email protected]>Change-Id I579ef417ddc8acb4a6cf15c60094743a72d9b050
git format-patch --subject-prefix="PATCH v2" HEAD~
It's to indicate v2 patch in the subject.
Thanks,
Ray
Quoted 24 lines
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +2
-0@@ -296,6 +296,8 @@ static int renoir_print_clk_levels(struct smu_context *smu,for (i =0 ; i < count; i++) {GET_DPM_CUR_FREQ (clk_table, clk_type, i, value); +if (!value) +continue ; size +=sprintf (buf + size,"%d: %uMhz %s\n" , i, value, cur_value == value ?"*" :"" );if (cur_value == value)Signature · 6 lines
2.17.1 _______________________________________________ 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%7Cray.huang%40amd.com%7C1b5650c171874272ba8208d7e27b538d%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637226891622403483&sdata=kUI7EzW5SgOyfDN57C1tZtFngwmXWTK5sNCAwJqmC3k%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Dai, Yuxian (David)
Reviewed-by Huang Rui[AMD Official Use Only - Internal Distribution Only]
Quoted 6 lines · Yuxian Dai
for different ASIC support different the number of DPM levels, we should avoid to show the invalid level value.
v1 -> v2:
follow the suggestion,clarifiy the description for this changeSigned-off-by Yuxian Dai <[email protected]>Change-Id I579ef417ddc8acb4a6cf15c60094743a72d9b050
git format-patch --subject-prefix="PATCH v2" HEAD~
It's to indicate v2 patch in the subject.
Thanks,
Ray
Quoted 23 lines
got it. Thank for your help
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +2
-0@@ -296,6 +296,8 @@ static int renoir_print_clk_levels(struct smu_context *smu, for (i = 0; i < count; i++) {GET_DPM_CUR_FREQ (clk_table, clk_type, i, value); +if (!value) +continue ; size +=sprintf (buf + size,"%d: %uMhz %s\n" , i, value, cur_value == value ?"*" :"" );if (
cur_value== value)
--
2.17.1
Quoted 8 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
s.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cra y.huang%40amd.com%7C1b5650c171874272ba8208d7e27b538d%7C3dd8961fe4884e6 08e11a82d994e183d%7C0%7C0%7C637226891622403483&sdata=kUI7EzW5SgOyf DN57C1tZtFngwmXWTK5sNCAwJqmC3k%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx