artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
142580d
)
drm/amdkfd: Insert missing TLB flush on GFX10 and later
author
jsg
<jsg@openbsd.org>
Mon, 9 Oct 2023 02:27:27 +0000
(
02:27
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 9 Oct 2023 02:27:27 +0000
(
02:27
+0000)
From Harish Kasiviswanathan
cdfcaa4e80430003dbba1bdb86f9fde5480ddbe5
in linux-6.1.y/6.1.56
edcfe22985d09ee8e2346c9217f5a52ab150099f
in mainline linux
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
b/sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
index
f374f11
..
ec8a576
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
+++ b/
sys/dev/pci/drm/amd/amdkfd/kfd_priv.h
@@
-1349,8
+1349,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, 3) ||
- 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);
}