[PATCH 1/2] drm/amd/powerplay: add an new mask to ctrl clock stretch feature.

Deucher, Alexander Alexander.Deucher at amd.com
Thu Oct 27 14:26:29 UTC 2016


> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Rex Zhu
> Sent: Thursday, October 27, 2016 5:59 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Zhu, Rex
> Subject: [PATCH 1/2] drm/amd/powerplay: add an new mask to ctrl clock
> stretch feature.
> 
>  Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
> 
> Change-Id: I80ff8618d314429430ba3db49da83c66da14af29

For the series:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 2 +-
>  drivers/gpu/drm/amd/powerplay/inc/hwmgr.h        | 3 ++-
>  2 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
> index 9e49f27..a50765d 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
> @@ -1428,7 +1428,7 @@ static void smu7_init_dpm_defaults(struct
> pp_hwmgr *hwmgr)
>  		phm_cap_unset(hwmgr->platform_descriptor.platformCaps,
>  				PHM_PlatformCaps_ControlVDDCI);
> 
> -	if ((hwmgr->pp_table_version != PP_TABLE_V0)
> +	if ((hwmgr->pp_table_version != PP_TABLE_V0) && (hwmgr-
> >feature_mask & PP_CLOCK_STRETCH_MASK)
>  		&& (table_info->cac_dtp_table->usClockStretchAmount !=
> 0))
>  		phm_cap_set(hwmgr->platform_descriptor.platformCaps,
>  					PHM_PlatformCaps_ClockStretcher);
> diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
> b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
> index e38b999..36effa1 100644
> --- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
> +++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h
> @@ -85,7 +85,8 @@ enum PP_FEATURE_MASK {
>  	PP_SMC_VOLTAGE_CONTROL_MASK = 0x40,
>  	PP_VBI_TIME_SUPPORT_MASK = 0x80,
>  	PP_ULV_MASK = 0x100,
> -	PP_ENABLE_GFX_CG_THRU_SMU = 0x200
> +	PP_ENABLE_GFX_CG_THRU_SMU = 0x200,
> +	PP_CLOCK_STRETCH_MASK = 0x400,
>  };
> 
>  enum PHM_BackEnd_Magic {
> --
> 1.9.1
> 
> _______________________________________________
> 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