summaryrefslogtreecommitdiff
path: root/rust/kernel/bitmap.rs
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2025-10-06 12:05:56 +0000
committerAlice Ryhl <aliceryhl@google.com>2025-10-20 11:25:11 +0000
commit63e919a31625d5d2878cfc2511274826e29336b2 (patch)
tree6899f7deacc5dcd3f030bf214391bf63bb7b7657 /rust/kernel/bitmap.rs
parent8e4865faf7a97de2a0fd797556a62b31528b42bc (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