[PATCH] drm/amd/powerplay: remove duplicate macro smu_get_uclk_dpm_states in amdgpu_smu.h

Huang, Ray Ray.Huang at amd.com
Tue Aug 20 05:36:52 UTC 2019


> -----Original Message-----
> From: Wang, Kevin(Yang) <Kevin1.Wang at amd.com>
> Sent: Tuesday, August 20, 2019 1:36 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Huang, Ray <Ray.Huang at amd.com>; Wang, Kevin(Yang)
> <Kevin1.Wang at amd.com>
> Subject: [PATCH] drm/amd/powerplay: remove duplicate macro
> smu_get_uclk_dpm_states in amdgpu_smu.h
> 
> remove duplicate macro smu_get_uclk_dpm_states in amdgpu_smu.h
> 
> "
>  #define smu_get_uclk_dpm_states(smu, clocks_in_khz, num_states) \
>          ((smu)->ppt_funcs->get_uclk_dpm_states ? (smu)->ppt_funcs-
> >get_uclk_dpm_states((smu), (clocks_in_khz), (num_states)) : 0)
>  #define smu_get_max_sustainable_clocks_by_dc(smu, max_clocks) \
>          ((smu)->funcs->get_max_sustainable_clocks_by_dc ? (smu)->funcs-
> >get_max_sustainable_clocks_by_dc((smu), (max_clocks)) : 0)
>  #define smu_get_uclk_dpm_states(smu, clocks_in_khz, num_states) \
>          ((smu)->ppt_funcs->get_uclk_dpm_states ? (smu)->ppt_funcs-
> >get_uclk_dpm_states((smu), (clocks_in_khz), (num_states)) : 0)
> "
> 
> Signed-off-by: Kevin Wang <kevin1.wang at amd.com>

Reviewed-by: Huang Rui <ray.huang at amd.com>

> ---
>  drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
> b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
> index ca9b9ec39de8..fc59d9686e61 100644
> --- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
> +++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
> @@ -730,8 +730,6 @@ struct smu_funcs
>  	((smu)->funcs->register_irq_handler ? (smu)->funcs-
> >register_irq_handler(smu) : 0)
>  #define smu_set_azalia_d3_pme(smu) \
>  	((smu)->funcs->set_azalia_d3_pme ? (smu)->funcs-
> >set_azalia_d3_pme((smu)) : 0)
> -#define smu_get_uclk_dpm_states(smu, clocks_in_khz, num_states) \
> -	((smu)->ppt_funcs->get_uclk_dpm_states ? (smu)->ppt_funcs-
> >get_uclk_dpm_states((smu), (clocks_in_khz), (num_states)) : 0)
>  #define smu_get_max_sustainable_clocks_by_dc(smu, max_clocks) \
>  	((smu)->funcs->get_max_sustainable_clocks_by_dc ? (smu)->funcs-
> >get_max_sustainable_clocks_by_dc((smu), (max_clocks)) : 0)
>  #define smu_get_uclk_dpm_states(smu, clocks_in_khz, num_states) \
> --
> 2.22.0



More information about the amd-gfx mailing list