Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-31-04, 02:08 PM   #1
nk_bg
Registered User
 
Join Date: Aug 2004
Posts: 7
Default Xorg , nv driver and mtrr

After bootup, i have this in /proc/mtrr:

reg00: base=0xe0000000 (3584MB), size= 32MB: write-combining, count=1

this is the base and the amount of memory of my card (PCI TNT2 M64)

But when i look in lspci -v:

Memory at e2000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (32-bit, prefetchable) [size=32M]

What is that "second" memory with size 16 MB and base addr at e2000000 ?
Should i give it a MTRR register manually ?

The Xorg.0.log says something about MMIO registers at this base address.

Please clarify, thanks
nk_bg is offline   Reply With Quote
Old 09-02-04, 11:22 AM   #2
gilboa
Linux addict...
 
Join Date: Jan 2004
Posts: 540
Default Re: Xorg , nv driver and mtrr

Can you post the full lspci -vv?

Cheers,
Gilboa
gilboa is offline   Reply With Quote
Old 09-06-04, 02:10 PM   #3
nk_bg
Registered User
 
Join Date: Aug 2004
Posts: 7
Default Re: Xorg , nv driver and mtrr

Quote:
Originally Posted by gilboa
Can you post the full lspci -vv?

Cheers,
Gilboa
00:11.0 VGA compatible controller: nVidia Corporation NV5M64 [RIVA TNT2 Model 64/Model 64 Pro] (rev 15) (prog-if 00 [VGA])
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: 32 (1250ns min, 250ns max)
Interrupt: pin A routed to IRQ 9
Region 0: Memory at e2000000 (32-bit, non-prefetchable) [size=16M]
Region 1: Memory at e0000000 (32-bit, prefetchable) [size=32M]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [60] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
nk_bg is offline   Reply With Quote
Old 09-06-04, 07:02 PM   #4
Pinky's brain
Registered User
 
Join Date: May 2004
Posts: 15
Default Re: Xorg , nv driver and mtrr

I have the same on my TNT and it works fine (well at least with 2.4 kernels, with 2.6 release kernels the Expansion ROM line dissappears and the card gets dog slow ... and in the 2.6 snapshots the two memory regions get disabled altogether, making it impossible for X to use).

Your guess is right I think, it is a region used for I/O and it should be uncacheable.
Pinky's brain is offline   Reply With Quote
Old 09-07-04, 02:26 AM   #5
gilboa
Linux addict...
 
Join Date: Jan 2004
Posts: 540
Default Re: Xorg , nv driver and mtrr

Execute this:
$ echo 'disable=00' > /proc/mtrr
$ echo 'disable=01' > /proc/mtrr
$ echo 'disable=02' > /proc/mtrr
$ echo "base=0xe2000000 size=0x01000000 type=write-combining" >/proc/mtrr
$ echo "base=0xe0000000 size=0x02000000 type=write-combining" >/proc/mtrr


Now try running X.
gilboa is offline   Reply With Quote
Old 09-07-04, 09:41 AM   #6
nk_bg
Registered User
 
Join Date: Aug 2004
Posts: 7
Default Re: Xorg , nv driver and mtrr

Quote:
Originally Posted by gilboa
Execute this:
$ echo 'disable=00' > /proc/mtrr
$ echo 'disable=01' > /proc/mtrr
$ echo 'disable=02' > /proc/mtrr
$ echo "base=0xe2000000 size=0x01000000 type=write-combining" >/proc/mtrr
$ echo "base=0xe0000000 size=0x02000000 type=write-combining" >/proc/mtrr


Now try running X.
OK, i've stopped X, (telinit 3), executed those commands, and i got two regions with mtrr registers in /proc/mtrr
After running X, it's just one region again.
Maybe i will ask in the Xorg forum for this issue.
nk_bg is offline   Reply With Quote
Old 09-07-04, 09:49 AM   #7
gilboa
Linux addict...
 
Join Date: Jan 2004
Posts: 540
Default Re: Xorg , nv driver and mtrr

Wierd...

Check the dmesg after you try running X... maybe we'll get something useful...
gilboa is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:01 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.