Skip to contentSkip to conversation

CMA: Document cma=0

PATCH New Jean Delvare 1 participant 1 message Oct 4, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CMA: Document cma=0

It isn't obvious that CMA can be disabled on the kernel's command line, so document it.

Cc Joonsoo Kim <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 Documentation/kernel-parameters.txt |    3 ++-
 drivers/base/Kconfig                |    3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)
Documentation/kernel-parameters.txt +2 -1
@@ -656,7 +656,8 @@ bytes respectively. Such letter suffixes
 			Sets the size of kernel global memory area for
 			contiguous memory allocations and optionally the
 			placement constraint by the physical address range of
-			memory allocations. For more information, see
+			memory allocations. A value of 0 disables CMA
+			altogether. For more information, see
 			include/linux/dma-contiguous.h
 
 	cmo_free_hint=	[PPC] Format: { yes | no }
drivers/base/Kconfig +3 -0
@@ -231,6 +231,9 @@ config DMA_CMA
 	  to allocate big physically-contiguous blocks of memory for use with
 	  hardware components that do not support I/O map nor scatter-gather.
 
+	  You can disable CMA by specifying "cma=0" on the kernel's command
+	  line.
+
 	  For more information see <include/linux/dma-contiguous.h>.
 	  If unsure, say "n".
 
Signature · 2 lines
Jean Delvare
SUSE L3 Support