aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Liu <[email protected]>2020-12-03 16:44:46 +0800
committerAlex Deucher <[email protected]>2021-06-04 16:03:11 -0400
commitb4bc9f10c740c8fb3d78e5ac44c1604a5b84cd98 (patch)
tree17dfa08b2ab2882971ad03e661325276c39d7f74
parentf50740be5e64d25e3812a315d3ab2369fd6ebebf (diff)
drm/amd/pm: partially enable swsmu for yellow carp(V2)
This patch is to partially enable swSMU for yellow carp for the moment. V2: rename smu_v13_0 to smu_v13_0_1. Signed-off-by: Aaron Liu <[email protected]> Acked-by: Alex Deucher <[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, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index 285849cef9f2..2a5c109c0d26 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -658,6 +658,9 @@ 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;
@@ -1303,6 +1306,9 @@ static int smu_hw_init(void *handle)
smu_set_gfx_cgpg(&adev->smu, true);
}
+ if (adev->asic_type == CHIP_YELLOW_CARP)
+ return 0;
+
if (!smu->pm_enabled)
return 0;