cma: decrease CMA_ALIGNMENT lower limit to 2
authorPaul Cercueil <paul@crapouillou.net>
Wed, 30 Sep 2020 10:28:21 +0000 (12:28 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 6 Oct 2020 05:06:54 +0000 (07:06 +0200)
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>
kernel/dma/Kconfig

index c5f7170..6479967 100644 (file)
@@ -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