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

Quan, Evan Evan.Quan at amd.com
Fri Jul 12 01:01:59 UTC 2019


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

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of
> Wang, Kevin(Yang)
> Sent: Thursday, July 11, 2019 9:41 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Wang, Kevin(Yang) <Kevin1.Wang at amd.com>; Feng, Kenneth
> <Kenneth.Feng at amd.com>
> 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
> Signed-off-by: Kevin Wang <kevin1.wang at amd.com>
> ---
>  drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
> b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
> index 1c15f02101fe..de6cc5d489cd 100644
> --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
> +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
> @@ -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:
> --
> 2.22.0
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list