diff options
author | Christoph Hellwig <hch@lst.de> | 2018-12-25 13:29:54 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-02-20 15:27:00 +0100 |
commit | 82c5de0ab8dbd6035223ad69e76bd8a88a0a9399 (patch) | |
tree | 8401f73e927f3f7f9e93450f88c895243b41d911 /Documentation/DMA-API.txt | |
parent | dma-mapping: remove dma_mark_declared_memory_occupied (diff) | |
download | linux-82c5de0ab8dbd6035223ad69e76bd8a88a0a9399.tar.xz linux-82c5de0ab8dbd6035223ad69e76bd8a88a0a9399.zip |
dma-mapping: remove the DMA_MEMORY_EXCLUSIVE flag
All users of dma_declare_coherent want their allocations to be
exclusive, so default to exclusive allocations.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/DMA-API.txt')
-rw-r--r-- | Documentation/DMA-API.txt | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Documentation/DMA-API.txt b/Documentation/DMA-API.txt index b9d0cba83877..38e561b773b4 100644 --- a/Documentation/DMA-API.txt +++ b/Documentation/DMA-API.txt @@ -566,8 +566,7 @@ boundaries when doing this. int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, - dma_addr_t device_addr, size_t size, int - flags) + dma_addr_t device_addr, size_t size); Declare region of memory to be handed out by dma_alloc_coherent() when it's asked for coherent memory for this device. @@ -581,12 +580,6 @@ dma_addr_t in dma_alloc_coherent()). size is the size of the area (must be multiples of PAGE_SIZE). -flags can be ORed together and are: - -- DMA_MEMORY_EXCLUSIVE - only allocate memory from the declared regions. - Do not allow dma_alloc_coherent() to fall back to system memory when - it's out of memory in the declared region. - As a simplification for the platforms, only *one* such region of memory may be declared per device. |