drm/amdkfd: Use common function for IP version check
Subsystems (3)
PATCH 1/1 drm/amdkfd: Use common function for IP version check
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 <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_priv.h +1 -1
@@ -1127,7 +1127,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++)
Signature · 1 line
2.35.1
[AMD Official Use Only - General]
Reviewed-by Harish Kasiviswanathan <[email protected]>
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Mukul Joshi
Sent: Wednesday, November 22, 2023 3:29 PM
To: [email protected]
Cc: Joshi, Mukul <[email protected]>; Kuehling, Felix <[email protected]>
Subject: [PATCH] drm/amdkfd: Use common function for IP version check
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 <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_priv.h +1 -1
@@ -1127,7 +1127,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.35.1