MTRR and AGP graphic cards, two regions, exclusions

Jeffrey Hundstad (jeffrey.hundstad@mankato.msus.edu)
Wed, 7 Jul 1999 14:09:34 -0500 (CDT)


Hello,

>From reading linux/Documentation/mtrr.txt and from recent posts on
linux-kernel I see that there should be several entries in the MTRR.

I've got an Intel Pentium III with a Nvidia Corporation Riva TNT AGP
graphics card. It's a Dell Dimension XPS-T550.

The MTRR file after boot reads:
reg00: base=0x00000000 ( 0MB), size= 128MB: write-back, count=1

If I've read recent posts correctly there should also be an entry to
make the video writes be combined, correct? It seems that my card has
Region 0 and Region 1, I suppose graphic and texture areas (see
below). Which should I use? Both?

Should it be (I don't believe this is correct):

echo "base=0xf5000000 size=0x1625600 type=write-combining" >! /proc/mtrr

Also recently there was a post about excluding caching from I/O and
non-used areas. How are these determined?

>From XFree86 Version 3.3.3.1 SVGA logs:
(--) SVGA: PCI: NVidia Riva TNT rev 4, Memory @ 0xf5000000, 0xfc000000
(--) SVGA: chipset: RIVATNT
(--) SVGA: videoram: 16256k

My lspci -vvvv on the the video device reads:
01:00.0 VGA compatible controller: Nvidia Corporation Riva TNT (rev 04)
Subsystem: Unknown device 1092:5802
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 5 min, 1 max, 64 set
Interrupt: pin A routed to IRQ 11
Region 0: Memory at f5000000 (32-bit, non-prefetchable)
Region 1: Memory at fc000000 (32-bit, prefetchable)
Capabilities: [60] Power Management version 1
Flags: PMEClk- AuxPwr- DSI- D1- D2- PME-
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [44] AGP version 1.0
Status: RQ=15 SBA+ 64bit- FW- Rate=21
Command: RQ=15 SBA+ AGP- 64bit- FW- Rate=21

Thanks in advance,
--
Jeffrey Hundstad
-Since Linux Civ:CTP I'm now 100% Microsoft free ;-)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/