Skip to contentSkip to conversation

drm/amdkfd: clean up code for interrupt v10

PATCH In review [email protected] 2 participants 2 messages Sep 5, 2024 – Sep 9, 2024

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

PATCH 1/1 drm/amdkfd: clean up code for interrupt v10

Variable hub_inst is unused.
Related the commit "bde7ae79ca40":
"drm/amdkfd: Drop poison hanlding from gfx v10"

---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c | 13 -------------
 1 file changed, 13 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c +0 -13
index bb8cbfc39b90..2db824e87c8a 100644
@@ -308,21 +308,8 @@ static void event_interrupt_wq_v10(struct kfd_node *dev,
 		uint16_t ring_id = SOC15_RING_ID_FROM_IH_ENTRY(ih_ring_entry);
 		uint32_t node_id = SOC15_NODEID_FROM_IH_ENTRY(ih_ring_entry);
 		uint32_t vmid_type = SOC15_VMID_TYPE_FROM_IH_ENTRY(ih_ring_entry);
-		int hub_inst = 0;
 		struct kfd_hsa_memory_exception_data exception_data;
 
-		/* gfxhub */
-		if (!vmid_type && dev->adev->gfx.funcs->ih_node_to_logical_xcc) {
-			hub_inst = dev->adev->gfx.funcs->ih_node_to_logical_xcc(dev->adev,
-				node_id);
-			if (hub_inst < 0)
-				hub_inst = 0;
-		}
-
-		/* mmhub */
-		if (vmid_type && client_id == SOC15_IH_CLIENTID_VMC)
-			hub_inst = node_id / 4;
-
 		info.vmid = vmid;
 		info.mc_id = client_id;
 		info.page_addr = ih_ring_entry[4] |
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

[Public]

This patch is,

Quoted 52 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Thursday, September 5, 2024 5:21 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Huang, Tim <[email protected]>; Zhang, Jesse(Jie) <[email protected]>
Subject: [PATCH] drm/amdkfd: clean up code for interrupt v10

Variable hub_inst is unused.
Related the commit "bde7ae79ca40":
"drm/amdkfd: Drop poison hanlding from gfx v10"

---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c | 13 -------------
 1 file changed, 13 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c +0 -4
index bb8cbfc39b90..2db824e87c8a 100644
@@ -308,21 +308,8 @@ static void event_interrupt_wq_v10(struct kfd_node
 *dev,
              uint16_t ring_id =
 SOC15_RING_ID_FROM_IH_ENTRY(ih_ring_entry);
              uint32_t node_id =
 SOC15_NODEID_FROM_IH_ENTRY(ih_ring_entry);
              uint32_t vmid_type =
 SOC15_VMID_TYPE_FROM_IH_ENTRY(ih_ring_entry);
-             int hub_inst = 0;
              struct kfd_hsa_memory_exception_data exception_data;
 
-             /* gfxhub */
-             if (!vmid_type && dev->adev->gfx.funcs->ih_node_to_logical_xcc) {
-                     hub_inst =

dev->adev->gfx.funcs->ih_node_to_logical_xcc(dev->adev,

drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c +0 -10
-                             node_id);
-                     if (hub_inst < 0)
-                             hub_inst = 0;
-             }
-
-             /* mmhub */
-             if (vmid_type && client_id == SOC15_IH_CLIENTID_VMC)
-                     hub_inst = node_id / 4;
-
              info.vmid = vmid;
              info.mc_id = client_id;
              info.page_addr = ih_ring_entry[4] |
--

2.25.1