Skip to contentSkip to conversation

configs: ls1021a: Append CMA configuration to bootargs

PATCH New Alison Wang 2 participants 3 messages Apr 23, 2020 – Apr 30, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configs: ls1021a: Append CMA configuration to bootargs

The default reserved memory for CMA is high memory. If LPAE is enabled, highmem pages are non-remapped and can not be used with dma_alloc_coherent. Reserving low memory for CMA is needed for LS1021A. This patch appends the related CMA configuration to bootargs.

---
Change in v2:
- Update the comment.

 include/configs/ls1021atwr.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
include/configs/ls1021atwr.h +4 -2
index a6289850ca..45ce460dca 100644
@@ -297,7 +297,8 @@
 
 #ifdef CONFIG_LPUART
 #define CONFIG_EXTRA_ENV_SETTINGS       \
-	"bootargs=root=/dev/ram0 rw console=ttyLP0,115200 $othbootargs\0" \
+	"bootargs=root=/dev/ram0 rw console=ttyLP0,115200 "	\
+		"cma=64M at 0x0-0xb0000000\0" \
 	"initrd_high=0xffffffff\0"      \
 	"fdt_addr=0x64f00000\0"		\
 	"kernel_addr=0x65000000\0"	\
@@ -353,7 +354,8 @@
 		"$kernel_size && bootm $load_addr#$board\0"
 #else
 #define CONFIG_EXTRA_ENV_SETTINGS	\
-	"bootargs=root=/dev/ram0 rw console=ttyS0,115200 $othbootargs\0" \
+	"bootargs=root=/dev/ram0 rw console=ttyS0,115200 "	\
+		"cma=64M at 0x0-0xb0000000\0" \
 	"initrd_high=0xffffffff\0"      \
 	"fdt_addr=0x64f00000\0"		\
 	"kernel_addr=0x61000000\0"	\
Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/1 configs: ls1021a: Append CMA configuration to bootargs

Quoted 48 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Alison Wang
Sent: Thursday, April 23, 2020 8:08 PM
To: u-boot at lists.denx.de; Priyanka Jain <[email protected]>; Jagdish Gediya <[email protected]>
Cc: Shengzhou Liu <[email protected]>
Subject: [PATCH v2] configs: ls1021a: Append CMA configuration to bootargs

The default reserved memory for CMA is high memory. If LPAE is enabled, highmem pages are non-remapped and can not be used with dma_alloc_coherent. Reserving low memory for CMA is needed for LS1021A. This patch appends the related CMA configuration to bootargs.

---
Change in v2:
- Update the comment.

include/configs/ls1021atwr.h | 6 ++++--

1 file changed, 4 insertions(+), 2 deletions(-)
include/configs/ls1021atwr.h index renamed from include/configs/ls1021atwr.h +0 -0

a6289850ca..45ce460dca 100644

include/configs/ls1021atwr.h +2 -1
@@ -297,7 +297,8 @@
 
 #ifdef CONFIG_LPUART
 #define CONFIG_EXTRA_ENV_SETTINGS       \
-	"bootargs=root=/dev/ram0 rw console=ttyLP0,115200
 $othbootargs\0" \
+	"bootargs=root=/dev/ram0 rw console=ttyLP0,115200 "	\
+		"cma=64M at 0x0-0xb0000000\0" \
 	"initrd_high=0xffffffff\0"      \
 	"fdt_addr=0x64f00000\0"		\
	"kernel_addr=0x65000000\0"	\
include/configs/ls1021atwr.h +2 -1
@@ -353,7 +354,8 @@
 		"$kernel_size && bootm $load_addr#$board\0"
 #else
 #define CONFIG_EXTRA_ENV_SETTINGS	\
-	"bootargs=root=/dev/ram0 rw console=ttyS0,115200 $othbootargs\0"
 \
+	"bootargs=root=/dev/ram0 rw console=ttyS0,115200 "	\
+		"cma=64M at 0x0-0xb0000000\0" \
 	"initrd_high=0xffffffff\0"      \
 	"fdt_addr=0x64f00000\0"		\
	"kernel_addr=0x61000000\0"	\
Quoted 2 lines

--
2.17.1

#2 lore raw

PATCH v2 1/1 configs: ls1021a: Append CMA configuration to bootargs

In reply to Alison Wang
Quoted 8 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Alison Wang
Sent: Thursday, April 23, 2020 8:08 PM
To: u-boot at lists.denx.de; Priyanka Jain <[email protected]>; Jagdish Gediya <[email protected]>
Cc: Shengzhou Liu <[email protected]>
Subject: [PATCH v2] configs: ls1021a: Append CMA configuration to bootargs

Quoted 8 lines

The default reserved memory for CMA is high memory. If LPAE is enabled, highmem pages are non-remapped and can not be used with dma_alloc_coherent. Reserving low memory for CMA is needed for LS1021A. This patch appends the related CMA configuration to bootargs.

---

Applied to fsl-qoriq. Awaiting upstream

Thanks
Priyanka