Skip to content

v4l: videobuf2: Add DMA pool allocator

Jeongtae Park linux-media linux-samsung-soc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1v4l: videobuf2: Add DMA pool allocatordrivers/media/video/Kconfig drivers/media/video/Makefile drivers/media/video/videobuf2-dma-pool.c +1 more+355 -00 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchJonghun Han
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] v4l: videobuf2: Add DMA pool allocator

Hello!

The DMA pool allocator allocates a memory using dma_alloc_coherent(), creates a pool using generic allocator in the initialization. For every allocation requests, the allocator returns a part of its memory pool using generic allocator instead of new memory allocation.

This allocator used for devices have below limitations.
- the start address should be aligned
- the range of memory access limited to the offset from the start address (= the allocation address should be existed in a constant offset from the start address)
- the allocation address should be aligned

I would be grateful for your comments.

This patch series contains:

[PATCH 1/1] v4l: videobuf2: Add DMA pool allocator

Best regards,
Jeongtae Park

Patch summary:

Jeongtae Park (1):
v4l: videobuf2: Add DMA pool allocator

 drivers/media/video/Kconfig              |    7 +
 drivers/media/video/Makefile             |    1 +
 drivers/media/video/videobuf2-dma-pool.c |  310 ++++++++++++++++++++++++++++++
 include/media/videobuf2-dma-pool.h       |   37 ++++
 4 files changed, 355 insertions(+), 0 deletions(-)
 create mode 100644 drivers/media/video/videobuf2-dma-pool.c
 create mode 100644 include/media/videobuf2-dma-pool.h