]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amd/powerplay: update is_sw_smu_xgmi check
authorEvan Quan <evan.quan@amd.com>
Thu, 31 Oct 2019 06:29:48 +0000 (14:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Nov 2019 21:27:46 +0000 (16:27 -0500)
Add check for is_sw_smu routine and drop check
for amdgpu_dpm which seems non-sense.

Signed-off-by: Evan Quan <evan.quan@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 4e468b0272c3927e99f9db7c3d9646f57a1af82d..85ba341e5d1996dd8b80575d45e922ddf172d12c 100644 (file)
@@ -526,7 +526,7 @@ bool is_support_sw_smu(struct amdgpu_device *adev)
 
 bool is_support_sw_smu_xgmi(struct amdgpu_device *adev)
 {
-       if (amdgpu_dpm != 1)
+       if (!is_support_sw_smu(adev))
                return false;
 
        if (adev->asic_type == CHIP_VEGA20)