All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] drm/amdgpu: add sdma page queue irq processing for sdma442
@ 2025-02-11  6:39 Le Ma
  2025-02-11  6:50 ` Zhang, Jesse(Jie)
  2025-02-11  8:22 ` Lazar, Lijo
  0 siblings, 2 replies; 3+ messages in thread
From: Le Ma @ 2025-02-11  6:39 UTC (permalink / raw)
  To: amd-gfx; +Cc: hawking.zhang, lijo.lazar, jesse.zhang, Le Ma

Add the trap irq processing for page queue of sdma442

Signed-off-by: Le Ma <le.ma@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
index 5e0066cd6c51..14acc3b822ec 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
@@ -1683,6 +1683,9 @@ static int sdma_v4_4_2_process_trap_irq(struct amdgpu_device *adev,
 	case 0:
 		amdgpu_fence_process(&adev->sdma.instance[i].ring);
 		break;
+	case 1:
+		amdgpu_fence_process(&adev->sdma.instance[i].page);
+		break;
 	default:
 		break;
 	}
-- 
2.43.2


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

* RE: [PATCH 1/1] drm/amdgpu: add sdma page queue irq processing for sdma442
  2025-02-11  6:39 [PATCH 1/1] drm/amdgpu: add sdma page queue irq processing for sdma442 Le Ma
@ 2025-02-11  6:50 ` Zhang, Jesse(Jie)
  2025-02-11  8:22 ` Lazar, Lijo
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang, Jesse(Jie) @ 2025-02-11  6:50 UTC (permalink / raw)
  To: Ma, Le, amd-gfx@lists.freedesktop.org; +Cc: Zhang, Hawking, Lazar, Lijo

[AMD Official Use Only - AMD Internal Distribution Only]

Please feel free to add: Reviewed-by and Test-by: "Jesse.zhang@amd.com" ,

-----Original Message-----
From: Ma, Le <Le.Ma@amd.com>
Sent: Tuesday, February 11, 2025 2:40 PM
To: amd-gfx@lists.freedesktop.org
Cc: Zhang, Hawking <Hawking.Zhang@amd.com>; Lazar, Lijo <Lijo.Lazar@amd.com>; Zhang, Jesse(Jie) <Jesse.Zhang@amd.com>; Ma, Le <Le.Ma@amd.com>
Subject: [PATCH 1/1] drm/amdgpu: add sdma page queue irq processing for sdma442

Add the trap irq processing for page queue of sdma442

Signed-off-by: Le Ma <le.ma@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
index 5e0066cd6c51..14acc3b822ec 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
@@ -1683,6 +1683,9 @@ static int sdma_v4_4_2_process_trap_irq(struct amdgpu_device *adev,
        case 0:
                amdgpu_fence_process(&adev->sdma.instance[i].ring);
                break;
+       case 1:
+               amdgpu_fence_process(&adev->sdma.instance[i].page);
+               break;
        default:
                break;
        }
--
2.43.2


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

* Re: [PATCH 1/1] drm/amdgpu: add sdma page queue irq processing for sdma442
  2025-02-11  6:39 [PATCH 1/1] drm/amdgpu: add sdma page queue irq processing for sdma442 Le Ma
  2025-02-11  6:50 ` Zhang, Jesse(Jie)
@ 2025-02-11  8:22 ` Lazar, Lijo
  1 sibling, 0 replies; 3+ messages in thread
From: Lazar, Lijo @ 2025-02-11  8:22 UTC (permalink / raw)
  To: Le Ma, amd-gfx; +Cc: hawking.zhang, jesse.zhang



On 2/11/2025 12:09 PM, Le Ma wrote:
> Add the trap irq processing for page queue of sdma442
> 
> Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>

Maybe good to add a WARN_ON(!adev->sdma.has_page_queue)

Thanks,
Lijo

> ---
>  drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
> index 5e0066cd6c51..14acc3b822ec 100644
> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c
> @@ -1683,6 +1683,9 @@ static int sdma_v4_4_2_process_trap_irq(struct amdgpu_device *adev,
>  	case 0:
>  		amdgpu_fence_process(&adev->sdma.instance[i].ring);
>  		break;
> +	case 1:
> +		amdgpu_fence_process(&adev->sdma.instance[i].page);
> +		break;
>  	default:
>  		break;
>  	}


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

end of thread, other threads:[~2025-02-11  8:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-11  6:39 [PATCH 1/1] drm/amdgpu: add sdma page queue irq processing for sdma442 Le Ma
2025-02-11  6:50 ` Zhang, Jesse(Jie)
2025-02-11  8:22 ` Lazar, Lijo

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.