]> git.baikalelectronics.ru Git - kernel.git/commit
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 20:00:09 +0000 (16:00 -0400)
commit7cae16ae5e800777388e4d86bb970fc14c1c2d9e
tree83bdf08a5ed3cf05f321b1412fc8d9859e3c343c
parentd5ffacb8bd903d4bcd5b3e7225297997348c9612
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