From 68002fc8593bf59f76b32f351e68ac178b88a252 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 22 Jan 2024 02:50:19 +0000 Subject: [PATCH] drm/amdkfd: Use common function for IP version check From Mukul Joshi 867ecd8970d33ae4e269a7f24d037c35dcc79290 in linux-6.6.y/6.6.13 2f86bf79b63dbe6963ebc647b77a5f576a906b40 in mainline linux --- sys/dev/pci/drm/amd/amdkfd/kfd_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h b/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h index fa24e185249..df7a5cdb869 100644 --- a/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h +++ b/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h @@ -1128,7 +1128,7 @@ static inline struct kfd_node *kfd_node_by_irq_ids(struct amdgpu_device *adev, struct kfd_dev *dev = adev->kfd.dev; uint32_t i; - if (adev->ip_versions[GC_HWIP][0] != IP_VERSION(9, 4, 3)) + if (KFD_GC_VERSION(dev) != IP_VERSION(9, 4, 3)) return dev->nodes[0]; for (i = 0; i < dev->num_nodes; i++) -- 2.20.1