summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/amd
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-10-09 02:25:38 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-10-09 02:25:38 +0000
commit09b20780c152bfcfe6c758d7f972ba17afff3181 (patch)
tree30043543c9ed2dca9284509ad17c043942c1a81e /sys/dev/pci/drm/amd
parent3905d626b84c7134d1864907f6d65a715b31f677 (diff)
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
Diffstat (limited to 'sys/dev/pci/drm/amd')
-rw-r--r--sys/dev/pci/drm/amd/amdkfd/kfd_priv.h6
1 files changed, 3 insertions, 3 deletions
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);
}