Commit 1098d658 authored by Eric Huang's avatar Eric Huang Committed by Alex Deucher
Browse files

drm/amdkfd: Add heavy-weight TLB flush after unmapping



It is a part of memory mapping optimization.

Signed-off-by: default avatarEric Huang <jinhuieric.huang@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3543b055
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);