am62p: use /dev/dma_heap/carveout_video for wave5
In 48 bits mode, the wave5 video decoder/encoder has a hardware limitation:
For each memory access, the upper 16 bits of the 48 bit address must be identical.
In order to enforce this addressing limitation, we can use a different dmabuf heap, named carveout[1].
Add support for the carveout heap in ueventd and selinux so that v4l2_codec2 can use this custom dma_heap.
To tell the c2 framework that this allocator is available, by setting the c2-poolmask property:
debug.stagefright.c2-poolmask=0x1f50000
DMABUF_CARVEOUT is BIT(24)
[1] https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/dma-buf/heaps/carveout-heap.c?h=ti-linux-6.1.y Signed-off-by: Mattijs Korpershoek mkorpershoek@baylibre.com
Series:
Edited by Mattijs Korpershoek