All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] drm/amdgpu/gfx11: properly reference EOP interrupts for userqs
@ 2025-04-13 16:06 Alex Deucher
  2025-04-13 16:06 ` [PATCH 2/4] drm/amdgpu/gfx12: " Alex Deucher
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Alex Deucher @ 2025-04-13 16:06 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

Regardless of whether we disable kernel queues, we need
to take an extra reference to the pipe interrupts for
user queues to make sure they stay enabled in case we
disable them for kernel queues.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index 7274334ecd6fa..40d3c05326c02 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -4836,10 +4836,10 @@ static int gfx_v11_0_hw_init(struct amdgpu_ip_block *ip_block)
 static int gfx_v11_0_set_userq_eop_interrupts(struct amdgpu_device *adev,
 					      bool enable)
 {
-	if (adev->gfx.disable_kq) {
-		unsigned int irq_type;
-		int m, p, r;
+	unsigned int irq_type;
+	int m, p, r;
 
+	if (adev->userq_funcs[AMDGPU_HW_IP_GFX]) {
 		for (m = 0; m < adev->gfx.me.num_me; m++) {
 			for (p = 0; p < adev->gfx.me.num_pipe_per_me; p++) {
 				irq_type = AMDGPU_CP_IRQ_GFX_ME0_PIPE0_EOP + p;
@@ -4853,7 +4853,9 @@ static int gfx_v11_0_set_userq_eop_interrupts(struct amdgpu_device *adev,
 					return r;
 			}
 		}
+	}
 
+	if (adev->userq_funcs[AMDGPU_HW_IP_COMPUTE]) {
 		for (m = 0; m < adev->gfx.mec.num_mec; ++m) {
 			for (p = 0; p < adev->gfx.mec.num_pipe_per_mec; p++) {
 				irq_type = AMDGPU_CP_IRQ_COMPUTE_MEC1_PIPE0_EOP
@@ -4870,6 +4872,7 @@ static int gfx_v11_0_set_userq_eop_interrupts(struct amdgpu_device *adev,
 			}
 		}
 	}
+
 	return 0;
 }
 
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-04-14 17:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-13 16:06 [PATCH 1/4] drm/amdgpu/gfx11: properly reference EOP interrupts for userqs Alex Deucher
2025-04-13 16:06 ` [PATCH 2/4] drm/amdgpu/gfx12: " Alex Deucher
2025-04-13 16:06 ` [PATCH 3/4] drm/sdma6: properly reference trap " Alex Deucher
2025-04-14  9:58   ` Khatri, Sunil
2025-04-14 15:32     ` Alex Deucher
2025-04-14 17:35       ` Khatri, Sunil
2025-04-13 16:06 ` [PATCH 4/4] drm/sdma7: " Alex Deucher
2025-04-14 17:35   ` Khatri, Sunil
2025-04-14  9:42 ` [PATCH 1/4] drm/amdgpu/gfx11: properly reference EOP " Khatri, Sunil
2025-04-14  9:51   ` Khatri, Sunil
2025-04-14 15:29   ` Alex Deucher
2025-04-14 17:17     ` Khatri, Sunil
2025-04-14 17:24       ` Alex Deucher
2025-04-14 17:33         ` Khatri, Sunil
2025-04-14 17:42 ` Khatri, Sunil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.