Skip to content

Commit 66c2f5d

Browse files
Evan Quanalexdeucher
authored andcommitted
drm/amdgpu/swSMU: correct the bootup power source for Navi1X (v2)
PMFW may boots those ASICs with DC mode. Need to set it back to AC mode. v2: split from Evan's original patch (Alex) Bug: https://gitlab.freedesktop.org/drm/amd/issues/1043 Reviewed-by: Evan Quan <[email protected]> Signed-off-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent fa34520 commit 66c2f5d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,21 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
11541154
}
11551155
}
11561156
}
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+
}
11571172
}
11581173
if (adev->asic_type != CHIP_ARCTURUS) {
11591174
ret = smu_notify_display_change(smu);

0 commit comments

Comments
 (0)