Skip to contentSkip to conversation

drm/amdgpu: remove redundant enable_mes/enable_mes_kiq setting

PATCH In review Yifan Zhang 3 participants 3 messages Jun 12, 2022 – Jun 14, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: remove redundant enable_mes/enable_mes_kiq setting

enable_mes and enable_mes_kiq are set in both device init and MES IP init. Leave the ones in MES IP init, since it is a more accurate way to judge from GC IP version.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -8
index 68a53528089f..2b92281dd0c1 100644
@@ -3614,14 +3614,6 @@ int amdgpu_device_init(struct amdgpu_device *adev,
 	if (amdgpu_mcbp)
 		DRM_INFO("MCBP is enabled\n");
 
-	if (adev->asic_type >= CHIP_NAVI10) {
-		if (amdgpu_mes || amdgpu_mes_kiq)
-			adev->enable_mes = true;
-
-		if (amdgpu_mes_kiq)
-			adev->enable_mes_kiq = true;
-	}
-
 	/*
 	 * Reset domain needs to be present early, before XGMI hive discovered
 	 * (if any) and intitialized to use reset sem and in_gpu reset flag
Signature · 1 line
2.35.1
maintainer Acked-by on v1 1/1
#1 lore raw

[Public]

________________________________
From: Zhang, Yifan <[email protected]>
Sent: Sunday, June 12, 2022 12:31 AM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Zhang, Yifan <[email protected]>
Subject: [PATCH] drm/amdgpu: remove redundant enable_mes/enable_mes_kiq setting

enable_mes and enable_mes_kiq are set in both device init and MES IP init. Leave the ones in MES IP init, since it is a more accurate way to judge from GC IP version.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -8
index 68a53528089f..2b92281dd0c1 100644
@@ -3614,14 +3614,6 @@ int amdgpu_device_init(struct amdgpu_device *adev,
         if (amdgpu_mcbp)
                 DRM_INFO("MCBP is enabled\n");
 
-       if (adev->asic_type >= CHIP_NAVI10) {
-               if (amdgpu_mes || amdgpu_mes_kiq)
-                       adev->enable_mes = true;
-
-               if (amdgpu_mes_kiq)
-                       adev->enable_mes_kiq = true;
-       }
-
         /*
          * Reset domain needs to be present early, before XGMI hive discovered
          * (if any) and intitialized to use reset sem and in_gpu reset flag

--
2.35.1

Reviewed-by on v1 1/1
#2 lore raw
In reply to Yifan Zhang

[AMD Official Use Only - General]

Regards,
Jack
________________________________
From: amd-gfx <[email protected]> on behalf of Yifan Zhang <[email protected]>
Sent: Sunday, 12 June 2022 12:31
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Zhang, Yifan <[email protected]>
Subject: [PATCH] drm/amdgpu: remove redundant enable_mes/enable_mes_kiq setting

enable_mes and enable_mes_kiq are set in both device init and MES IP init. Leave the ones in MES IP init, since it is a more accurate way to judge from GC IP version.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +0 -8
index 68a53528089f..2b92281dd0c1 100644
@@ -3614,14 +3614,6 @@ int amdgpu_device_init(struct amdgpu_device *adev,
         if (amdgpu_mcbp)
                 DRM_INFO("MCBP is enabled\n");
 
-       if (adev->asic_type >= CHIP_NAVI10) {
-               if (amdgpu_mes || amdgpu_mes_kiq)
-                       adev->enable_mes = true;
-
-               if (amdgpu_mes_kiq)
-                       adev->enable_mes_kiq = true;
-       }
-
         /*
          * Reset domain needs to be present early, before XGMI hive discovered
          * (if any) and intitialized to use reset sem and in_gpu reset flag

--
2.35.1