Skip to content

Commit 2f86bf7

Browse files
mukjoshialexdeucher
authored andcommitted
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 <mukul.joshi@amd.com> Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent c5ca994 commit 2f86bf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdkfd/kfd_priv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ static inline struct kfd_node *kfd_node_by_irq_ids(struct amdgpu_device *adev,
11281128
struct kfd_dev *dev = adev->kfd.dev;
11291129
uint32_t i;
11301130

1131-
if (adev->ip_versions[GC_HWIP][0] != IP_VERSION(9, 4, 3))
1131+
if (KFD_GC_VERSION(dev) != IP_VERSION(9, 4, 3))
11321132
return dev->nodes[0];
11331133

11341134
for (i = 0; i < dev->num_nodes; i++)

0 commit comments

Comments
 (0)