mirror of https://gitee.com/openkylin/linux.git
drm/amd/powerplay: smc_dpm_info structure change
A new member Vr2_I2C_address is added. Signed-off-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
acee16f4de
commit
77564c9dff
|
@ -1433,7 +1433,10 @@ struct atom_smc_dpm_info_v4_1
|
|||
uint8_t acggfxclkspreadpercent;
|
||||
uint16_t acggfxclkspreadfreq;
|
||||
|
||||
uint32_t boardreserved[10];
|
||||
uint8_t Vr2_I2C_address;
|
||||
uint8_t padding_vr2[3];
|
||||
|
||||
uint32_t boardreserved[9];
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -699,5 +699,7 @@ int pp_atomfwctrl_get_smc_dpm_information(struct pp_hwmgr *hwmgr,
|
|||
param->acggfxclkspreadpercent = info->acggfxclkspreadpercent;
|
||||
param->acggfxclkspreadfreq = info->acggfxclkspreadfreq;
|
||||
|
||||
param->Vr2_I2C_address = info->Vr2_I2C_address;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -210,6 +210,8 @@ struct pp_atomfwctrl_smc_dpm_parameters
|
|||
uint8_t acggfxclkspreadenabled;
|
||||
uint8_t acggfxclkspreadpercent;
|
||||
uint16_t acggfxclkspreadfreq;
|
||||
|
||||
uint8_t Vr2_I2C_address;
|
||||
};
|
||||
|
||||
int pp_atomfwctrl_get_gpu_pll_dividers_vega10(struct pp_hwmgr *hwmgr,
|
||||
|
|
|
@ -230,6 +230,8 @@ static int append_vbios_pptable(struct pp_hwmgr *hwmgr, PPTable_t *ppsmc_pptable
|
|||
ppsmc_pptable->AcgThresholdFreqLow = 0xFFFF;
|
||||
}
|
||||
|
||||
ppsmc_pptable->Vr2_I2C_address = smc_dpm_table.Vr2_I2C_address;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -499,7 +499,10 @@ typedef struct {
|
|||
uint8_t AcgGfxclkSpreadPercent;
|
||||
uint16_t AcgGfxclkSpreadFreq;
|
||||
|
||||
uint32_t BoardReserved[10];
|
||||
uint8_t Vr2_I2C_address;
|
||||
uint8_t padding_vr2[3];
|
||||
|
||||
uint32_t BoardReserved[9];
|
||||
|
||||
|
||||
uint32_t MmHubPadding[7];
|
||||
|
|
Loading…
Reference in New Issue