artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c4aea1
)
drm/amdgpu: To flush tlb for MMHUB of RAVEN series
author
jsg
<jsg@openbsd.org>
Thu, 7 Jul 2022 23:25:48 +0000
(23:25 +0000)
committer
jsg
<jsg@openbsd.org>
Thu, 7 Jul 2022 23:25:48 +0000
(23:25 +0000)
From Ruili Ji
31c371b61d13dd457fdcc27cd728c04ee09f9cdb
in linux 5.15.y/5.15.53
5cb0e3fb2c54eabfb3f932a1574bff1774946bc0
in mainline linux
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c
b/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c
index
3db75a6
..
078cc9a
100644
(file)
--- a/
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c
+++ b/
sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c
@@
-773,7
+773,8
@@
int amdgpu_amdkfd_flush_gpu_tlb_pasid(struct kgd_dev *kgd, uint16_t pasid,
struct amdgpu_device *adev = (struct amdgpu_device *)kgd;
bool all_hub = false;
- if (adev->family == AMDGPU_FAMILY_AI)
+ if (adev->family == AMDGPU_FAMILY_AI ||
+ adev->family == AMDGPU_FAMILY_RV)
all_hub = true;
return amdgpu_gmc_flush_gpu_tlb_pasid(adev, pasid, flush_type, all_hub);