]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Revert "Revert "drm/amdkfd: Only apply TLB flush optimization on ALdebaran""
authorEric Huang <JinhuiEric.Huang@amd.com>
Mon, 26 Jul 2021 15:35:16 +0000 (11:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Aug 2021 21:21:25 +0000 (17:21 -0400)
This reverts commit 53d0533049a573298f74ae07a39db14163960e68.

Revert reason: The issue has been resolved.

Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c

index 428b64fb7950a3c4c65ac736626819b2acceda5a..2d6b2d77b73848e2e43144ca9ce94a5ec8c62a20 100644 (file)
@@ -1720,6 +1720,12 @@ int amdgpu_amdkfd_gpuvm_map_memory_to_gpu(
                                true);
        ret = unreserve_bo_and_vms(&ctx, false, false);
 
+       /* Only apply no TLB flush on Aldebaran to
+        * workaround regressions on other Asics.
+        */
+       if (table_freed && (adev->asic_type != CHIP_ALDEBARAN))
+               *table_freed = true;
+
        goto out;
 
 out_unreserve: