]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: Remove hard‑coded GC IP version checks from kfd_node_by_irq_ids
authorSreekant Somasekharan <Sreekant.Somasekharan@amd.com>
Fri, 7 Nov 2025 04:49:08 +0000 (23:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:30 +0000 (13:56 -0500)
commit5287e7ef748e4bad63c6f5f05348b022ec867407
treec1b1a5e8079c0e7df1d897f8e26b2989484535e9
parentcf856ca9b999bc81d27bf8c4e1d7b5c7740bcea8
drm/amdkfd: Remove hard‑coded GC IP version checks from kfd_node_by_irq_ids

Replace the GC IP version hard-coded check with multi-aid check in
kfd_node_by_irq_ids(). If aid_mask is not set, we immediately return
dev->nodes[0] otherwise we iterate and match using kfd_irq_is_from_node().

Signed-off-by: Sreekant Somasekharan <Sreekant.Somasekharan@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h