From: jsg Date: Thu, 4 Apr 2024 07:53:08 +0000 (+0000) Subject: drm/amdkfd: fix TLB flush after unmap for GFX9.4.2 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8bece886bb09075c43e92a11997c7dbcbbce7fe7;p=openbsd drm/amdkfd: fix TLB flush after unmap for GFX9.4.2 From Eric Huang 2684393685f7f3e264a55d4b55282e780bc2376d in linux-6.6.y/6.6.24 1210e2f1033dc56b666c9f6dfb761a2d3f9f5d6c 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 12ee273e87e..67204c3dfbb 100644 --- a/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h +++ b/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h @@ -1466,7 +1466,7 @@ 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) || + return 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); }