Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Sreekant Somasekharan and committed by
Alex Deucher
5287e7ef cf856ca9

+5 -3
+5 -3
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
··· 1162 1162 struct kfd_dev *dev = adev->kfd.dev; 1163 1163 uint32_t i; 1164 1164 1165 - if (KFD_GC_VERSION(dev) != IP_VERSION(9, 4, 3) && 1166 - KFD_GC_VERSION(dev) != IP_VERSION(9, 4, 4) && 1167 - KFD_GC_VERSION(dev) != IP_VERSION(9, 5, 0)) 1165 + /* 1166 + * On multi-aid system, attempt per-node matching. Otherwise, 1167 + * fall back to the first node. 1168 + */ 1169 + if (!amdgpu_is_multi_aid(adev)) 1168 1170 return dev->nodes[0]; 1169 1171 1170 1172 for (i = 0; i < dev->num_nodes; i++)