All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configs: ls1021a: Reserve low memory for CMA
@ 2020-01-21  7:33 Alison Wang
  2020-01-22  6:40 ` Priyanka Jain
  2020-02-05  6:42 ` Priyanka Jain
  0 siblings, 2 replies; 3+ messages in thread
From: Alison Wang @ 2020-01-21  7:33 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Peng Ma <peng.ma@nxp.com>
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
Signed-off-by: Alison Wang <alison.wang@nxp.com>
---
 include/configs/ls1021atwr.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
index 46c372a..6aa7154 100644
--- a/include/configs/ls1021atwr.h
+++ b/include/configs/ls1021atwr.h
@@ -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"	\
-- 
2.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] configs: ls1021a: Reserve low memory for CMA
  2020-01-21  7:33 [PATCH] configs: ls1021a: Reserve low memory for CMA Alison Wang
@ 2020-01-22  6:40 ` Priyanka Jain
  2020-02-05  6:42 ` Priyanka Jain
  1 sibling, 0 replies; 3+ messages in thread
From: Priyanka Jain @ 2020-01-22  6:40 UTC (permalink / raw)
  To: u-boot

>-----Original Message-----
>From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Alison Wang
>Sent: Tuesday, January 21, 2020 1:03 PM
>To: Priyanka Jain <priyanka.jain@nxp.com>; u-boot at lists.denx.de
>Cc: Alison Wang <alison.wang@nxp.com>; Peng Ma <peng.ma@nxp.com>
>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.
>
>Signed-off-by: Peng Ma <peng.ma@nxp.com>
>Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
>Signed-off-by: Alison Wang <alison.wang@nxp.com>
>---
> include/configs/ls1021atwr.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
>diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index
>46c372a..6aa7154 100644
>--- a/include/configs/ls1021atwr.h
>+++ b/include/configs/ls1021atwr.h
>@@ -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"	\
>--
>2.9.5
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] configs: ls1021a: Reserve low memory for CMA
  2020-01-21  7:33 [PATCH] configs: ls1021a: Reserve low memory for CMA Alison Wang
  2020-01-22  6:40 ` Priyanka Jain
@ 2020-02-05  6:42 ` Priyanka Jain
  1 sibling, 0 replies; 3+ messages in thread
From: Priyanka Jain @ 2020-02-05  6:42 UTC (permalink / raw)
  To: u-boot

>-----Original Message-----
>From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Alison Wang
>Sent: Tuesday, January 21, 2020 1:03 PM
>To: Priyanka Jain <priyanka.jain@nxp.com>; u-boot at lists.denx.de
>Cc: Alison Wang <alison.wang@nxp.com>; Peng Ma <peng.ma@nxp.com>
>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.
>
>Signed-off-by: Peng Ma <peng.ma@nxp.com>
>Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
>Signed-off-by: Alison Wang <alison.wang@nxp.com>
>---
Patch applied on u-boot-fsl-qoriq/master. Awaiting upstream 
-priyankajain

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-05  6:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21  7:33 [PATCH] configs: ls1021a: Reserve low memory for CMA Alison Wang
2020-01-22  6:40 ` Priyanka Jain
2020-02-05  6:42 ` Priyanka Jain

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.