public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Setting up MTRRs for 4096MB RAM
@ 2001-08-09 12:18 Corin Hartland-Swann
  2001-08-09 17:53 ` H. Peter Anvin
  0 siblings, 1 reply; 4+ messages in thread
From: Corin Hartland-Swann @ 2001-08-09 12:18 UTC (permalink / raw)
  To: linux-kernel


Hi there,

I am trying to set up a machine using the Tyan Tiger LE motherboard, and
ServerWorks III LE chipset to use 4096MB RAM. I'm using kernel 2.4.7 with
CONFIG_HIGHMEM4G.

I know that I have to set the MTRR's up to extend the cacheable memory
area, but can't work out how to set it up.

I tried the following:

  # echo "disable=1" >| /proc/mtrr
  # echo "disable=0" >| /proc/mtrr
  # echo "base=0x0 size=0xFFFFFFFF type=write-back" >| /proc/mtrr
  mtrr: size and base must be multiples of 4 kiB
  mtrr: size: 0xffffffff  base: 0x0

Which doesn't make any sense. So I tried for 3G RAM:

  # echo "base=0x0 size=0xC0000000 type=write-back" >| /proc/mtrr
  mtrr: base(0x0000) is not aligned on a size(0xc0000000) boundary

And then for 2G RAM:

  # echo "base=0x0 size=0x80000000 type=write-back" >| /proc/mtrr

Which works perfectly. What gives?

Also: the instructions in Documentation/mtrr.txt says to use ">|" instead
of ">" (under bash, at least) - what does this accomplish?

Thanks,

Corin

/------------------------+-------------------------------------\
| Corin Hartland-Swann   |    Tel: +44 (0) 20 7491 2000        |
| Commerce Internet Ltd  |    Fax: +44 (0) 20 7491 2010        |
| 22 Cavendish Buildings | Mobile: +44 (0) 79 5854 0027        | 
| Gilbert Street         |                                     |
| Mayfair                |    Web: http://www.commerce.uk.net/ |
| London W1K 5HJ         | E-Mail: cdhs@commerce.uk.net        |
\------------------------+-------------------------------------/


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

end of thread, other threads:[~2001-08-09 18:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-09 12:18 Setting up MTRRs for 4096MB RAM Corin Hartland-Swann
2001-08-09 17:53 ` H. Peter Anvin
2001-08-09 18:06   ` Tim Walberg
2001-08-09 18:50     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox