drm/amdgpu/pm: support smu_post_init for yellow carp

Add smu_post_init support for yellow carp.

Signed-off-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Aaron Liu 2021-01-25 16:00:00 +08:00 committed by Alex Deucher
parent 948b1216c9
commit c16e87d6f4

View File

@ -662,9 +662,6 @@ static int smu_late_init(void *handle)
smu_set_fine_grain_gfx_freq_parameters(smu);
if (adev->asic_type == CHIP_YELLOW_CARP)
return 0;
if (!smu->pm_enabled)
return 0;
@ -674,6 +671,9 @@ static int smu_late_init(void *handle)
return ret;
}
if (adev->asic_type == CHIP_YELLOW_CARP)
return 0;
if (!amdgpu_sriov_vf(adev) || smu->od_enabled) {
ret = smu_set_default_od_settings(smu);
if (ret) {