Commit fd8ba3f1 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher

drm/amd/powerplay: partially enable swsmu for vangogh

This patch is to partially enable swSMU for vangogh for the moment.
Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarAaron Liu <aaron.liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f46a221b
...@@ -466,6 +466,9 @@ static int smu_late_init(void *handle) ...@@ -466,6 +466,9 @@ static int smu_late_init(void *handle)
struct smu_context *smu = &adev->smu; struct smu_context *smu = &adev->smu;
int ret = 0; int ret = 0;
if (adev->asic_type == CHIP_VANGOGH)
return 0;
if (!smu->pm_enabled) if (!smu->pm_enabled)
return 0; return 0;
...@@ -1104,6 +1107,9 @@ static int smu_hw_init(void *handle) ...@@ -1104,6 +1107,9 @@ static int smu_hw_init(void *handle)
smu_set_gfx_cgpg(&adev->smu, true); smu_set_gfx_cgpg(&adev->smu, true);
} }
if (adev->asic_type == CHIP_VANGOGH)
return 0;
if (!smu->pm_enabled) if (!smu->pm_enabled)
return 0; return 0;
......
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