Commit 7b913a76 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: update default voltage for boot od table for navi1x

It needed to be updated as well so it will show the proper values
if you reset to the defaults.

Bug: https://gitlab.freedesktop.org/drm/amd/issues/1020Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1064ad4a
...@@ -1977,7 +1977,7 @@ static int navi10_setup_od_limits(struct smu_context *smu) { ...@@ -1977,7 +1977,7 @@ static int navi10_setup_od_limits(struct smu_context *smu) {
} }
static int navi10_set_default_od_settings(struct smu_context *smu, bool initialize) { static int navi10_set_default_od_settings(struct smu_context *smu, bool initialize) {
OverDriveTable_t *od_table; OverDriveTable_t *od_table, *boot_od_table;
int ret = 0; int ret = 0;
ret = smu_v11_0_set_default_od_settings(smu, initialize, sizeof(OverDriveTable_t)); ret = smu_v11_0_set_default_od_settings(smu, initialize, sizeof(OverDriveTable_t));
...@@ -1985,6 +1985,7 @@ static int navi10_set_default_od_settings(struct smu_context *smu, bool initiali ...@@ -1985,6 +1985,7 @@ static int navi10_set_default_od_settings(struct smu_context *smu, bool initiali
return ret; return ret;
od_table = (OverDriveTable_t *)smu->smu_table.overdrive_table; od_table = (OverDriveTable_t *)smu->smu_table.overdrive_table;
boot_od_table = (OverDriveTable_t *)smu->smu_table.boot_overdrive_table;
if (initialize) { if (initialize) {
ret = navi10_setup_od_limits(smu); ret = navi10_setup_od_limits(smu);
if (ret) { if (ret) {
...@@ -1998,6 +1999,8 @@ static int navi10_set_default_od_settings(struct smu_context *smu, bool initiali ...@@ -1998,6 +1999,8 @@ static int navi10_set_default_od_settings(struct smu_context *smu, bool initiali
od_table->GfxclkFreq1); od_table->GfxclkFreq1);
if (ret) if (ret)
od_table->GfxclkVolt1 = 0; od_table->GfxclkVolt1 = 0;
if (boot_od_table)
boot_od_table->GfxclkVolt1 = od_table->GfxclkVolt1;
} }
if (!od_table->GfxclkVolt2) { if (!od_table->GfxclkVolt2) {
...@@ -2006,6 +2009,8 @@ static int navi10_set_default_od_settings(struct smu_context *smu, bool initiali ...@@ -2006,6 +2009,8 @@ static int navi10_set_default_od_settings(struct smu_context *smu, bool initiali
od_table->GfxclkFreq2); od_table->GfxclkFreq2);
if (ret) if (ret)
od_table->GfxclkVolt2 = 0; od_table->GfxclkVolt2 = 0;
if (boot_od_table)
boot_od_table->GfxclkVolt2 = od_table->GfxclkVolt2;
} }
if (!od_table->GfxclkVolt3) { if (!od_table->GfxclkVolt3) {
...@@ -2014,6 +2019,8 @@ static int navi10_set_default_od_settings(struct smu_context *smu, bool initiali ...@@ -2014,6 +2019,8 @@ static int navi10_set_default_od_settings(struct smu_context *smu, bool initiali
od_table->GfxclkFreq3); od_table->GfxclkFreq3);
if (ret) if (ret)
od_table->GfxclkVolt3 = 0; od_table->GfxclkVolt3 = 0;
if (boot_od_table)
boot_od_table->GfxclkVolt3 = od_table->GfxclkVolt3;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment