Hello all !!
I'm working on omap4 based customized board ..
It has 1GB RAM but it is reporting 448 MB ram on kernel dmesg..I don't know where the remaining memory has gone ?!
kernel command line:
[ 0.000000] Kernel command line: console=ttyO2,115200n8 mem=1G vmalloc=768M androidboot.console=ttyO2 omap_wdt.timer_margin=30 console=ttyO2,115200n8 androidboot.console=ttyO2 mem=1G root=/dev/mmcblk0p2 rw rootdelay=2 init=/linuxrc vram=64M omapfb.vram=0:32M,1:32M omapdss.def_disp=lcd consoleblank=0 opp_sb_off
kernel dmesg :
[ 0.000000] Memory: 447MB 0MB = 447MB total
[ 0.000000] Memory: 435732k/871464k available, 1225688k reserved, 326656K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xc8800000 - 0xf8000000 ( 760 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0431000 (4260 kB)
[ 0.000000] .text : 0xc0431000 - 0xc0b42000 (7236 kB)
[ 0.000000] .data : 0xc0b42000 - 0xc0bbf840 ( 503 kB)
[ 0.000000] .bss : 0xc0bbf864 - 0xc0d461e0 (1563 kB)
/ # cat /proc/meminfo
MemTotal: 439992 kB
MemFree: 424572 kB
Buffers: 1460 kB
Cached: 3488 kB
SwapCached: 0 kB
Active: 3036 kB
Inactive: 2912 kB
Active(anon): 1012 kB
Inactive(anon): 348 kB
Active(file): 2024 kB
Inactive(file): 2564 kB
Unevictable: 0 kB
Mlocked: 0 kB
HighTotal: 326656 kB
HighFree: 321556 kB
LowTotal: 113336 kB
LowFree: 103016 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 992 kB
Mapped: 896 kB
Shmem: 372 kB
Slab: 5768 kB
SReclaimable: 2488 kB
SUnreclaim: 3280 kB
KernelStack: 496 kB
PageTables: 112 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 219996 kB
Committed_AS: 2948 kB
VmallocTotal: 778240 kB
VmallocUsed: 74308 kB
VmallocChunk: 671676 kB
omap4_ion.h file has the below definitions
#define OMAP4_RAMCONSOLE_START (PLAT_PHYS_OFFSET + SZ_512M)
#define OMAP4_RAMCONSOLE_SIZE SZ_2M
#define OMAP4_ION_HEAP_SECURE_INPUT_SIZE (SZ_1M * 90)
#define OMAP4_ION_HEAP_TILER_SIZE (SZ_128M - SZ_32M)
#define OMAP4_ION_HEAP_NONSECURE_TILER_SIZE SZ_32M
#define PHYS_ADDR_SMC_SIZE (SZ_1M * 3)
#define PHYS_ADDR_SMC_MEM (0x80000000 + SZ_1G - PHYS_ADDR_SMC_SIZE)
#define PHYS_ADDR_DUCATI_SIZE (SZ_1M * 105)
#define PHYS_ADDR_DUCATI_MEM (PHYS_ADDR_SMC_MEM - PHYS_ADDR_DUCATI_SIZE - \
OMAP4_ION_HEAP_SECURE_INPUT_SIZE)
Observations
1) Even in panda4460 it is reporting 448MB of RAM
2) The Same happen in blaze4430 also.
Any help would be helpful.
Thanks & regards
SHAJIN.