All of lore.kernel.org
 help / color / mirror / Atom feed
* Accessing more than 2GB of memory with a 32 bit kernel
@ 2013-06-12 16:54 Simon Brown
  2013-06-12 17:35 ` JA Magallón
  2013-06-12 20:10 ` Rik van Riel
  0 siblings, 2 replies; 8+ messages in thread
From: Simon Brown @ 2013-06-12 16:54 UTC (permalink / raw)
  To: linux-kernel

Hello,

For the sake of an old prototype peripheral I'm using a non PAE 32 bit
x86 kernel and I'm having trouble accessing memory above 2 GB. The
system has 4GB installed and all is well with a PAE kernel. 

I'm obviously expecting to lose some memory due to memory mapped devices
but I wasn't expecting to lose 2GB. Instead I'm suspecting a BIOS bug.
The system reports:
free -m
             total       used       free     shared    buffers    
             cached
Mem:          2012        491       1521          0         40       
277

The mtrr table looked odd so I enabled sanitisation:
[    0.000000] original variable MTRRs
[    0.000000] reg 0, base: 2GB, range: 2GB, type UC
[    0.000000] reg 1, base: 0GB, range: 4GB, type WB
[    0.000000] reg 2, base: 4GB, range: 2GB, type WB
[    0.000000] total RAM covered: 4096M
[    0.000000] Found optimal setting for mtrr clean up
[    0.000000]  gran_size: 64K  chunk_size: 64K         num_reg: 2     
lose cover RAM: 0G
[    0.000000] New variable MTRRs
[    0.000000] reg 0, base: 0GB, range: 2GB, type WB
[    0.000000] reg 1, base: 4GB, range: 2GB, type WB

I don't understand the gap in the new table.

The motherboard is an Asus P5K with an Intel® P35 chipset. I'm using the
ubuntu lucid kernel (2.6.32) but the problem is also present with the
ubuntu precise kernel.
I'm at the limit of my understanding, can anyone advise how to debug
further?

Thanks,

Simon

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-14  0:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-12 16:54 Accessing more than 2GB of memory with a 32 bit kernel Simon Brown
2013-06-12 17:35 ` JA Magallón
2013-06-12 20:10 ` Rik van Riel
2013-06-12 21:33   ` JA Magallón
2013-06-13 22:38     ` Simon Brown
2013-06-13 22:32   ` Simon Brown
2013-06-14  0:14     ` Rik van Riel
2013-06-14  0:31       ` Yinghai Lu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.