drm/amdkfd: Use common function for IP version check
authorMukul Joshi <mukul.joshi@amd.com>
Wed, 22 Nov 2023 20:17:22 +0000 (15:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Nov 2023 23:07:05 +0000 (18:07 -0500)
KFD_GC_VERSION was recently updated to use a new function
for IP version checks. As a result, use KFD_GC_VERSION as
the common function for all IP version checks in KFD.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h

index 9cc32f577e38ac87f6f678dcb936dd33577dbb91..4c8e278a0d0cc477c05544ce057744a9a924efa7 100644 (file)
@@ -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++)