]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/amdkfd: clean up code for interrupt v10
authorJesse Zhang <jesse.zhang@amd.com>
Tue, 10 Sep 2024 05:17:30 +0000 (13:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Sep 2024 14:04:57 +0000 (10:04 -0400)
Variable hub_inst is unused.

Fixes: e28604d8337e ("drm/amdkfd: Drop poison hanlding from gfx v10")
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Reviewed-by: Tim Huang <tim.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c

index bb8cbfc39b90fd0eb17dc2f82c3241f22ab5e5b0..37b69fe0ede3847fa04541e99a118e29ce8678c8 100644 (file)
@@ -306,23 +306,8 @@ static void event_interrupt_wq_v10(struct kfd_node *dev,
                   client_id == SOC15_IH_CLIENTID_UTCL2) {
                struct kfd_vm_fault_info info = {0};
                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] |