Re: [PATCH 1/2] drm/amdkfd: Add SVM range mapped_to_gpu flag

2022-04-25 Thread Felix Kuehling
Am 2022-04-19 um 20:47 schrieb Philip Yang: 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

[PATCH 1/2] drm/amdkfd: Add SVM range mapped_to_gpu flag

2022-04-19 Thread Philip Yang
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