diff options
| author | Jason Gunthorpe <[email protected]> | 2019-11-12 20:22:28 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2019-11-23 23:56:45 +0000 |
| commit | 62914a99dee5ac51253a84e7d4a05c18f0c77535 (patch) | |
| tree | 1821cd817f10bfb432d8f59fa7af0fe543b92183 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/amdgpu: Call find_vma under mmap_sem (diff) | |
| download | kernel-62914a99dee5ac51253a84e7d4a05c18f0c77535.tar.gz kernel-62914a99dee5ac51253a84e7d4a05c18f0c77535.zip | |
drm/amdgpu: Use mmu_interval_insert instead of hmm_mirror
Remove the interval tree in the driver and rely on the tree maintained by
the mmu_notifier for delivering mmu_notifier invalidation callbacks.
For some reason amdgpu has a very complicated arrangement where it tries
to prevent duplicate entries in the interval_tree, this is not necessary,
each amdgpu_bo can be its own stand alone entry. interval_tree already
allows duplicates and overlaps in the tree.
Also, there is no need to remove entries upon a release callback, the
mmu_interval API safely allows objects to remain registered beyond the
lifetime of the mm. The driver only has to stop touching the pages during
release.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Philip Yang <[email protected]>
Tested-by: Philip Yang <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
