]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: use mmu_interval_notifier_insert
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 12 Nov 2019 20:22:24 +0000 (16:22 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Sat, 23 Nov 2019 23:56:44 +0000 (19:56 -0400)
commit5d44d5db5efb16aeb3bf782612903ac7eb1d80e8
tree123cb49982a498dff24be34e1d4803e4707d7bc2
parent4b25a690c90ade4010fc87f1b998713aa294f8d4
drm/radeon: use mmu_interval_notifier_insert

The new API is an exact match for the needs of radeon.

For some reason radeon tries to remove overlapping ranges from the
interval tree, but interval trees (and mmu_interval_notifier_insert())
support overlapping ranges directly. Simply delete all this code.

Since this driver is missing a invalidate_range_end callback, but
still calls get_user_pages(), it cannot be correct against all races.

Link: https://lore.kernel.org/r/20191112202231.3856-8-jgg@ziepe.ca
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_mn.c