]> Gentwo Git Trees - linux/.git/commit
panthor: use drm_gpuva_unlink_defer()
authorAlice Ryhl <aliceryhl@google.com>
Mon, 6 Oct 2025 12:05:56 +0000 (12:05 +0000)
committerAlice Ryhl <aliceryhl@google.com>
Mon, 20 Oct 2025 11:25:11 +0000 (11:25 +0000)
commit63e919a31625d5d2878cfc2511274826e29336b2
tree6899f7deacc5dcd3f030bf214391bf63bb7b7657
parent8e4865faf7a97de2a0fd797556a62b31528b42bc
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>
drivers/gpu/drm/panthor/panthor_mmu.c