aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Liu <[email protected]>2021-01-25 16:00:00 +0800
committerAlex Deucher <[email protected]>2021-06-04 16:03:18 -0400
commitc16e87d6f43184dc32d3ba1ceca8081d6aab0269 (patch)
tree9bf3273c310902ae40c8eaad0060f90b33b228ee
parent948b1216c9993ca21c474f815f276f572b04fd78 (diff)
drm/amdgpu/pm: support smu_post_init for yellow carp
Add smu_post_init support for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index bb2c42d8afed..6aab65c684ba 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -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) {