Commit e4912146 authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/pm: apply dummy reads workaround for CDR enabled only

For CDR disabled case, the dummy reads workaround is not needed.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d34c7b7b
...@@ -2303,10 +2303,12 @@ static int navi10_run_umc_cdr_workaround(struct smu_context *smu) ...@@ -2303,10 +2303,12 @@ static int navi10_run_umc_cdr_workaround(struct smu_context *smu)
if (umc_fw_greater_than_v136) if (umc_fw_greater_than_v136)
return 0; return 0;
if (umc_fw_disable_cdr && adev->asic_type == CHIP_NAVI10) if (umc_fw_disable_cdr) {
if (adev->asic_type == CHIP_NAVI10)
return navi10_umc_hybrid_cdr_workaround(smu); return navi10_umc_hybrid_cdr_workaround(smu);
else } else {
return navi10_set_dummy_pstates_table_location(smu); return navi10_set_dummy_pstates_table_location(smu);
}
} else { } else {
if (adev->asic_type == CHIP_NAVI10) if (adev->asic_type == CHIP_NAVI10)
return navi10_umc_hybrid_cdr_workaround(smu); return navi10_umc_hybrid_cdr_workaround(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