Skip to content

Commit

Permalink
drm/amdgpu/swSMU: correct the bootup power source for Navi1X (v2)
Browse files Browse the repository at this point in the history
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 <evan.quan@amd.com>
Signed-off-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Evan Quan authored and Alex Deucher committed Mar 25, 2020
1 parent fa34520 commit 66c2f5d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
ret = smu_notify_display_change(smu);
Expand Down

0 comments on commit 66c2f5d

Please sign in to comment.