Skip to content

Commit

Permalink
cma: decrease CMA_ALIGNMENT lower limit to 2
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
pcercuei authored and Christoph Hellwig committed Oct 6, 2020
1 parent c51a986 commit 0de3279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/dma/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0de3279

Please sign in to comment.