Closed
Description
(This is more a placeholder for a job that needs doing than a bug)
VCSM ideally wants to be able to support importing and exporting dmabufs to make multimedia work sensibly with the upstream GL/DRM/KMS stuff.
For import:
- the buffers must be contiguous in memory
- VC side needs to be passed the physical address to wrap into a MEM_HANDLE.
- VCSM to hold the reference to the buffer to stop it being released underneath VC.
- need a callback mechanism from VC on releasing the last GPU side reference count on the buffer to release the dmabuf reference.
On exporting:
- VCSM already has the physical address and size of the buffer, so wrapping that into a dmabuf shouldn't be that tricky.
- reference counting needs to be considered, as the VCSM allocation must not be released on VC until the last dmabuf reference is released.
- how does cache handling fit into dmabuf cleanly? VCSM never uses the caching aliases on VC, so it should only be ARM caches that need to be considered.