diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-01-22 02:50:20 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-01-22 02:50:20 +0000 |
commit | dea7cdd7ec0c8c7b31920d1c7a0383433b3ff004 (patch) | |
tree | 90f51fb0f018afa510079b5c95c00ded3548b990 /sys | |
parent | ffbeef654be39cb03530ceb289217cbb3a353677 (diff) |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/amdkfd/kfd_priv.h | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |