Patchwork [U-Boot] board/bsc9131rdb: Update default boot environment settings

login
register
mail settings
Submitter Priyanka Jain
Date April 4, 2013, 9:10 a.m.
Message ID <1365066632-7485-1-git-send-email-Priyanka.Jain@freescale.com>
Download mbox | patch
Permalink /patch/233694/
State Accepted
Delegated to: Andy Fleming
Headers show

Comments

Priyanka Jain - April 4, 2013, 9:10 a.m.
BSC9131RDB has 1GB DDR.
Out of this, only 880MB is passed on to Linux via bootm_size.
Remaining
-16MB is reserved for PowerPC-DSP shared control area
-128MB is reserved for DSP private area.

Also 256MB, out of this 880MB is required for data communication between
PowerPC and DSP core.
For this bootargs are modified to pass parameter to create 1 hugetlb
page of 256MB via default_hugepagesz, hugepagesz and hugepages

Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>
---
 board/freescale/bsc9131rdb/README |   10 ++++++++++
 include/configs/BSC9131RDB.h      |    4 +++-
 2 files changed, 13 insertions(+), 1 deletions(-)
Andy Fleming - June 21, 2013, 8:40 p.m.
On Thu, Apr 04, 2013 at 02:40:32PM +0530, Priyanka Jain wrote:
> BSC9131RDB has 1GB DDR.
> Out of this, only 880MB is passed on to Linux via bootm_size.
> Remaining
> -16MB is reserved for PowerPC-DSP shared control area
> -128MB is reserved for DSP private area.
> 
> Also 256MB, out of this 880MB is required for data communication between
> PowerPC and DSP core.
> For this bootargs are modified to pass parameter to create 1 hugetlb
> page of 256MB via default_hugepagesz, hugepagesz and hugepages
> 
> Signed-off-by: Priyanka Jain <Priyanka.Jain@freescale.com>

Applied, thanks!

Andy

Patch

diff --git a/board/freescale/bsc9131rdb/README b/board/freescale/bsc9131rdb/README
index d7b2176..378fcf4 100644
--- a/board/freescale/bsc9131rdb/README
+++ b/board/freescale/bsc9131rdb/README
@@ -111,6 +111,16 @@  Memory map
  0xFF70_0000	0xFF7F_FFFF	PA CCSR			1M
  0xFF80_0000	0xFFFF_FFFF	Boot Page & NAND Buffer 8M
 
+DDR Memory map
+---------------
+ 0x0000_0000	0x36FF_FFFF	Memory passed onto Linux
+ 0x3700_0000	0x37FF_FFFF	PowerPC-DSP shared control area
+ 0x3800_0000	0x4FFF_FFFF	DSP Private area
+
+ Out of 880M, passed onto Linux, 1hugetlb page of 256M is reserved for
+ data communcation between PowerPC and DSP core.
+ Rest is PowerPC private area.
+
 Flashing Images
 ---------------
 To place a new u-boot image in the NAND flash and then boot
diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h
index 4ea74e4..50d925a 100644
--- a/include/configs/BSC9131RDB.h
+++ b/include/configs/BSC9131RDB.h
@@ -442,7 +442,9 @@  extern unsigned long get_sdram_size(void);
 	"fdtfile=bsc9131rdb.dtb\0"		\
 	"bdev=sda1\0"	\
 	"hwconfig=usb1:dr_mode=host,phy_type=ulpi\0"	\
-	"othbootargs=ramdisk_size=600000 \0" \
+	"bootm_size=0x37000000\0"	\
+	"othbootargs=ramdisk_size=600000 " \
+	"default_hugepagesz=256m hugepagesz=256m hugepages=1\0" \
 	"usbext2boot=setenv bootargs root=/dev/ram rw "	\
 	"console=$consoledev,$baudrate $othbootargs; "	\
 	"usb start;"			\