Skip to contentSkip to conversation

configs: ls1021a: Reserve low memory for CMA

PATCH New Alison Wang 2 participants 3 messages Jan 21, 2020 – Feb 5, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: ls1021a: Reserve low memory for CMA

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. This patch will reserve low memory for CMA and fix the issue on LS1021A.

---
 include/configs/ls1021atwr.h | 4 ++++
 1 file changed, 4 insertions(+)
include/configs/ls1021atwr.h +4 -0
index 46c372a..6aa7154 100644
@@ -310,6 +310,8 @@
 	"kernel_size=0x2800000\0"	\
 	"kernel_addr_sd=0x8000\0"	\
 	"kernel_size_sd=0x14000\0"	\
+	"$othbootargs\0"		\
+	"othbootargs=cma=64M at 0x0-0xb0000000\0"	\
 	BOOTENV				\
 	"boot_scripts=ls1021atwr_boot.scr\0"	\
 	"boot_script_hdr=hdr_ls1021atwr_bs.out\0"	\
@@ -370,6 +372,8 @@
 	"kernel_size_sd=0x14000\0"	\
 	"kernelhdr_addr_sd=0x4000\0"		\
 	"kernelhdr_size_sd=0x10\0"		\
+	"$othbootargs\0"			\
+	"othbootargs=cma=64M at 0x0-0xb0000000\0"	\
 	BOOTENV				\
 	"boot_scripts=ls1021atwr_boot.scr\0"	\
 	"boot_script_hdr=hdr_ls1021atwr_bs.out\0"	\
Signature · 1 line
2.9.5
#1 lore raw

PATCH 1/1 configs: ls1021a: Reserve low memory for CMA

Quoted 42 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Alison Wang
Sent: Tuesday, January 21, 2020 1:03 PM
To: Priyanka Jain <[email protected]>; u-boot at lists.denx.de
Cc: Alison Wang <[email protected]>; Peng Ma <[email protected]>
Subject: [PATCH] configs: ls1021a: Reserve low memory for CMA

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. This patch will reserve low memory for CMA and fix the issue on LS1021A.

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

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

46c372a..6aa7154 100644

include/configs/ls1021atwr.h +4 -1
@@ -310,6 +310,8 @@
 	"kernel_size=0x2800000\0"	\
 	"kernel_addr_sd=0x8000\0"	\
 	"kernel_size_sd=0x14000\0"	\
+	"$othbootargs\0"		\
+	"othbootargs=cma=64M at 0x0-0xb0000000\0"	\
 	BOOTENV				\
 	"boot_scripts=ls1021atwr_boot.scr\0"	\
 	"boot_script_hdr=hdr_ls1021atwr_bs.out\0"	\
@@ -370,6 +372,8 @@
 	"kernel_size_sd=0x14000\0"	\
 	"kernelhdr_addr_sd=0x4000\0"		\
 	"kernelhdr_size_sd=0x10\0"		\
+	"$othbootargs\0"			\
+	"othbootargs=cma=64M at 0x0-0xb0000000\0"	\
 	BOOTENV				\
 	"boot_scripts=ls1021atwr_boot.scr\0"	\
 	"boot_script_hdr=hdr_ls1021atwr_bs.out\0"	\
--
Quoted 1 line

2.9.5

#2 lore raw

PATCH 1/1 configs: ls1021a: Reserve low memory for CMA

In reply to Alison Wang
Quoted 12 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Alison Wang
Sent: Tuesday, January 21, 2020 1:03 PM
To: Priyanka Jain <[email protected]>; u-boot at lists.denx.de
Cc: Alison Wang <[email protected]>; Peng Ma <[email protected]>
Subject: [PATCH] configs: ls1021a: Reserve low memory for CMA

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. This patch will reserve low memory for CMA and fix the issue on LS1021A.

Quoted 4 lines

---

Patch applied on u-boot-fsl-qoriq/master. Awaiting upstream -priyankajain