[regression] TI LT kernel only sees 638MB of RAM out of 1GB on the PandaBoard with device tree

Bug #893566 reported by Jean-Yves Lefort
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Ubuntu
Fix Released
High
John Rigby
linaro-landing-team-ti
Fix Released
Undecided
Unassigned

Bug Description

The subject is self-explanatory.

$ uname -a
Linux JLefort-pb 3.1.0-1401-linaro-lt-omap #3~ppa~oneiric-Ubuntu SMP PREEMPT Wed Oct 26 04:41:18 UTC 2011 armv7l armv7l armv7l GNU/Linux
$ cat /proc/cmdline
console=tty0 console=ttyO2,115200n8 root=UUID=2b44836f-a2ad-471d-8ede-a127935aa90c rootwait ro earlyprintk fixrtc nocompcache vram=48M omapfb.vram=0:24M mem=456M@0x80000000 mem=512M@0xA0000000
$ cat /proc/meminfo

MemTotal: 653720 kB
MemFree: 205772 kB
Buffers: 19536 kB
Cached: 308524 kB
SwapCached: 0 kB
Active: 207712 kB
Inactive: 162636 kB
Active(anon): 42972 kB
Inactive(anon): 140 kB
Active(file): 164740 kB
Inactive(file): 162496 kB
Unevictable: 0 kB
Mlocked: 0 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 653720 kB
LowFree: 205772 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 42232 kB
Mapped: 36428 kB
Shmem: 824 kB
Slab: 27320 kB
SReclaimable: 16252 kB
SUnreclaim: 11068 kB
KernelStack: 1624 kB
PageTables: 2916 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 326860 kB
Committed_AS: 467268 kB
VmallocTotal: 122880 kB
VmallocUsed: 26024 kB
VmallocChunk: 82008 kB

The SD card image was generated using the instructions found there:

  http://releases.linaro.org/11.10/ubuntu/leb-panda/

Revision history for this message
Nicolas Dechesne (ndec) wrote :

you seem to be missing CONFIG_HIGHMEM in your kernel. can you check this ?

Fathi Boudra (fboudra)
affects: linaro → linaro-ubuntu
Revision history for this message
Jean-Yves Lefort (jylefort) wrote :

This is not "my" kernel, this is the stock kernel that was installed when creating the linaro image by following the instructions on the page mentioned above. How would I check that?

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

It's the same old bug that only happens when device tree is enabled :-(

After removing device tree support, I'm able to see 1gb.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Seems this is similar as bug 707047.

But this time seems the u-boot env is correct:

setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"
setenv bootcmd "fatload mmc 0:1 0x80200000 uImage; fatload mmc 0:1 0x81600000 uInitrd; fatload mmc 0:1 0x815f0000 board.dtb; bootm 0x80200000 0x81600000 0x815f0000"
setenv bootargs "console=tty0 console=ttyO2,115200n8 root=UUID=abb086b0-d01c-412a-bf3a-07823833f3fb rootwait ro earlyprintk fixrtc nocompcache vram=48M omapfb.vram=0:24M mem=456M@0x80000000 mem=512M@0xA0000000"

summary: - Linaro 11.10 only sees 638MB of RAM out of 1GB on the PandaBoard
+ [regression] TI LT kernel only sees 638MB of RAM out of 1GB on the
+ PandaBoard with device tree
Changed in linaro-ubuntu:
assignee: nobody → John Rigby (jcrigby)
importance: Undecided → High
status: New → Confirmed
milestone: none → 11.12
tags: added: device-tree linaro-ubuntu lt-panda
Revision history for this message
Anmar Oueja (anmar) wrote :

I will ping Dave Long about this. He looked at # 707047 so he may have something to say about this one. He should be back tomorrow since it is American Thanksgiving today.

Revision history for this message
warmcat (andy-warmcat) wrote :

Dave, I notice the dts for Panda on tilt-3.1 has

/memreserve/ 0x9D000000 0x03000000; /* Frame buffer */
/memreserve/ 0xB0000000 0x10000000; /* Top 256MB is unaccessable */

Did we not remove the second line at some point?

On 3.2-rc2 the dts has totally changed and doesn't define any memory reservations I can see.

Changed in linaro-landing-team-ti:
status: New → Confirmed
Revision history for this message
David Long (dave-long) wrote :

I fixed this once before ("display" below should read "disable"):

commit 3d3828845d9c4069a5d86c4fd21b2ec8de4176f1
Author: David A. Long <email address hidden>
Date: Wed Jul 27 14:23:07 2011 -0400

    Remove display of last 1/4GB of Panda SDRAM (requires latest u-boot and l-m-c).

I do not know why this was undone. The line in omap4-panda.dts reading:

/memreserve/ 0xB0000000 0x10000000; /* Top 256MB is unaccessable */

should (once again) be deleted.

Revision history for this message
David Long (dave-long) wrote :

Another place this can get broken is the config file. It does not look like that is the problem this time, but it is worth doing:

zcat /proc/config.gz | grep HIGHMEM

to verify that no one has introduced a configuration regression. HIGHMEM must be set for the top 1/4GB of memory to be useable.

Revision history for this message
Anmar Oueja (anmar) wrote :

Dave: Are you planning on making the change in #7? if os, can you please assign the bug to your self and mark it fix committed when the fix is checked in.

Revision history for this message
warmcat (andy-warmcat) wrote :

We were simply missing Dave's patch from tilt-3.0 in tilt-3.1. I've added this and regenerated tilt-linux-linaro-3.1 from it that Ricardo uses, so "fix committed". Not added to tracking since dts no longer has these lines there.

Changed in linaro-landing-team-ti:
status: Confirmed → Fix Committed
Fathi Boudra (fboudra)
Changed in linaro-ubuntu:
status: Confirmed → Triaged
Anmar Oueja (anmar)
Changed in linaro-landing-team-ti:
milestone: none → 2011.12
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

HIGHMEM is enabled at our latest kernel package. Guess this will be fixed once John rebases our packaging with the latest tilt-linux-linaro-3.1.

Thanks for looking for the fix.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

With latest kernel (linux-image-3.1.0-1402-linaro-lt-omap 3.1.0-1402.5rsalveti1) it seems to be working again. I'm now able to see 894MB.

[ 0.000000] Memory: 456MB 463MB = 919MB total
[ 0.000000] Memory: 913824k/913824k available, 77408k reserved, 211968K highmem

Changed in linaro-ubuntu:
status: Triaged → Fix Committed
warmcat (andy-warmcat)
Changed in linaro-landing-team-ti:
status: Fix Committed → Fix Released
Changed in linaro-ubuntu:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.