diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h index 6ca61b573e6a1..1fd7409a97bc7 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h @@ -864,6 +864,11 @@ struct kfd_process { /* We want to receive a notification when the mm_struct is destroyed */ struct mmu_notifier mmu_notifier; +#if defined(DRM_VER) && defined(DRM_PATCH) && DRM_VER == 5 && DRM_PATCH == 6 \ + && LINUX_VERSION_CODE == KERNEL_VERSION(4, 18, 0) + /* mmu_notifier_put in the RH DRM backport from 5.6 is broken */ +# undef HAVE_MMU_NOTIFIER_PUT +#endif #ifndef HAVE_MMU_NOTIFIER_PUT /* Use for delayed freeing of kfd_process structure */ struct rcu_head rcu;