[PATCH 5/6] drm/amd/powerplay: add mvdd dpm support.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit message "se -> set".

Alexandre Demers

On 2016-07-05 05:48, Rex Zhu wrote:
> SMC requires master switch bit to be se.
>
> Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
>
> Change-Id: I2f5fa89934c97c43885d5b0e09b3199981370067
> ---
>   drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
> index 2a71262..46f91b3 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
> @@ -1938,9 +1938,8 @@ static int polaris10_populate_vr_config(struct pp_hwmgr *hwmgr,
>   	if (POLARIS10_VOLTAGE_CONTROL_BY_SVID2 == data->mvdd_control) {
>   		config = VR_SVI2_PLANE_2;
>   		table->VRConfig |= (config << VRCONF_MVDD_SHIFT);
> -	} else if (POLARIS10_VOLTAGE_CONTROL_BY_GPIO == data->mvdd_control) {
> -		config = VR_SMIO_PATTERN_2;
> -		table->VRConfig |= (config << VRCONF_MVDD_SHIFT);
> +		cgs_write_ind_register(hwmgr->device, CGS_IND_REG__SMC, data->soft_regs_start +
> +			offsetof(SMU74_SoftRegisters, AllowMvddSwitch), 0x1);
>   	} else {
>   		config = VR_STATIC_VOLTAGE;
>   		table->VRConfig |= (config << VRCONF_MVDD_SHIFT);



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux