diff options
author | Eric Huang <[email protected]> | 2021-06-01 18:26:07 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2021-06-04 12:40:00 -0400 |
commit | 1098d658bef05e5fee634aab0b6a1fa590cfca24 (patch) | |
tree | e0f75c54f03133d5d5b53f6409eeda5365490607 | |
parent | 3543b055b8c7a910847bc23fab816afbf04197e2 (diff) |
drm/amdkfd: Add heavy-weight TLB flush after unmapping
It is a part of memory mapping optimization.
Signed-off-by: Eric Huang <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c index e86422460c07..e88f63819c15 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c @@ -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); |