Revert "Revert "drm/amdkfd: Add heavy-weight TLB flush after unmapping""
authorEric Huang <JinhuiEric.Huang@amd.com>
Mon, 26 Jul 2021 15:21:14 +0000 (11:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Jul 2021 20:37:17 +0000 (16:37 -0400)
This reverts commit 430f8e6edbaac8abfddf76f1aef732d9c6257211.

Revert reason: 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/amdkfd/kfd_chardev.c

index e48acdd03c1a9b268fac16a0549ba13c0c63f3ff..84894cd81ced9c28a7608bcf61c67a6ae7f32aa4 100644 (file)
@@ -1563,6 +1563,7 @@ static int kfd_ioctl_unmap_memory_from_gpu(struct file *filep,
                               i, args->n_devices);
                        goto unmap_memory_from_gpu_failed;
                }
+               kfd_flush_tlb(peer_pdd, TLB_FLUSH_HEAVYWEIGHT);
                args->n_success = i+1;
        }
        kfree(devices_arr);