Files
linux/include/drm
Rob Clark 471920ce25 drm/gpuvm: Add locking helpers
For UNMAP/REMAP steps we could be needing to lock objects that are not
explicitly listed in the VM_BIND ioctl in order to tear-down unmapped
VAs.  These helpers handle locking/preparing the needed objects.

Note that these functions do not strictly require the VM changes to be
applied before the next drm_gpuvm_sm_map_lock()/_unmap_lock() call.  In
the case that VM changes from an earlier drm_gpuvm_sm_map()/_unmap()
call result in a differing sequence of steps when the VM changes are
actually applied, it will be the same set of GEM objects involved, so
the locking is still correct.

v2: Rename to drm_gpuvm_sm_*_exec_locked() [Danilo]
v3: Expand comments to show expected usage, and explain how the usage
    is safe in the case of overlapping driver VM_BIND ops.

Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Tested-by: Antonino Maniscalco <antomani103@gmail.com>
Reviewed-by: Antonino Maniscalco <antomani103@gmail.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Patchwork: https://patchwork.freedesktop.org/patch/661458/
2025-07-04 11:09:43 -07:00
..
2025-06-11 09:01:34 +02:00
2025-06-06 15:50:22 +02:00
2025-01-08 01:39:58 +02:00
2023-11-14 10:23:12 +01:00
2025-07-04 11:09:43 -07:00
2025-03-06 11:35:25 -08:00
2024-08-23 16:47:56 +02:00
2024-11-21 09:28:11 -06:00
2021-10-04 12:06:14 +02:00