drm/amd/pm: correct vddci table setup
authorEvan Quan <evan.quan@amd.com>
Thu, 18 Jun 2020 07:53:05 +0000 (15:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Oct 2020 15:57:09 +0000 (11:57 -0400)
Make sure the settings are applied only when voltage
controlled by gpio.

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>
drivers/gpu/drm/amd/pm/powerplay/smumgr/polaris10_smumgr.c

index a950387b492fbea085195fdd3aef2a706e95c1bf..34cf3bedfc11e20e4e61ae290edd00445f12cb24 100644 (file)
@@ -714,9 +714,9 @@ static int polaris10_populate_smc_vddci_table(struct pp_hwmgr *hwmgr,
 
                        table->Smio[level] |= data->vddci_voltage_table.entries[level].smio_low;
                }
-       }
 
-       table->SmioMask1 = data->vddci_voltage_table.mask_low;
+               table->SmioMask1 = data->vddci_voltage_table.mask_low;
+       }
 
        return 0;
 }