aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMichael Tretter <m.tretter@pengutronix.de>2023-10-13 13:00:24 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-12-07 08:56:13 +0100
commit6040702ade234c8212dcfdef85e2f5549aa2f0f5 (patch)
treee2b467594e27bb0f2df5798a91fcb2890752d206 /tools/perf/scripts/python
parentmedia: rockchip: rga: extract helper to fill descriptors (diff)
downloadlinux-6040702ade234c8212dcfdef85e2f5549aa2f0f5.tar.gz
linux-6040702ade234c8212dcfdef85e2f5549aa2f0f5.zip
media: rockchip: rga: allocate DMA descriptors per buffer
The RGA driver allocates two buffers for the DMA descriptors of the input and output buffers. Whenever a new job is processed, the descriptor list is updated for the current buffers. By updating the descriptor list during buf_prepare, it is possible to correctly fail DMABUF imports if the buffers that shall be imported are not within the 32 bit address range that can be addressed by the RGA. Managing the DMA descriptor list with the buffer also makes it easier to track the buffer mapping and the plane offsets into this mapping. The cost is that the driver now requires DMA coherent memory per buffer for the descriptor list. However, the size scales with the size of the video buffers and is not allocated if the RGA is not used. While at it, use dma_alloc_coherent to allocate the descriptors and get rid of the virt_to_phys calls to get the physical addresses. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions