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

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-05-09, 02:01 PM   #13
Qwerted
Registered User
 
Join Date: Mar 2009
Location: Russia
Posts: 19
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

zkmyth, thank you for such detailed manual. I turned out that PCI-MSI is disabled in my kernel, so I am going to compile a new one
__________________
Nvidia 8300 mGPU (Asus M3N78 PRO)
Debian lenny, 2.6.29.2
Qwerted is offline   Reply With Quote
Old 05-06-09, 08:27 AM   #14
udippel
Registered User
 
Join Date: Oct 2004
Posts: 42
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

Quote:
Originally Posted by zkmyth View Post
To alter the IRQ you need to check if you kernel has PCI MSI enabled. Your /proc/interupts would look similar to mine with some of the devices showing "PCI-MSI-edge". If you don't see any then I would doubt that your kernel has MSI enabled.
Okay, here I can see some like

2298: 51875 10219023 PCI-MSI-edge eth0
2299: 425 73807 PCI-MSI-edge ahci

So far so good, I think.

I miss the point what to do next, though. How does this help; should I / how could I move the IRQs around from here?

Uwe
udippel is offline   Reply With Quote
Old 05-06-09, 12:07 PM   #15
zkmyth
Registered User
 
Join Date: Apr 2009
Posts: 10
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

udippel

Next I would get the sound using MSI by doing the following as root (sudo, su,etc)

edit the file
/etc/modprobe.d/options

add this line somewhere in it

options snd_hda_intel enable_msi=1

then you can either reboot or

rmmod snd_hda_intel
modprobe snd_hda_intel

if your /proc/interrupts file shows that the nvidia driver is sharing an IRQ with something other than snd_hda_intel then I would reboot to allow the system to reallocate the IRQ from scratch.


NOTE: I am still seeing some boots where the nvidia driver is sharing an IRQ with the USB but I have nothing connected to that usb hub/bus so my system is stable.

I think if you do not need the firewire then disabling it in the bios should free and IRQ for the nvidia driver to use.
zkmyth is offline   Reply With Quote
Old 05-06-09, 10:57 PM   #16
udippel
Registered User
 
Join Date: Oct 2004
Posts: 42
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

No, no cigar.
All this allows to 'move' the IRQ of the 6200 plugged in the PCIE-slot to move to a safer IRQ, true.
But my original problem remains, since the IGP, 8300, seems to be hardwired to an IRQ, sharing it with a USB. The 6200 has really moved to the one emptied by 1394:
16: 77 39377 IO-APIC-fasteoi nvidia
but the IGP won't move an inch. Starting Firefox on 8300 leads to a segfault within minutes. Plugging 6200, as above, it remains stable for at least hours.

Thanks anyway,

Uwe
udippel is offline   Reply With Quote
Old 05-07-09, 02:41 AM   #17
zkmyth
Registered User
 
Join Date: Apr 2009
Posts: 10
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

Ok I have been playing around with some things today ( maybe not such a good idea )

1: MSI :
I have tried drivers 180.53, 185.18.08, 185.19 all of them do not seem to work with MSI.
If I clean boot the system MSI enabled in the /etc/modprobe.d/options file then I can login and use X for a short while. Running glxgears is a sure way for me to crash it.
If I boot the system to X without MSI. Then switch to the console and reload the nvidia module with MSI enabled it will crash while loading X. This I can reproduce.

So MSI is a nogo right now.

2: IRQ assignment.

This is the one causing stability problems. I cannot seem to control it but every so often (boot) the nvidia driver will use IRQ 20 instead of IRQ 21. This is when I can get a free IRQ for the nvidia driver and my system is very stable. I will keep playing with things until I can reproduce it.

3: IRQ workaround.

I have a crappy solution to all this IRQ garbage. In your bios disable all 3 of the USB options. yes turn off the usb controller on the motherboard.
Then install a PCI USB card. It will use IRQ16,17,18 since those IRQs are used by the pci slots.
The nvidia will have a free IRQ20 or IRQ21 and your system will be stable.

The USB pci cards are quite cheap, I paid <$20 for it.
I know this is a silly solution since the board has so many USB ports. But for $20 you can get this board stable until the nvidia driver works with MSI. Which I hope will solve this.
zkmyth is offline   Reply With Quote
Old 05-07-09, 03:33 AM   #18
udippel
Registered User
 
Join Date: Oct 2004
Posts: 42
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

Quote:
Originally Posted by zkmyth View Post
Ok I have been playing around with some things today ( maybe not such a good idea )

3: IRQ workaround.

