diff options
author | Paul Cercueil <paul@crapouillou.net> | 2020-09-30 12:28:21 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-10-06 07:06:54 +0200 |
commit | 0de327969b61a245e3a47b60009eae73fe513cef (patch) | |
tree | d7a07a239b62415c483f29ceae4c0b68b9a43bd8 /kernel/dma/Kconfig | |
parent | c51a9868d361a508c5340788950ece7959009c51 (diff) |
cma: decrease CMA_ALIGNMENT lower limit to 2
On an embedded system with a tiny (1 MiB) CMA area for video memory, and
a simple enough video pipeline, we can decrease the CMA_ALIGNMENT by a
factor of 2 to avoid wasting memory, as all the allocations for video
buffers will be of the exact same size (dictated by the size of the
screen).
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/dma/Kconfig')
-rw-r--r-- | kernel/dma/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig index c5f717021f56..647996702bc9 100644 --- a/kernel/dma/Kconfig +++ b/kernel/dma/Kconfig @@ -177,7 +177,7 @@ endchoice config CMA_ALIGNMENT int "Maximum PAGE_SIZE order of alignment for contiguous buffers" - range 4 12 + range 2 12 default 8 help DMA mapping framework by default aligns all buffers to the smallest |