mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-12 11:36:35 +00:00
drm/amd/pm: correct the pmfw version check for Navi14
Otherwise, that will be always true for Navi14. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3f975d0f71
commit
b226ef95b6
1 changed files with 4 additions and 3 deletions
|
@ -2279,13 +2279,14 @@ static int navi10_run_umc_cdr_workaround(struct smu_context *smu)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The messages below are only supported by 42.53.0 and later
|
* The messages below are only supported by Navi10 42.53.0 and later
|
||||||
* PMFWs.
|
* PMFWs and Navi14 53.29.0 and later PMFWs.
|
||||||
* - PPSMC_MSG_SetDriverDummyTableDramAddrHigh
|
* - PPSMC_MSG_SetDriverDummyTableDramAddrHigh
|
||||||
* - PPSMC_MSG_SetDriverDummyTableDramAddrLow
|
* - PPSMC_MSG_SetDriverDummyTableDramAddrLow
|
||||||
* - PPSMC_MSG_GetUMCFWWA
|
* - PPSMC_MSG_GetUMCFWWA
|
||||||
*/
|
*/
|
||||||
if (pmfw_version >= 0x2a3500) {
|
if (((adev->asic_type == CHIP_NAVI10) && (pmfw_version >= 0x2a3500)) ||
|
||||||
|
((adev->asic_type == CHIP_NAVI14) && (pmfw_version >= 0x351D00))) {
|
||||||
ret = smu_cmn_send_smc_msg_with_param(smu,
|
ret = smu_cmn_send_smc_msg_with_param(smu,
|
||||||
SMU_MSG_GET_UMC_FW_WA,
|
SMU_MSG_GET_UMC_FW_WA,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in a new issue