From: jsg Date: Mon, 9 Oct 2023 02:25:37 +0000 (+0000) Subject: drm/amdkfd: Flush TLB after unmapping for GFX v9.4.3 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=142580dd4dc788acb41545aca79c845e04d1cb7d;p=openbsd drm/amdkfd: Flush TLB after unmapping for GFX v9.4.3 From Philip Yang 9becfff9f91e350fd4d6f16e9f117f9227258fb0 in linux-6.1.y/6.1.56 75dda67c7213c3e0d17244a8c42547c27ee746f8 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h b/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h index 6d6588b9bee..f374f112f7b 100644 --- a/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h +++ b/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h @@ -1349,9 +1349,9 @@ void kfd_flush_tlb(struct kfd_process_device *pdd, enum TLB_FLUSH_TYPE type); static inline bool kfd_flush_tlb_after_unmap(struct kfd_dev *dev) { - return KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 2) || - (KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 1) && - dev->adev->sdma.instance[0].fw_version >= 18) || + return KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 3) || + KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 2) || + (KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 1) && dev->sdma_fw_version >= 18) || KFD_GC_VERSION(dev) == IP_VERSION(9, 4, 0); }