I have a crappy solution to all this IRQ garbage. In your bios disable all 3 of the USB options. yes turn off the usb controller on the motherboard.
Then install a PCI USB card. It will use IRQ16,17,18 since those IRQs are used by the pci slots.
The nvidia will have a free IRQ20 or IRQ21 and your system will be stable.

The USB pci cards are quite cheap, I paid <$20 for it.
I know this is a silly solution since the board has so many USB ports. But for $20 you can get this board stable until the nvidia driver works with MSI. Which I hope will solve this.
I had thought of that myself. But I didn't feel like having paid extra money for the Asus PRO to end with a USB-addon card; no USB at the front, my built-in card reader non-functional.

At least, I can confirm here that it has been stable until now with the internal USBs disabled, no freezes, since I followed your advise.

Uwe
udippel is offline   Reply With Quote
Old 05-08-09, 02:31 AM   #19
Qwerted
Registered User
 
Join Date: Mar 2009
Location: Russia
Posts: 19
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

With the idle=poll kernel boot parameter my CPU temperature is much higher. Without it, IRQ sharing is used. Strange choice..
__________________
Nvidia 8300 mGPU (Asus M3N78 PRO)
Debian lenny, 2.6.29.2
Qwerted is offline   Reply With Quote
Old 05-08-09, 09:17 AM   #20
josh2112
Registered User
 
Join Date: Nov 2007
Posts: 2
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

Quote:
Originally Posted by zkmyth View Post
Here is what I have done that seems to work at the moment
Thank you, thank you, thank you! I'm experiencing the same instability problems. I have an M3N78 Pro with an AMD Phenom 9500 running Kubuntu 9.10. At first I was having random lockups when resizing windows or the Plasma panel, now it's mutated into the whole computer freezing up within 5 minutes of logging in, requiring a hard reset. Also if I unplug my USB mouse or keyboard, they're gone forever until I reboot. Plugging them back in doesn't do a thing, they aren't even registered in dmesg...

In addition, sometimes the motherboard decides not to boot at all. This can be on a warm reboot or powering up for the first time in a day, makes no difference. I get nothing on my monitor, no beeps, etc.

However, XP x64 and Vista are rock solid, leading me to believe it's a problem with my Linux configuration and not the hardware.

I am on the verge of sending this motherboard back to TigerDirect a second time and trying something completely different. At least this gives me a couple more things to mess around with first.
josh2112 is offline   Reply With Quote

Old 05-10-09, 01:15 AM   #21
zkmyth
Registered User
 
Join Date: Apr 2009
Posts: 10
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

Ok I have done some more playing around with things. ( good idea this time )

I have managed to get the nvidia driver using IRQ23 on it's own. It has survived reboots but not cmos clearing, etc ( I have not testing anything other than reboots )

For me using Ubuntu 8.04 I was getting the following message during bootup

"Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after"

check your dmesg log after booting to see if this message is there, run this

dmesg | grep ehci_hcd | less

and look for the above message

What was happening here was that USB1 driver was being loaded before the USB2 driver.
This has been reported to cause USB problems and instability as well.
Once I fixed this to load the USB2 driver 1st (ehci_hcd) it has been using IRQ20-22.
This leaves IRQ23 free for the nvidia driver.

To fix this I had to do the following

add to end of the file /etc/modprobe.d/blacklist
blacklist ehci_hcd
blacklist ohci_hcd
blacklist uhci_hcd

then add to the file /etc/modules
ehci_hcd
ohci_hcd
uhci_hcd

now reboot. Check again for the above warning message.

My /proc/interrupts now looks like ( I even have IRQ17 I could still play with )

CPU0 CPU1 CPU2 CPU3
0: 106 41 4055 116467 IO-APIC-edge timer
1: 0 2 190 3615 IO-APIC-edge i8042
4: 0 0 0 2 IO-APIC-edge
6: 0 0 0 5 IO-APIC-edge floppy
7: 1 0 0 0 IO-APIC-edge
8: 0 0 0 1 IO-APIC-edge rtc2
9: 0 0 0 0 IO-APIC-fasteoi acpi
14: 0 30 1111 15396 IO-APIC-edge pata_amd
15: 0 0 0 0 IO-APIC-edge pata_amd
16: 0 3 155 1052 IO-APIC-fasteoi aic7xxx
18: 0 0 1 67 IO-APIC-fasteoi bttv0, bt878
19: 0 0 0 3 IO-APIC-fasteoi ohci1394
20: 0 1 14 159 IO-APIC-fasteoi ohci_hcd:usb4
21: 0 17 630 12157 IO-APIC-fasteoi ehci_hcd:usb2, ohci_hcd:usb3
22: 0 0 0 27 IO-APIC-fasteoi ehci_hcd:usb1
23: 0 1 22 699 IO-APIC-fasteoi nvidia
28: 0 2 38 541 PCI-MSI-edge ahci
29: 0 46 2598 74406 PCI-MSI-edge eth0
30: 0 1 48 649 PCI-MSI-edge HDA Intel
NMI: 0 0 0 0 Non-maskable interrupts
LOC: 50936 44600 19998 7356 Local timer interrupts
RES: 21079 20387 11257 7284 Rescheduling interrupts
CAL: 187 216 195 56 Function call interrupts
TLB: 1822 1577 1724 1563 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
SPU: 0 0 0 0 Spurious interrupts
ERR: 1
MIS: 0

