]> git.samba.org - ksmbd.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)
commit7beb26dcedaa977ece5be7c712a66b7b6c66fc2b
tree83bdf08a5ed3cf05f321b1412fc8d9859e3c343c
parent6de0653f7719bd0aa61f683fba16ae0e2c4ead64
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