AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdkfd: check more client ids in interrupt handler
@ 2021-01-06  6:13 Tao Zhou
  2021-01-06 14:15 ` Deucher, Alexander
  2021-01-06 16:07 ` Felix Kuehling
  0 siblings, 2 replies; 3+ messages in thread
From: Tao Zhou @ 2021-01-06  6:13 UTC (permalink / raw)
  To: Alexander.Deucher, Felix.Kuehling, amd-gfx; +Cc: Tao Zhou

Add check for SExSH clients in kfd interrupt handler.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
index 0ca0327a39e5..74a460be077b 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
@@ -56,7 +56,11 @@ static bool event_interrupt_isr_v9(struct kfd_dev *dev,
 	    client_id != SOC15_IH_CLIENTID_SDMA7 &&
 	    client_id != SOC15_IH_CLIENTID_VMC &&
 	    client_id != SOC15_IH_CLIENTID_VMC1 &&
-	    client_id != SOC15_IH_CLIENTID_UTCL2)
+	    client_id != SOC15_IH_CLIENTID_UTCL2 &&
+	    client_id != SOC15_IH_CLIENTID_SE0SH &&
+	    client_id != SOC15_IH_CLIENTID_SE1SH &&
+	    client_id != SOC15_IH_CLIENTID_SE2SH &&
+	    client_id != SOC15_IH_CLIENTID_SE3SH)
 		return false;
 
 	/* This is a known issue for gfx9. Under non HWS, pasid is not set
@@ -111,7 +115,11 @@ static void event_interrupt_wq_v9(struct kfd_dev *dev,
 	vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry);
 	context_id = SOC15_CONTEXT_ID0_FROM_IH_ENTRY(ih_ring_entry);
 
-	if (client_id == SOC15_IH_CLIENTID_GRBM_CP) {
+	if (client_id == SOC15_IH_CLIENTID_GRBM_CP ||
+	    client_id == SOC15_IH_CLIENTID_SE0SH ||
+	    client_id == SOC15_IH_CLIENTID_SE1SH ||
+	    client_id == SOC15_IH_CLIENTID_SE2SH ||
+	    client_id == SOC15_IH_CLIENTID_SE3SH) {
 		if (source_id == SOC15_INTSRC_CP_END_OF_PIPE)
 			kfd_signal_event_interrupt(pasid, context_id, 32);
 		else if (source_id == SOC15_INTSRC_SQ_INTERRUPT_MSG)
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: [PATCH] drm/amdkfd: check more client ids in interrupt handler
  2021-01-06  6:13 [PATCH] drm/amdkfd: check more client ids in interrupt handler Tao Zhou
@ 2021-01-06 14:15 ` Deucher, Alexander
  2021-01-06 16:07 ` Felix Kuehling
  1 sibling, 0 replies; 3+ messages in thread
From: Deucher, Alexander @ 2021-01-06 14:15 UTC (permalink / raw)
  To: Zhou1, Tao, Kuehling, Felix, amd-gfx@lists.freedesktop.org


[-- Attachment #1.1: Type: text/plain, Size: 2400 bytes --]

[AMD Official Use Only - Internal Distribution Only]

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
________________________________
From: Zhou1, Tao <Tao.Zhou1@amd.com>
Sent: Wednesday, January 6, 2021 1:13 AM
To: Deucher, Alexander <Alexander.Deucher@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>
Cc: Zhou1, Tao <Tao.Zhou1@amd.com>
Subject: [PATCH] drm/amdkfd: check more client ids in interrupt handler

Add check for SExSH clients in kfd interrupt handler.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
index 0ca0327a39e5..74a460be077b 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
@@ -56,7 +56,11 @@ static bool event_interrupt_isr_v9(struct kfd_dev *dev,
             client_id != SOC15_IH_CLIENTID_SDMA7 &&
             client_id != SOC15_IH_CLIENTID_VMC &&
             client_id != SOC15_IH_CLIENTID_VMC1 &&
-           client_id != SOC15_IH_CLIENTID_UTCL2)
+           client_id != SOC15_IH_CLIENTID_UTCL2 &&
+           client_id != SOC15_IH_CLIENTID_SE0SH &&
+           client_id != SOC15_IH_CLIENTID_SE1SH &&
+           client_id != SOC15_IH_CLIENTID_SE2SH &&
+           client_id != SOC15_IH_CLIENTID_SE3SH)
                 return false;

         /* This is a known issue for gfx9. Under non HWS, pasid is not set
@@ -111,7 +115,11 @@ static void event_interrupt_wq_v9(struct kfd_dev *dev,
         vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry);
         context_id = SOC15_CONTEXT_ID0_FROM_IH_ENTRY(ih_ring_entry);

-       if (client_id == SOC15_IH_CLIENTID_GRBM_CP) {
+       if (client_id == SOC15_IH_CLIENTID_GRBM_CP ||
+           client_id == SOC15_IH_CLIENTID_SE0SH ||
+           client_id == SOC15_IH_CLIENTID_SE1SH ||
+           client_id == SOC15_IH_CLIENTID_SE2SH ||
+           client_id == SOC15_IH_CLIENTID_SE3SH) {
                 if (source_id == SOC15_INTSRC_CP_END_OF_PIPE)
                         kfd_signal_event_interrupt(pasid, context_id, 32);
                 else if (source_id == SOC15_INTSRC_SQ_INTERRUPT_MSG)
--
2.17.1


[-- Attachment #1.2: Type: text/html, Size: 4726 bytes --]

[-- Attachment #2: Type: text/plain, Size: 154 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

* Re: [PATCH] drm/amdkfd: check more client ids in interrupt handler
  2021-01-06  6:13 [PATCH] drm/amdkfd: check more client ids in interrupt handler Tao Zhou
  2021-01-06 14:15 ` Deucher, Alexander
@ 2021-01-06 16:07 ` Felix Kuehling
  1 sibling, 0 replies; 3+ messages in thread
From: Felix Kuehling @ 2021-01-06 16:07 UTC (permalink / raw)
  To: Tao Zhou, Alexander.Deucher, amd-gfx

Thanks for catching and fixing this.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>

Am 2021-01-06 um 1:13 a.m. schrieb Tao Zhou:
> Add check for SExSH clients in kfd interrupt handler.
>
> Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 12 ++++++++++--
>  1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
> index 0ca0327a39e5..74a460be077b 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
> @@ -56,7 +56,11 @@ static bool event_interrupt_isr_v9(struct kfd_dev *dev,
>  	    client_id != SOC15_IH_CLIENTID_SDMA7 &&
>  	    client_id != SOC15_IH_CLIENTID_VMC &&
>  	    client_id != SOC15_IH_CLIENTID_VMC1 &&
> -	    client_id != SOC15_IH_CLIENTID_UTCL2)
> +	    client_id != SOC15_IH_CLIENTID_UTCL2 &&
> +	    client_id != SOC15_IH_CLIENTID_SE0SH &&
> +	    client_id != SOC15_IH_CLIENTID_SE1SH &&
> +	    client_id != SOC15_IH_CLIENTID_SE2SH &&
> +	    client_id != SOC15_IH_CLIENTID_SE3SH)
>  		return false;
>  
>  	/* This is a known issue for gfx9. Under non HWS, pasid is not set
> @@ -111,7 +115,11 @@ static void event_interrupt_wq_v9(struct kfd_dev *dev,
>  	vmid = SOC15_VMID_FROM_IH_ENTRY(ih_ring_entry);
>  	context_id = SOC15_CONTEXT_ID0_FROM_IH_ENTRY(ih_ring_entry);
>  
> -	if (client_id == SOC15_IH_CLIENTID_GRBM_CP) {
> +	if (client_id == SOC15_IH_CLIENTID_GRBM_CP ||
> +	    client_id == SOC15_IH_CLIENTID_SE0SH ||
> +	    client_id == SOC15_IH_CLIENTID_SE1SH ||
> +	    client_id == SOC15_IH_CLIENTID_SE2SH ||
> +	    client_id == SOC15_IH_CLIENTID_SE3SH) {
>  		if (source_id == SOC15_INTSRC_CP_END_OF_PIPE)
>  			kfd_signal_event_interrupt(pasid, context_id, 32);
>  		else if (source_id == SOC15_INTSRC_SQ_INTERRUPT_MSG)
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2021-01-06 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-06  6:13 [PATCH] drm/amdkfd: check more client ids in interrupt handler Tao Zhou
2021-01-06 14:15 ` Deucher, Alexander
2021-01-06 16:07 ` Felix Kuehling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox