Skip to contentSkip to conversation

mtrr question

DISCUSSION Nick Warne 2 participants 8 messages Jun 8, 2005 – Jun 16, 2005

lore
Share & tools
lore

Nick Warne

author
#0 lore raw

Hello everybody,

Dumb question here.

I have an Athlon-thunderbird (1.2Ghz) on kernel 2.4.31 with mttr configured and a nVidia Geforce4. /proc/mtrr is empty.

Does/is setting up mtrr per the old 1999 Docs/mtrr.txt still relevant nowadays? I can't seem to find a definitive answer using Google.

TIA,

Nick

Signature · 2 lines
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
#1 lore raw
Quoted 6 lines · Nick Warne

Hello everybody,

Dumb question here.

I have an Athlon-thunderbird (1.2Ghz) on kernel 2.4.31 with mttr configured and a nVidia Geforce4. /proc/mtrr is empty.

That's odd. you should at least have write-back entries for your system memory. (Usually set up by the system BIOS)

Quoted 2 lines

Does/is setting up mtrr per the old 1999 Docs/mtrr.txt still relevant nowadays? I can't seem to find a definitive answer using Google.

Yes, though the X driver should set them up itself on startup.

Dave

author
#2 lore raw
Quoted 7 lines · Dave Jones

That's odd. you should at least have write-back entries for your system memory. (Usually set up by the system BIOS)

Quoted 2 lines

Does/is setting up mtrr per the old 1999 Docs/mtrr.txt still relevant nowadays? I can't seem to find a definitive answer using Google.

Yes, though the X driver should set them up itself on startup.

Yes, I read that, and did wonder...

Ummm. I see from boot logs that mtrr isn't detected like it is on my other (Dell) boxes.

This looks like my BIOS settings are wonky then. What would it be 'called' to enable/disable mtrr on an AGP slot?

Thanks,

Nick

Signature · 2 lines
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
#3 lore raw
Quoted 2 lines · Nick Warne

Ummm. I see from boot logs that mtrr isn't detected like it is on my other (Dell) boxes.

Hmm, that sounds like it isn't compiled in. Though that doesn't make sense why you still have a /proc/mtrr

Quoted 2 lines

This looks like my BIOS settings are wonky then. What would it be 'called' to enable/disable mtrr on an AGP slot?

Its typically not a setting, just something the BIOS does as part of its CPU initialisation. I've never encountered a BIOS that had it configurable.

Dave

author
#4 lore raw
Quoted 6 lines · Dave Jones
Quoted 2 lines · Nick Warne

Ummm. I see from boot logs that mtrr isn't detected like it is on my other (Dell) boxes.

Hmm, that sounds like it isn't compiled in. Though that doesn't make sense why you still have a /proc/mtrr

OK, ignore my previous comment (too many Linux boxes here). The one I am investigating is my main Desktop, and dmesg confirms. mtrr is detected as 'Intel' which is right as per the Docs (even though I have an AMD).

I also forgot to say I use the nVidia agp module (works better for me in Quake2 for some reason)... but searching their docs doesn't even mention mtrr.

Could it be that? If so, I am wasting you guys time.

Thanks,

Nick

Signature · 2 lines
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
#5 lore raw
Quoted 12 lines · Nick Warne
Quoted 6 lines · Dave Jones
Quoted 2 lines · Nick Warne

Ummm. I see from boot logs that mtrr isn't detected like it is on my other (Dell) boxes.

Hmm, that sounds like it isn't compiled in. Though that doesn't make sense why you still have a /proc/mtrr

OK, ignore my previous comment (too many Linux boxes here). The one I am investigating is my main Desktop, and dmesg confirms. mtrr is detected as 'Intel' which is right as per the Docs (even though I have an AMD).

Quoted 5 lines

I also forgot to say I use the nVidia agp module (works better for me in Quake2 for some reason)... but searching their docs doesn't even mention mtrr.

Could it be that? If so, I am wasting you guys time.

Maybe. I don't use non-free drivers, so I have no idea what nvidia are/aren't doing in their driver.

I'd suggest trying the nvidia forums.

Dave

author
#6 lore raw
Quoted 4 lines · Dave Jones

Maybe. I don't use non-free drivers, so I have no idea what nvidia are/aren't doing in their driver.

I'd suggest trying the nvidia forums.

No need ;-). You helped me pinpoint it... I went for it and ran manually:

bash-2.05b# echo "base=0xD0000000 size=0x4000000 type=write-combining"

Quoted 1 line

| /proc/mtrr

bash-2.05b# cat /proc/mtrr
reg00: base=0x00000000 ( 0MB), size=1024MB: write-back, count=1
reg01: base=0x40000000 (1024MB), size= 256MB: write-back, count=1
reg02: base=0xd0000000 (3328MB), size= 64MB: write-combining, count=1
reg05: base=0xc0000000 (3072MB), size= 256MB: write-combining, count=1

Thanks for help Dave... very much appreciated. I will look back and use Linux kernel module next build - I want things be nice and free too.

Nick

Signature · 2 lines
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
author
#7 lore raw
In reply to Dave Jones
Quoted 8 lines · Dave Jones
Quoted 5 lines

I also forgot to say I use the nVidia agp module (works better for me in Quake2 for some reason)... but searching their docs doesn't even mention mtrr.

Could it be that? If so, I am wasting you guys time.

Maybe. I don't use non-free drivers, so I have no idea what nvidia are/aren't doing in their driver.

This is confirmed it is a nvidia thing. Tonight I have just upgraded (updated?) from 2.4.31 to 2.6.11.12 kernel (whooo), and used agpart - I now have /proc/mtrr values as expected from boot.

Quake2 works great too :-)

Nick

Signature · 2 lines
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."