drm/amdkfd: Add interrupt handling for GFX 12.1.0

Add interrupt handling for GFX 12.1.0 similar to what is done
for GFX 9.4.3.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Mukul Joshi
2025-02-26 22:46:54 -05:00
committed by Alex Deucher
parent 01bbc4a4b9
commit 2c0c485dea
5 changed files with 416 additions and 4 deletions

View File

@@ -2279,7 +2279,8 @@ int kfd_process_drain_interrupts(struct kfd_process_device *pdd)
*/
if (KFD_GC_VERSION(pdd->dev->kfd) == IP_VERSION(9, 4, 3) ||
KFD_GC_VERSION(pdd->dev->kfd) == IP_VERSION(9, 4, 4) ||
KFD_GC_VERSION(pdd->dev->kfd) == IP_VERSION(9, 5, 0)) {
KFD_GC_VERSION(pdd->dev->kfd) == IP_VERSION(9, 5, 0) ||
KFD_GC_VERSION(pdd->dev->kfd) == IP_VERSION(12, 1, 0)) {
node_id = ffs(pdd->dev->interrupt_bitmap) - 1;
irq_drain_fence[3] |= node_id << 16;
}