diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2025-10-06 12:05:56 +0000 |
|---|---|---|
| committer | Alice Ryhl <aliceryhl@google.com> | 2025-10-20 11:25:11 +0000 |
| commit | 63e919a31625d5d2878cfc2511274826e29336b2 (patch) | |
| tree | 6899f7deacc5dcd3f030bf214391bf63bb7b7657 /rust/kernel/bitmap.rs | |
| parent | 8e4865faf7a97de2a0fd797556a62b31528b42bc (diff) | |
panthor: use drm_gpuva_unlink_defer()
Instead of manually deferring cleanup of vm_bos, use the new GPUVM
infrastructure for doing so.
To avoid manual management of vm_bo refcounts, the panthor_vma_link()
and panthor_vma_unlink() methods are changed to get and put a vm_bo
refcount on the vm_bo. This simplifies the code a lot. I preserved the
behavior where panthor_gpuva_sm_step_map() drops the refcount right away
rather than letting panthor_vm_cleanup_op_ctx() do it later.
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/r/20251006-vmbo-defer-v4-2-30cbd2c05adb@google.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Diffstat (limited to 'rust/kernel/bitmap.rs')
0 files changed, 0 insertions, 0 deletions
