Commit 66c2f5db authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

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/1043Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fa34520c
...@@ -1154,6 +1154,21 @@ static int smu_smc_table_hw_init(struct smu_context *smu, ...@@ -1154,6 +1154,21 @@ static int smu_smc_table_hw_init(struct smu_context *smu,
} }
} }
} }
if (adev->asic_type >= CHIP_NAVI10 &&
adev->asic_type <= CHIP_NAVI12) {
/*
* For Navi1X, manually switch it to AC mode as PMFW
* may boot it with DC mode.
* TODO: should check whether we are indeed under AC
* mode before doing this.
*/
ret = smu_set_power_source(smu, SMU_POWER_SOURCE_AC);
if (ret) {
pr_err("Failed to switch to AC mode!\n");
return ret;
}
}
} }
if (adev->asic_type != CHIP_ARCTURUS) { if (adev->asic_type != CHIP_ARCTURUS) {
ret = smu_notify_display_change(smu); ret = smu_notify_display_change(smu);
......
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