[PATCH 0/2] Implement default DMA coherent pool
Date: Mon Jul 03 2017 - 10:51:58 EST
From: Vitaly Kuzmichev <Vitaly_Kuzmichev@xxxxxxxxxx>
Here is alternate version to implement default DMA coherent pool, that
we use in our custom kernel since 2015.
Unlike to Vladimir Murzin's patch  "drivers: dma-coherent: Introduce
default DMA pool" this variant stores pointer to "rmem->priv" pointer
and thus it does not need additional function (dma_init_reserved_memory)
to explicitly call device_init (=rmem_dma_device_init) to get valid
address in "rmem->priv".
Default DMA pool attribute for memory region is being provided from
a device tree file.
Patch 2/2 adds 'dmainfo' to ProcFS to show available DMA regions.
The patchset is based on driver-core-next branch.
George G. Davis (2):
drivers: dma-coherent: Add support for default DMA coherent pool
drivers: dma-coherent: show per-device DMA region utilization via
.../bindings/reserved-memory/reserved-memory.txt | 2 +
drivers/base/dma-coherent.c | 250 +++++++++++++++++++--
2 files changed, 237 insertions(+), 15 deletions(-)