Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] nvidia riva tnt + amd k2 + mtrr
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lord.hong
n00b
n00b


Joined: 17 Feb 2004
Posts: 32

PostPosted: Wed Jan 04, 2006 6:43 pm    Post subject: [SOLVED] nvidia riva tnt + amd k2 + mtrr Reply with quote

Hello everybody,

since yesterday I try to get the nvidia kernel to run but after the last error message I lost my enthusiasm.

First I found out that my grahic card is not more supported by nvidia. Then I emerged an old driver which is supporting my video card. The next problem was to solve the nvidia problem with udev and at least I run in every small pitfall with XConfig.

But now I have no idea what to do. After typing startx the nvidia logo is on the screen but X hangs. In dmesg I got following message.

Code:

NVRM: AGPGART: unable to set MTRR write-combining
NVRM: not using NVAGP, an AGPGART backend is loaded!


It is compiled but I did not found a file with the name /proc/mtrr.

In the kernel documentation I found following about mtrr:

Quote:

On Intel P6 family processors (Pentium Pro, Pentium II and later)
the Memory Type Range Registers (MTRRs) may be used to control
processor access to memory ranges. This is most useful when you have
a video (VGA) card on a PCI or AGP bus. Enabling write-combining
allows bus write transfers to be combined into a larger transfer
before bursting over the PCI/AGP bus. This can increase performance
of image write operations 2.5 times or more.

The Cyrix 6x86, 6x86MX and M II processors have Address Range
Registers (ARRs) which provide a similar functionality to MTRRs. For
these, the ARRs are used to emulate the MTRRs.

The AMD K6-2 (stepping 8 and above) and K6-3 processors have two
MTRRs. These are supported.

The Centaur C6 (WinChip) has 8 MCRs, allowing write-combining. These
are supported.


After looking in /proc/cpuinfo I found out that my processor of course is stepping 0.

What does mean? I can not use the nvidia kernel? Has anybody an idea?

Thanks in advance!

Markus


Last edited by lord.hong on Thu Jan 05, 2006 9:46 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54782
Location: 56N 3W

PostPosted: Wed Jan 04, 2006 7:00 pm    Post subject: Reply with quote

lord.hong,

Please post your entire /proc/cpuinfo
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lord.hong
n00b
n00b


Joined: 17 Feb 2004
Posts: 32

PostPosted: Wed Jan 04, 2006 8:04 pm    Post subject: Reply with quote

Here it is:

Code:

processor   : 0
vendor_id   : AuthenticAMD
cpu family   : 5
model      : 8
model name   : AMD-K6(tm) 3D processor
stepping   : 0
cpu MHz      : 350.864
cache size   : 64 KB
fdiv_bug   : no
hlt_bug      : no
f00f_bug   : no
coma_bug   : no
fpu      : yes
fpu_exception   : yes
cpuid level   : 1
wp      : yes
flags      : fpu vme de pse tsc msr mce cx8 mmx syscall 3dnow
bogomips   : 702.87
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54782
Location: 56N 3W

PostPosted: Wed Jan 04, 2006 10:06 pm    Post subject: Reply with quote

lord.hong,

You don't have the mtrr registers or your flags line would include
Code:
k6_mtrr
this means you cannot use the nvidia provided AGP chipset driver - it may not prevent you using the nvidia graphics driver.

The nVidia graphic driver is provided in two pieces, one becomes part of X, the other becomes part of the kernel.
The one that becomes a part of the kernel is capable of driving the AGP port on the motherboard. The 'is capable' is important to you. It needs mtrr support, which you cannot provide.

You must use the kernel AGP port driver for your motherboard chipset, or nore at all and tell xorg.conf not to set up the nVidia one. You do this with
Code:
Option "NvAGP" "2"  # For kernel AGP support
Option "NvAGP" "0"  # For AGP Support Off
In your Section "Device" in xorg.conf for the nvidia driver.
You can test to see if the driver runs by using Option "NvAGP" "0" and restarting X.

If it runs, you may have to rebuild your kernel to try Option "NvAGP" "2"
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lord.hong
n00b
n00b


Joined: 17 Feb 2004
Posts: 32

PostPosted: Thu Jan 05, 2006 9:36 am    Post subject: Reply with quote

Thank you NeddySeagoon,

after inserting
Code:

Option "NvAGP" "0"

into the xorg.conf it works. KDE looks a litte bit strange (rainbow colors and some parts a black) but I will find out today why.

Quote:

If it runs, you may have to rebuild your kernel to try Option "NvAGP" "2"


The last part of your answer I do not understand. I tried to follow this instruction: http://www.gentoo.org/doc/en/nvidia-guide.xml and compiled the kernel with MTTR support. Do you mean I should disable this feature?

Greeting

Markus
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54782
Location: 56N 3W

PostPosted: Thu Jan 05, 2006 7:18 pm    Post subject: Reply with quote

lord.hong,

Your hardware cannot provide MTRR support. It may be availabe via MSR support - I'm not sure on your processor.
What I had in mind was for you to rebuild your kernel with kernel AGPGART support for your North Bridge chipset.
Kernel AGPGART support needs
Code:
Option "NvAGP" "2"
in xorg.conf.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lord.hong
n00b
n00b


Joined: 17 Feb 2004
Posts: 32

PostPosted: Thu Jan 05, 2006 7:52 pm    Post subject: Reply with quote

Ah, ok, now I understand what you mean.

I have mtrr support in the kernel.

If I use
Code:

Option "NvAGP" "2"

I get the error code
Code:

NVRM: AGPGART: unable to set MTRR write-combining
.

Today I was not able to solve the problem with the fragements with kde. I gave up and use nv.
Back to top
View user's profile Send private message
Xamindar
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1155
Location: California

PostPosted: Wed Jan 25, 2006 8:51 am    Post subject: Reply with quote

Hey lord.hong,
Could you post what version of the nvidia driver you are using?
Also what video card it is (lspci).

I am trying to get a Riva TNT card working with the nvidia driver but it fails.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum