We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa34520 commit 66c2f5dCopy full SHA for 66c2f5d
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -1154,6 +1154,21 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
1154
}
1155
1156
1157
+
1158
+ if (adev->asic_type >= CHIP_NAVI10 &&
1159
+ adev->asic_type <= CHIP_NAVI12) {
1160
+ /*
1161
+ * For Navi1X, manually switch it to AC mode as PMFW
1162
+ * may boot it with DC mode.
1163
+ * TODO: should check whether we are indeed under AC
1164
+ * mode before doing this.
1165
+ */
1166
+ ret = smu_set_power_source(smu, SMU_POWER_SOURCE_AC);
1167
+ if (ret) {
1168
+ pr_err("Failed to switch to AC mode!\n");
1169
+ return ret;
1170
+ }
1171
1172
1173
if (adev->asic_type != CHIP_ARCTURUS) {
1174
ret = smu_notify_display_change(smu);
0 commit comments