drm/amd/powerplay: fix raven issue for sw smu
authorHuang Rui <ray.huang@amd.com>
Wed, 27 Feb 2019 10:51:01 +0000 (18:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:03 +0000 (15:04 -0500)
Raven series doesn't support sw smu so far, so we have to add checking to
confirm it return false while the asic is raven.

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

index fe2f7e2..00b7c88 100644 (file)
@@ -138,7 +138,7 @@ bool is_support_sw_smu(struct amdgpu_device *adev)
        if (amdgpu_dpm != 1)
                return false;
 
-       if (adev->asic_type >= CHIP_VEGA20)
+       if (adev->asic_type >= CHIP_VEGA20 && adev->asic_type != CHIP_RAVEN)
                return true;
 
        return false;