[PATCH] media: rkvdec: Use dma_map_resource() to map RCB SRAM buffers

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Nov 30 10:29:42 PST 2026


On Sat, 14 Nov 2026 09:49:16 +0000, Lukas Splavec wrote:
> rkvdec_allocate_rcb() uses the CPU virtual address of the SRAM buffer
> as the decoder's IOVA and writes it into the IOMMU page table directly
> with iommu_map(), bypassing the DMA API. Only the low 32 bits of that
> address are used, which falls inside the IOVA range managed by the
> allocator. The IOVA allocator does not know about this range and
> considers it free. Under load it hands out the same IOVA to another
> buffer, e.g. a capture buffer, whose mapping then fails:
> 
> [...]

Applied, thanks!

[1/1] media: rkvdec: Use dma_map_resource() to map RCB SRAM buffers
      commit: 7ed93fcd8a350df1264a30e3f22c811360c43906

Best regards,
-- 
Nicolas Dufresne <nicolas.dufresne at collabora.com>



More information about the Linux-rockchip mailing list