diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-01 13:31:30 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-09-25 06:20:43 +0200 |
commit | 0d71675f87dc406d4c284729b8d36be050ad0d15 (patch) | |
tree | c6b1f0f8572d4c6dbe7863b6b3d9889d8656dd45 /drivers/platform | |
parent | 53c700: improve non-coherent DMA handling (diff) | |
download | linux-0d71675f87dc406d4c284729b8d36be050ad0d15.tar.xz linux-0d71675f87dc406d4c284729b8d36be050ad0d15.zip |
dma-mapping: add a new dma_alloc_noncoherent API
Add a new API to allocate and free memory that is guaranteed to be
addressable by a device, but which potentially is not cache coherent
for DMA.
To transfer ownership to and from the device, the existing streaming
DMA API calls dma_sync_single_for_device and dma_sync_single_for_cpu
must be used.
For now the new calls are implemented on top of dma_alloc_attrs just
like the old-noncoherent API, but once all drivers are switched to
the new API it will be replaced with a better working implementation
that is available on all architectures.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions