From 4098896f510832d1c2dcc05bb6912759fc88a223 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 7 Jul 2022 23:25:48 +0000 Subject: [PATCH] drm/amdgpu: To flush tlb for MMHUB of RAVEN series 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_amdkfd.c index 3db75a65d65..078cc9aa4d2 100644 --- 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); -- 2.20.1