I had found some useful info here

https://bugs.launchpad.net/ubuntu/+s...ev/+bug/296710

I also have started to figure out some things about the Interrupt controller in this system

IRQ16,17,18,19 are used by the pci slots and the firewire controller. IRQ19 always seem to be used by the Firewire controller but I have seen it shared with other cards on the PCI bus. Never with anything using higher IRQs

IRQ20,21,22,23 are used by the onboard devices, usb,nvidia, ahci, sound, probably PCI-E cards as well
The kernel/bios looks like it assigns an IRQ to a device even if it uses MSI, then the driver switches to MSI only and frees the IRQ.

This seems to be consistent with a PCI bus only having 4 IRQs. But the PCI-E has another 4 IRQs.

I have looked through my dmesg after boot and this is the order my system is loading devices

ahci IRQ23
ehci(usb2) IRQ22
ehci(usb2) IRQ21
eth0 IRQ20

nvidia IRQ23
sound IRQ22
ohci(usb1) IRQ21
ohci(usb1) IRQ20

This shows that the kernel is assigning an IRQ to the device and later on the IRQ is freed with a switch to MSI. It also shows that the IRQs get assigned in the order 23,22,21,20 then loop through that again. No real intelligence to assigning IRQs.

So to get the nvidia driver on it's own IRQ you need to control the load order of the drivers and have it load at the right time.

Alternate fix ideas ( I have not tested these )

You might be able to control the whole load order with initramfs and get similar results, see the URL above

or

Build a kernel with everything build in (monolithic) and then only the nvidia driver loading as a module should help with the IRQ problems.
zkmyth is offline   Reply With Quote
Old 05-16-09, 03:41 PM   #22
zombie woof
Registered User
 
Join Date: May 2009
Posts: 4
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

Hello, I've been running KUBUNTU (Ubuntu 8.04) for a while now, but consider myself a novice. I've just upgraded my system to the following:

ASUS M3N78 PRO
AMD Phenom 940 Black edition
4 Gb memory

Guess what, I'm having the same issues as everyone else with the Nvidia Gforce 8300 driver. Mine just hangs when I boot up into into the operating system. If I boot into recovery mode it works just using the standard VESA driver, but the screen is really flickery.

Any help that anyone can provide would be gratefully received. I really want to stay with Linux and not go back to Microsoft.

Thanks
zombie woof is offline   Reply With Quote
Old 05-18-09, 04:00 AM   #23
Haggy
Registered User
 
Join Date: May 2009
Posts: 13
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

I just discovered my machine being stable for ~24 hours now by using 'pci=nomsi' as a kernel boot parameter. I was stressing the sata channels with bonnie++ and had xbmc running in fullscreen on X. A combination which lead reliably into sata errors soon after starting X. However that kernel parameter was not necessary for kernels up to 2.6.29.1
Haggy is offline   Reply With Quote
Old 05-18-09, 06:57 AM   #24
zombie woof
Registered User
 
Join Date: May 2009
Posts: 4
Default Re: Asus M3N78 Pro with igp geforce 8300 woes on 64 bit ubuntu

Quote:
Originally Posted by Haggy View Post
I just discovered my machine being stable for ~24 hours now by using 'pci=nomsi' as a kernel boot parameter. I was stressing the sata channels with bonnie++ and had xbmc running in fullscreen on X. A combination which lead reliably into sata errors soon after starting X. However that kernel parameter was not necessary for kernels up to 2.6.29.1
Sorry for being an absolute novice, but how do you actually impliment that parameter?
zombie woof 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
New GPU from Nvidia Announced Today, the GeForce GTX 670 News Archived News Items 0 05-10-12 01:50 PM
ASUS GeForce GTX 670 DirectCU II Top Unveiled Features 1137MHz Boost Clock (WCCFTECH) News GeForce GTX 670 Reviews 0 05-10-12 06:30 AM

All times are GMT -5. The time now is 06:39 AM.


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