[PATCH 2/3] drm/amd/powerplay: update is_sw_smu_xgmi check

Quan, Evan Evan.Quan at amd.com
Thu Oct 31 07:22:38 UTC 2019


Add check for is_sw_smu routine and drop check
for amdgpu_dpm which seems non-sense.

Change-Id: I2b694a6255a76d35305fc64ca39625730e3463db
Signed-off-by: Evan Quan <evan.quan at amd.com>
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index 3ce01e1994fc..dc2130a3168c 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -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)
-- 
2.23.0



More information about the amd-gfx mailing list