Hi,
We have two Hikey960 boards, one we have ordered some 4 months back(OLD) and other one is recently(NEW).
On new board we are seeing mismatch in memory info.
During boot up it shows “8704 MB”, but in ‘/proc/meminfo’ its showing “4037068 kB”.
[ 0.000000] Memory: 3837020K/4176636K available (13692K kernel code, 1354K rwdata, 4012K rodata, 1152K init, 1029K bs s, 208544K reserved, 131072K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008de0000 ( 13696 KB)
[ 0.000000] .rodata : 0xffffff8008de0000 - 0xffffff80091d0000 ( 4032 KB)
[ 0.000000] .init : 0xffffff80091d0000 - 0xffffff80092f0000 ( 1152 KB)
[ 0.000000] .data : 0xffffff80092f0000 - 0xffffff8009442a00 ( 1355 KB)
[ 0.000000] .bss : 0xffffff8009442a00 - 0xffffff8009543fe8 ( 1030 KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf08800000 ( 136 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc220000000 ( 8704 MB)
cat /proc/meminfo
MemTotal: 4037068 kB
MemFree: 2705532 kB
MemAvailable: 3349140 kB
Same images are used on old board also, below is the logs :
[ 0.000000] Memory: 2821228K/3128060K available (13692K kernel code, 1354K rwdata, 4008K rodata, 1152K init, 1029K bss, 175760K reserved, 131072K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000 ( 250 GB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008de0000 ( 13696 KB)
[ 0.000000] .rodata : 0xffffff8008de0000 - 0xffffff80091d0000 ( 4032 KB)
[ 0.000000] .init : 0xffffff80091d0000 - 0xffffff80092f0000 ( 1152 KB)
[ 0.000000] .data : 0xffffff80092f0000 - 0xffffff8009442a00 ( 1355 KB)
[ 0.000000] .bss : 0xffffff8009442a00 - 0xffffff8009544068 ( 1030 KB)
[ 0.000000] fixed : 0xffffffbefe7fd000 - 0xffffffbefec00000 ( 4108 KB)
[ 0.000000] PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000 ( 16 MB)
[ 0.000000] vmemmap : 0xffffffbf00000000 - 0xffffffc000000000 ( 4 GB maximum)
[ 0.000000] 0xffffffbf00000000 - 0xffffffbf03000000 ( 48 MB actual)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc0c0000000 ( 3072 MB)
cat /proc/meminfo
MemTotal: 3020780 kB
MemFree: 1974320 kB
MemAvailable: 2480876 kB
We are facing some stability issues on new boards while using pcie devices connected to Hikey960, so we are suspecting this might be the issue.
Is there any change in RAM memory size on new Hikey960 boards or some issue in kernel code? please suggest.
Thanks