drm/amd/powerplay: bug fix for sysfs
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: bug fix for sysfs
when we set profile_peak to sysfs:power_dpm_force_performance_level, we gets the wrong socclk level and mclk level.this patch fix this issue.
--- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +2 -2
@@ -1157,14 +1157,14 @@ static int navi10_get_profiling_clk_mask(struct smu_context *smu, ret =smu_get_dpm_level_count (smu,SMU_MCLK , &level_count);if (ret)return ret; - *sclk_mask = level_count -1 ; + *mclk_mask = level_count -1 ; }if (soc_mask) { ret =smu_get_dpm_level_count (smu,SMU_SOCCLK , &level_count);if (ret)return ret; - *sclk_mask = level_count -1 ; + *soc_mask = level_count -1 ; } }
Signature · 6 lines
2.7.4 _______________________________________________ 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): 1562831100-4555-1-git-send-email-kenneth.feng-5C7GfCeVMHo@public.gmane.org
Xu, Feifei
Reviewed-by Feifei Xu-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Kenneth Feng
Sent: Thursday, July 11, 2019 3:45 PM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/powerplay: bug fix for sysfs
when we set profile_peak to sysfs:power_dpm_force_performance_level, we gets the wrong socclk level and mclk level.this patch fix this issue.
--- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +2 -2
@@ -1157,14 +1157,14 @@ static int navi10_get_profiling_clk_mask(struct smu_context *smu, ret =smu_get_dpm_level_count (smu,SMU_MCLK , &level_count);if (ret)return ret; - *sclk_mask = level_count -1 ; + *mclk_mask = level_count -1 ; }if (soc_mask) { ret =smu_get_dpm_level_count (smu,SMU_SOCCLK , &level_count);if (ret)return ret; - *sclk_mask = level_count -1 ; + *soc_mask = level_count -1 ; } }
Signature · 10 lines
2.7.4 _______________________________________________ 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
Quan, Evan
Reviewed-by Evan QuanQuoted 44 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Kenneth Feng
Sent: Thursday, July 11, 2019 3:45 PM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/powerplay: bug fix for sysfswhen we set
profile_peakto sysfs:power_dpm_force_performance_level, we gets the wrong socclk level and mclk level.this patch fix this issue.Signed-off-by Kenneth Feng <[email protected]>--- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/navi10_ppt.c +2
-2@@ -1157,14 +1157,14 @@ static int navi10_get_profiling_clk_mask(structsmu_context *smu, ret =smu_get_dpm_level_count (smu,SMU_MCLK , &level_count);if (ret)return ret; - *sclk_mask = level_count -1 ; + *mclk_mask = level_count -1 ; }if (soc_mask) { ret =smu_get_dpm_level_count (smu,SMU_SOCCLK , &level_count);if (ret)return ret; - *sclk_mask = level_count -1 ; + *soc_mask = level_count -1 ;drivers/gpu/drm/amd/powerplay/navi10_ppt.c +0
-1} } --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
A message that is not in the archive (sent off-list or not yet received): MN2PR12MB334478BBC6BF900531703301E4F30-rweVpJHSKToDMgCC8P//[email protected]
Best Regards,
Kevin
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Quan, Evan <[email protected]>
Sent: Thursday, July 11, 2019 4:14:11 PM
To: Feng, Kenneth; [email protected]
Cc: Feng, Kenneth
Subject: RE: [PATCH] drm/amd/powerplay: bug fix for sysfs
Quoted 41 lines
-----Original Message-----
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> On Behalf Of Kenneth Feng
Sent: Thursday, July 11, 2019 3:45 PM
To: [email protected]
Cc: Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/powerplay: bug fix for sysfswhen we set
profile_peakto sysfs:power_dpm_force_performance_level, we gets the wrong socclk level and mclk level.this patch fix this issue.Signed-off-by Kenneth Feng <[email protected]>--- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/navi10_ppt.c +2
-2@@ -1157,14 +1157,14 @@ static int navi10_get_profiling_clk_mask(structsmu_context *smu, ret =smu_get_dpm_level_count (smu,SMU_MCLK , &level_count);if (ret)return ret; - *sclk_mask = level_count -1 ; + *mclk_mask = level_count -1 ; }if (soc_mask) { ret =smu_get_dpm_level_count (smu,SMU_SOCCLK , &level_count);if (ret)return ret; - *sclk_mask = level_count -1 ; + *soc_mask = level_count -1 ;} }
Quoted 7 lines
--
2.7.4_______________________________________________
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-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx