[PATCH] drm/amd/powerplay: bug fix for sysfs

Wang, Kevin(Yang) Kevin1.Wang at amd.com
Thu Jul 11 08:26:58 UTC 2019


Reviewed-by: Kevin Wang <kevin1.wang at amd.com>


Best Regards,
Kevin

________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of Quan, Evan <Evan.Quan at amd.com>
Sent: Thursday, July 11, 2019 4:14:11 PM
To: Feng, Kenneth; amd-gfx at lists.freedesktop.org
Cc: Feng, Kenneth
Subject: RE: [PATCH] drm/amd/powerplay: bug fix for sysfs

Reviewed-by: Evan Quan <evan.quan at amd.com>

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> Kenneth Feng
> Sent: Thursday, July 11, 2019 3:45 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Feng, Kenneth <Kenneth.Feng at amd.com>
> 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.
>
> Signed-off-by: Kenneth Feng <kenneth.feng at amd.com>
> ---
>  drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
> b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
> index 5ee6508..cd32b20 100644
> --- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
> +++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c
> @@ -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;
>                }
>        }
>
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20190711/f65b9090/attachment-0001.html>


More information about the amd-gfx mailing list