* [PATCH] cma: increase CMA_ALIGNMENT upper limit to 12
@ 2014-05-06 23:23 Marc Carino
2014-05-06 23:23 ` Marc Carino
0 siblings, 1 reply; 2+ messages in thread
From: Marc Carino @ 2014-05-06 23:23 UTC (permalink / raw)
To: linux-mm; +Cc: Marc Carino, Marek Szyprowski, linaro-mm-sig
Certain platforms contain peripherals which have contiguous
memory alignment requirements, necessitating the use of the alignment
argument when obtaining CMA memory. The current default maximum
CMA_ALIGNMENT of order 9 translates into a 1MB alignment on systems
with a 4K page size. To accommodate systems with peripherals with even
larger alignment requirements, increase the upper-bound of
CMA_ALIGNMENT from order 9 to order 12.
Marc Carino (1):
cma: increase CMA_ALIGNMENT upper limit to 12
drivers/base/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.9.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] cma: increase CMA_ALIGNMENT upper limit to 12
2014-05-06 23:23 [PATCH] cma: increase CMA_ALIGNMENT upper limit to 12 Marc Carino
@ 2014-05-06 23:23 ` Marc Carino
0 siblings, 0 replies; 2+ messages in thread
From: Marc Carino @ 2014-05-06 23:23 UTC (permalink / raw)
To: linux-mm; +Cc: Marc Carino, Marek Szyprowski, linaro-mm-sig
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 <marc.ceeeee@gmail.com>
---
drivers/base/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig
index 8fa8dea..0fb820c 100644
--- a/drivers/base/Kconfig
+++ b/drivers/base/Kconfig
@@ -253,7 +253,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
--
1.9.1
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-06 23:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-06 23:23 [PATCH] cma: increase CMA_ALIGNMENT upper limit to 12 Marc Carino
2014-05-06 23:23 ` Marc Carino
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.