Skip to content

Commit

Permalink
cma: increase CMA_ALIGNMENT upper limit to 12
Browse files Browse the repository at this point in the history
Some systems require a larger maximum PAGE_SIZE order for CMA allocations.
 To accommodate such systems, increase the upper-bound of the
CMA_ALIGNMENT range to 12 (which ends up being 16MB on systems with 4K
pages).

Signed-off-by: Marc Carino <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
marcXceeeee authored and torvalds committed Jun 4, 2014
1 parent 18ab4d4 commit fe54b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ endchoice

config CMA_ALIGNMENT
int "Maximum PAGE_SIZE order of alignment for contiguous buffers"
range 4 9
range 4 12
default 8
help
DMA mapping framework by default aligns all buffers to the smallest
Expand Down

0 comments on commit fe54b1f

Please sign in to comment.