drm/amd/pp: OverDrive gfx domain voltage on Tonga
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 13 Aug 2018 10:37:39 +0000 (18:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:10:41 +0000 (11:10 -0500)
Also ajust the gfx domain voltage on Tonga when user overdriver
the voltage.

For Tonga, Driver do not update user's setting to voltage table
in smu, we only pick up a minimum value from voltage table that
not less than the user's setting.

v2: fix a typo

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c

index ab759e38e4eafca55f6d50123c58bd26145c0690..04b7da0e39a69e4040d4095b953b7a058859c531 100644 (file)
@@ -4857,6 +4857,7 @@ static int smu7_odn_edit_dpm_table(struct pp_hwmgr *hwmgr,
                        podn_vdd_dep_in_backend->entries[input_level].clk = input_clk;
                        podn_dpm_table_in_backend->entries[input_level].vddc = input_vol;
                        podn_vdd_dep_in_backend->entries[input_level].vddc = input_vol;
+                       podn_vdd_dep_in_backend->entries[input_level].vddgfx = input_vol;
                } else {
                        return -EINVAL;
                }