diff options
author | Philip Yang <Philip.Yang@amd.com> | 2022-04-18 21:32:14 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-04-26 11:42:44 -0400 |
commit | 6b9c63a6eb540e678504a080865e9d3c716288ed (patch) | |
tree | d1f89b647efac0a9638ddeec7f9403bd4e2fc417 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c | |
parent | 398bb283899b831bea45d639d0d4e0190c9ca305 (diff) | |
download | linux-6b9c63a6eb540e678504a080865e9d3c716288ed.tar.bz2 |
drm/amdkfd: Add SVM range mapped_to_gpu flag
To avoid unnecessary unmap SVM range from GPUs if range is not mapped on
GPUs when migrating the range. This flag will also be used to flush TLB
when updating the existing mapping on GPUs.
It is protected by prange->migrate_mutex and mmap read lock in MMU
notifier callback.
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c')
0 files changed, 0 insertions, 0 deletions