drm/amd/powerplay: update is_sw_smu_xgmi check

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>
This commit is contained in:
Evan Quan 2019-10-31 14:29:48 +08:00 committed by Alex Deucher
parent 39ea6e5f9e
commit 086e1c5616
1 changed files with 1 additions and 1 deletions

View 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)