drm/amdkfd: SVM map to gpus check vma boundary
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 13 Sep 2021 14:03:36 +0000 (10:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Sep 2021 19:17:29 +0000 (15:17 -0400)
commit1aed482819524b10923ef5171caea47e23bbf014
tree2a1f0cb77a27838d5b57178b3196a25da948302e
parent5ff560cb72ccc5615faded9a98b327264131583b
drm/amdkfd: SVM map to gpus check vma boundary

SVM range may includes multiple VMAs with different vm_flags, if prange
page index is the last page of the VMA offset + npages, update GPU
mapping to create GPU page table with same VMA access permission.

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>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c