OSDN Git Service

drm/amdgpu: skip dpm init for renoir
authorHuang Rui <ray.huang@amd.com>
Wed, 24 Jul 2019 19:05:11 +0000 (14:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Aug 2019 22:37:09 +0000 (17:37 -0500)
Renoir DPM is not functional so far, we skip it for the comment.
Will revert this patch once SMU 12 is functional.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index b9dee99..d63beff 100644 (file)
@@ -768,6 +768,11 @@ static int smu_late_init(void *handle)
 
        if (!smu->pm_enabled)
                return 0;
+
+       /* To be removed after dpm is enabled */
+       if (adev->asic_type == CHIP_RENOIR)
+               return 0;
+
        mutex_lock(&smu->mutex);
        smu_handle_task(&adev->smu,
                        smu->smu_dpm.dpm_level,
@@ -1269,6 +1274,10 @@ static int smu_hw_init(void *handle)
        if (!smu->pm_enabled)
                return 0;
 
+       /* To be removed after dpm is enabled */
+       if (adev->asic_type == CHIP_RENOIR)
+               return 0;
+
        ret = smu_feature_init_dpm(smu);
        if (ret)
                goto failed;