mirror of
https://github.com/torvalds/linux.git
synced 2024-12-02 00:51:44 +00:00
drm/amd/powerplay: fix AVFS voltage offset for Vega10
Signed-off-by: Eric Huang <JinHuiEric.Huang@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
2890decfd9
commit
16d6e96227
@ -2182,15 +2182,9 @@ static int vega10_populate_avfs_parameters(struct pp_hwmgr *hwmgr)
|
|||||||
pp_table->AvfsGbCksOff.m2_shift = 12;
|
pp_table->AvfsGbCksOff.m2_shift = 12;
|
||||||
pp_table->AvfsGbCksOff.b_shift = 0;
|
pp_table->AvfsGbCksOff.b_shift = 0;
|
||||||
|
|
||||||
for (i = 0; i < dep_table->count; i++) {
|
for (i = 0; i < dep_table->count; i++)
|
||||||
if (dep_table->entries[i].sclk_offset == 0)
|
|
||||||
pp_table->StaticVoltageOffsetVid[i] = 248;
|
|
||||||
else
|
|
||||||
pp_table->StaticVoltageOffsetVid[i] =
|
pp_table->StaticVoltageOffsetVid[i] =
|
||||||
(uint8_t)(dep_table->entries[i].sclk_offset *
|
convert_to_vid((uint8_t)(dep_table->entries[i].sclk_offset));
|
||||||
VOLTAGE_VID_OFFSET_SCALE2 /
|
|
||||||
VOLTAGE_VID_OFFSET_SCALE1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((PPREGKEY_VEGA10QUADRATICEQUATION_DFLT !=
|
if ((PPREGKEY_VEGA10QUADRATICEQUATION_DFLT !=
|
||||||
data->disp_clk_quad_eqn_a) &&
|
data->disp_clk_quad_eqn_a) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user