Skip to contentSkip to conversation

drm/amdkfd: drop warning in event_interrupt_isr_v1*()

PATCH In review Alex Deucher 3 participants 4 messages May 7, 2025 – May 10, 2025

Subsystems (3)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdkfd: drop warning in event_interrupt_isr_v1*()

Commit ded8b3c36f17 ("drm/amdgpu: properly handle GC vs MM in amdgpu_vmid_mgr_init()") enables all 16 vmids for MMHUB on GC 10 and newer for KGD since
there are no KFD resources using MMHUB. With this change, KFD
starts seeing MMHUB vmids in it's range with no pasid set. As
such there is no need to warn, we can just ignore those interrupts.

Fixes ded8b3c36f17 ("drm/amdgpu: properly handle GC vs MM in amdgpu_vmid_mgr_init()")
---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c | 3 +--
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c +1 -2
index 54870b4c50000..3e1ad89747979 100644
@@ -175,8 +175,7 @@ static bool event_interrupt_isr_v10(struct kfd_node *dev,
 		data[0], data[1], data[2], data[3], data[4], data[5], data[6],
 		data[7]);
 
-	/* If there is no valid PASID, it's likely a bug */
-	if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt"))
+	if (pasid == 0)
 		return 0;
 
 	/* Interrupt types we care about: various signals and faults.
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c +1 -2
index eb88ba8d8b012..2788a52714d10 100644
@@ -287,8 +287,7 @@ static bool event_interrupt_isr_v11(struct kfd_node *dev,
 		data[0], data[1], data[2], data[3], data[4], data[5], data[6],
 		data[7]);
 
-	/* If there is no valid PASID, it's likely a bug */
-	if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt"))
+	if (pasid == 0)
 		return false;
 
 	/* Interrupt types we care about: various signals and faults.
Signature · 1 line
2.49.0
#1 lore raw

Ping?

Alex

Quoted 45 lines · Alex Deucher

Commit ded8b3c36f17 ("drm/amdgpu: properly handle GC vs MM in amdgpu_vmid_mgr_init()") enables all 16 vmids for MMHUB on GC 10 and newer for KGD since
there are no KFD resources using MMHUB. With this change, KFD
starts seeing MMHUB vmids in it's range with no pasid set. As
such there is no need to warn, we can just ignore those interrupts.

Fixes ded8b3c36f17 ("drm/amdgpu: properly handle GC vs MM in amdgpu_vmid_mgr_init()")
---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c | 3 +--
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c +1 -2
index 54870b4c50000..3e1ad89747979 100644
@@ -175,8 +175,7 @@ static bool event_interrupt_isr_v10(struct kfd_node *dev,
                data[0], data[1], data[2], data[3], data[4], data[5], data[6],
                data[7]);
 
-       /* If there is no valid PASID, it's likely a bug */
-       if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt"))
+       if (pasid == 0)
                return 0;
 
        /* Interrupt types we care about: various signals and faults.
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c +1 -3
index eb88ba8d8b012..2788a52714d10 100644
@@ -287,8 +287,7 @@ static bool event_interrupt_isr_v11(struct kfd_node *dev,
                data[0], data[1], data[2], data[3], data[4], data[5], data[6],
                data[7]);
 
-       /* If there is no valid PASID, it's likely a bug */
-       if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt"))
+       if (pasid == 0)
                return false;
 
        /* Interrupt types we care about: various signals and faults.
--

2.49.0

#2 lore raw

Ping?

Quoted 51 lines · Alex Deucher

Ping?

Alex

Quoted 45 lines · Alex Deucher

Commit ded8b3c36f17 ("drm/amdgpu: properly handle GC vs MM in amdgpu_vmid_mgr_init()") enables all 16 vmids for MMHUB on GC 10 and newer for KGD since
there are no KFD resources using MMHUB. With this change, KFD
starts seeing MMHUB vmids in it's range with no pasid set. As
such there is no need to warn, we can just ignore those interrupts.

Fixes ded8b3c36f17 ("drm/amdgpu: properly handle GC vs MM in amdgpu_vmid_mgr_init()")
---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c | 3 +--
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c +1 -2
index 54870b4c50000..3e1ad89747979 100644
@@ -175,8 +175,7 @@ static bool event_interrupt_isr_v10(struct kfd_node *dev,
                data[0], data[1], data[2], data[3], data[4], data[5], data[6],
                data[7]);
 
-       /* If there is no valid PASID, it's likely a bug */
-       if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt"))
+       if (pasid == 0)
                return 0;
 
        /* Interrupt types we care about: various signals and faults.
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c +1 -3
index eb88ba8d8b012..2788a52714d10 100644
@@ -287,8 +287,7 @@ static bool event_interrupt_isr_v11(struct kfd_node *dev,
                data[0], data[1], data[2], data[3], data[4], data[5], data[6],
                data[7]);
 
-       /* If there is no valid PASID, it's likely a bug */
-       if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt"))
+       if (pasid == 0)
                return false;
 
        /* Interrupt types we care about: various signals and faults.
--

2.49.0

maintainer Reviewed-by on v1 1/1
#3 lore raw
In reply to Alex Deucher
Quoted 8 lines · Alex Deucher

Commit ded8b3c36f17 ("drm/amdgpu: properly handle GC vs MM in amdgpu_vmid_mgr_init()") enables all 16 vmids for MMHUB on GC 10 and newer for KGD since
there are no KFD resources using MMHUB. With this change, KFD
starts seeing MMHUB vmids in it's range with no pasid set. As
such there is no need to warn, we can just ignore those interrupts.

Fixes ded8b3c36f17 ("drm/amdgpu: properly handle GC vs MM in amdgpu_vmid_mgr_init()")

I think I'm OK with the patch, given that it's in GFX10 and GFX11-specific source files. The warning was mostly there to catch firmware issues on new products.

But the fact that it gets there at all means, that these interrupts weren't being handled by the amdgpu_irq_dispatch handler either. I don't know if you consider that a problem. Either way, the patch is

Quoted 33 lines
---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c | 3 +--
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v10.c +1 -2
index 54870b4c50000..3e1ad89747979 100644
@@ -175,8 +175,7 @@ static bool event_interrupt_isr_v10(struct kfd_node *dev,
 		data[0], data[1], data[2], data[3], data[4], data[5], data[6],
 		data[7]);
 
-	/* If there is no valid PASID, it's likely a bug */
-	if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt"))
+	if (pasid == 0)
 		return 0;
 
 	/* Interrupt types we care about: various signals and faults.
drivers/gpu/drm/amd/amdkfd/kfd_int_process_v11.c +1 -2
index eb88ba8d8b012..2788a52714d10 100644
@@ -287,8 +287,7 @@ static bool event_interrupt_isr_v11(struct kfd_node *dev,
 		data[0], data[1], data[2], data[3], data[4], data[5], data[6],
 		data[7]);
 
-	/* If there is no valid PASID, it's likely a bug */
-	if (WARN_ONCE(pasid == 0, "Bug: No PASID in KFD interrupt"))
+	if (pasid == 0)
 		return false;
 
 	/* Interrupt types we care about: various signals and faults.