[PATCH 6.6 017/150] drm/amdkfd: Use common function for IP version check