Skip to content

Commit 0de3279

Browse files
pcercueiChristoph Hellwig
authored andcommitted
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>
1 parent c51a986 commit 0de3279

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/dma/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ endchoice
177177

178178
config CMA_ALIGNMENT
179179
int "Maximum PAGE_SIZE order of alignment for contiguous buffers"
180-
range 4 12
180+
range 2 12
181181
default 8
182182
help
183183
DMA mapping framework by default aligns all buffers to the smallest

0 commit comments

Comments
 (0)