OSDN Git Service

drm/amd/powerplay: partially enable swsmu for vangogh
authorHuang Rui <ray.huang@amd.com>
Thu, 27 Aug 2020 15:38:13 +0000 (11:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Oct 2020 19:15:27 +0000 (15:15 -0400)
This patch is to partially enable swSMU for vangogh for the moment.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c

index d20a657..ec477a2 100644 (file)
@@ -466,6 +466,9 @@ static int smu_late_init(void *handle)
        struct smu_context *smu = &adev->smu;
        int ret = 0;
 
+       if (adev->asic_type == CHIP_VANGOGH)
+               return 0;
+
        if (!smu->pm_enabled)
                return 0;
 
@@ -1104,6 +1107,9 @@ static int smu_hw_init(void *handle)
                smu_set_gfx_cgpg(&adev->smu, true);
        }
 
+       if (adev->asic_type == CHIP_VANGOGH)
+               return 0;
+
        if (!smu->pm_enabled)
                return 0;