diff -uNr ubuntu-mainline-pristine/drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c ubuntu-mainline/drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c --- ubuntu-mainline-pristine/drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c 2018-10-31 00:29:45.052117769 -0600 +++ ubuntu-mainline/drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c 2018-10-31 00:49:40.717424551 -0600 @@ -457,7 +457,7 @@ count = SMU_MAX_SMIO_LEVELS; for (level = 0; level < count; level++) { table->SmioTable2.Pattern[level].Voltage = PP_HOST_TO_SMC_US( - data->mvdd_voltage_table.entries[count].value * VOLTAGE_SCALE); + data->mvdd_voltage_table.entries[level].value * VOLTAGE_SCALE); /* Index into DpmTable.Smio. Drive bits from Smio entry to get this voltage level.*/ table->SmioTable2.Pattern[level].Smio = (uint8_t) level;