drm/amdgpu: To flush tlb for MMHUB of RAVEN series
authorjsg <jsg@openbsd.org>
Thu, 7 Jul 2022 23:25:48 +0000 (23:25 +0000)
committerjsg <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

index 3db75a6..078cc9a 100644 (file)
@@ -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);