summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2019-03-04 22:10:12 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-03-19 23:36:58 +0300
commit386a68e78620c793ed1ba9bc5789b90c18be262a (patch)
tree3f02de502fd0da0d899a1fd3c9f5fe929e16dc34 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parent1bd4e4ca7bb8f681ff4e2b05c97ce975ccd781d6 (diff)
downloadlinux-386a68e78620c793ed1ba9bc5789b90c18be262a.tar.xz
drm/amdkfd: support concurrent userptr update for HMM
Userptr restore may have concurrent userptr invalidation after hmm_vma_fault adds the range to the hmm->ranges list, needs call hmm_vma_range_done to remove the range from hmm->ranges list first, then reschedule the restore worker. Otherwise hmm_vma_fault will add same range to the list, this will cause loop in the list because range->next point to range itself. Add function untrack_invalid_user_pages to reduce code duplication. 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_device.c')
0 files changed, 0 insertions, 0 deletions