This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OMAP4430 ES2.3 HS 1Gb SDRAM show only 656MB

Hello.

I use custom board based on OMAP4430 ES2.3 HS device with 3.0.21 kernel from p-android-omap-3.0

This is my part of log

<5>Linux version 3.0.21+ (nook@localhost) (gcc version 4.4.1 (Sourcery G++ Lite 2010q1-202) ) #186 SMP PREEMPT Sat Mar 31 13:43:58 EEST 2012
<4>CPU: ARMv7 Processor [411fc093] revision 3 (ARMv7), cr=10c5387d
<4>CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
<4>Machine: acclaim
<4>Ignoring tag cmdline (using the default kernel command line)
<4>Setup machine tags finished
<4>Mashine NAME=acclaim
<6>Reserving 33554432 bytes SDRAM for VRAM
<4>Memory policy: ECC disabled, Data cache writealloc
<6>***********************
<6>OMAP4430 ES2.3 type(HS)
<6>id-code (6b95c02f)
<6>Die-id (04C80006-00000001-09110B52-17020017)
<6>Prod-id (000DB95C-000600CC)
<6>***********************
<6>SRAM: Mapped pa 0x4030d000 to va 0xfe40d000 size: 0x1000
<6>SMC: Allocated workspace of 0x300000 Bytes at (0xbfd00000)
<7>On node 0 totalpages: 167936
<7>free_area_init_node: node 0, pgdat c0732cc0, node_mem_map c10a9000
<7> Normal zone: 1536 pages used for memmap
<7> Normal zone: 0 pages reserved
<7> Normal zone: 166400 pages, LIFO batch:31
<4> HighMem zone: 512 pages exceeds realsize 0
<6>Warm Reset WA: succeeded to reconfigure the ABE DPLL
<6>PERCPU: Embedded 7 pages/cpu @c18b1000 s6496 r8192 d13984 u32768
<7>pcpu-alloc: s6496 r8192 d13984 u32768 alloc=8*4096
<7>pcpu-alloc: [0] 0 [0] 1
<4>Built 1 zonelists in Zone order, mobility grouping on. Total pages: 166400
<5>Kernel command line: mem=1G androidboot.console=ttyO0 console=ttyO0,115200n8 root=/dev/mmcblk1p2 rootwait vram=32M,82000000 omapfb.vram=0:16M@82000000 def_disp=lcd2
<6>PID hash table entries: 4096 (order: 2, 16384 bytes)
<6>Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
<6>Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
<6>Memory: 32MB 448MB 176MB = 656MB total
<5>Memory: 653776k/653776k available, 394800k reserved, 0K highmem
<5>Virtual kernel memory layout:
<5> vector : 0xffff0000 - 0xffff1000 ( 4 kB)
<5> fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
<5> DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
<5> vmalloc : 0xf0800000 - 0xf8000000 ( 120 MB)
<5> lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
<5> pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
<5> modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
<5> .init : 0xc0008000 - 0xc0047000 ( 252 kB)
<5> .text : 0xc0047000 - 0xc06e4000 (6772 kB)
<5> .data : 0xc06e4000 - 0xc07337c0 ( 318 kB)
<5> .bss : 0xc07337e4 - 0xc0885f98 (1354 kB)
<6>SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
<6>Preemptible hierarchical RCU implementation.
<6>NR_IRQS:410
<4>omap_hwmod: dpll_mpu_m2_ck: missing clockdomain for dpll_mpu_m2_ck.
<6>OMAP clockevent source: GPTIMER1 at 32768 Hz
<6>sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
<6>Console: colour dummy device 80x30
<6>Calibrating delay loop... 2007.19 BogoMIPS (lpj=7839744)
<6>pid_max: default: 32768 minimum: 301
<6>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys debug
<6>Initializing cgroup subsys cpuacct
<6>Initializing cgroup subsys freezer
<6>CPU: Testing write buffer coherency: ok
<6>L310 cache controller enabled
<6>l2x0: 16 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x5e470000, Cache size: 1048576 B
<4>CPU1: Booted secondary processor
<6>Brought up 2 CPUs

Is it correct memory map for 1Gb device?
 

 

  • Kuzemko Aleksander said:
    <5>Kernel command line: mem=1G androidboot.console=ttyO0 console=ttyO0,115200n8 root=/dev/mmcblk1p2 rootwait vram=32M,82000000 omapfb.vram=0:16M@82000000 def_disp=lcd2
    <6>PID hash table entries: 4096 (order: 2, 16384 bytes)
    <6>Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    <6>Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    <6>Memory: 32MB 448MB 176MB = 656MB total
    <5>Memory: 653776k/653776k available, 394800k reserved, 0K highmem

    as you can see here, there is 394MB 'reserved' memory. this memory is a carveout of physically contiguous DDR which is reserved for further allocation of buffers. it's 'removed' from the pool of memory using API memblock_remove() usually called early during the boot (in the board file)