Skip to contentSkip to conversation

drm/amdgpu: add sdma page queue irq processing for sdma442

PATCH In review Le Ma 3 participants 3 messages Feb 11, 2025

Subsystems (2)
lore
Share & tools
lore

Le Ma

author
#0 lore raw

PATCH 1/1 drm/amdgpu: add sdma page queue irq processing for sdma442

Add the trap irq processing for page queue of sdma442

---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c +3 -0
index 5e0066cd6c51..14acc3b822ec 100644
@@ -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;
 	}
Signature · 1 line
2.43.2
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Please feel free to add: Reviewed-by and Test-by: "[email protected]" ,

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

Add the trap irq processing for page queue of sdma442

---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c +3 -0
index 5e0066cd6c51..14acc3b822ec 100644
@@ -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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Le Ma
Quoted 3 lines · On 2/11/2025 12:09 PM, Le Ma wrote:

Add the trap irq processing for page queue of sdma442

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

Thanks,
Lijo

Quoted 18 lines
---
 drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c +3 -0
index 5e0066cd6c51..14acc3b822ec 100644
@@ -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;
 	}