You are not logged in.

#1 2011-10-31 20:01:39

kaffetrakter
Member
Registered: 2008-04-16
Posts: 8

nvidia IRQ conflict with sluggish keyboard input

Edit: X now works, but still have issues with the interrupt error message and sluggish keyboard input
Long time user, first time poster here.

I have been using arch on all of my linux-machines for a few years now, and it is by far the best distro i have ever used. I have rarely had any troubles with it up until now.

I am trying to install arch on a system which is planned to be my HTPC. I got some old computers from where i work, and as far as i know they are identical. They both have 2 gigs ram and a 2.2ghz amd X2 cpu and some crappy ATI onboard videocard. After some testing on one of the computers, i found that it was not powerful enough to play 1080p videos, so I purchased a GT 520 card hoping that it would play 1080p fine with the help of VDPAU.

After installing the hardware, i started installing arch, and the installation went fine.

When booting for the first time, i notice that i get some errors regarding IRQ 19.
Output from dmesg regarding this:

[    6.276817] irq 19: nobody cared (try booting with the "irqpoll" option)
[    6.276971] Pid: 228, comm: modprobe Tainted: P            3.0-ARCH #1
[    6.276973] Call Trace:
[    6.276981]  [<c044c6e5>] ? printk+0x1d/0x1f
[    6.276986]  [<c019f149>] __report_bad_irq+0x29/0xd0
[    6.276998]  [<f81c0bd2>] ? ehci_irq+0x1f2/0x240 [ehci_hcd]
[    6.277001]  [<c019f522>] note_interrupt+0x112/0x1c0
[    6.277006]  [<c019da1e>] handle_irq_event_percpu+0x9e/0x260
[    6.277010]  [<c019dc1a>] handle_irq_event+0x3a/0x60
[    6.277013]  [<c019fcb0>] ? unmask_irq+0x30/0x30
[    6.277016]  [<c019fcfe>] handle_fasteoi_irq+0x4e/0xc0
[    6.277018]  <IRQ>  [<c0455232>] ? do_IRQ+0x42/0xc0
[    6.277023]  [<c014d45c>] ? irq_exit+0x3c/0xa0
[    6.277026]  [<c045523b>] ? do_IRQ+0x4b/0xc0
[    6.277029]  [<c0455309>] ? smp_apic_timer_interrupt+0x59/0x88
[    6.277032]  [<c0455170>] ? common_interrupt+0x30/0x38
[    6.277037]  [<c02ccf34>] ? __sw_hweight32+0x34/0x40
[    6.277040]  [<c02c9afb>] ? __bitmap_weight+0x2b/0x70
[    6.277045]  [<c018074f>] ? sys_init_module+0x11bf/0x19c0
[    6.277053]  [<c0454bdf>] ? sysenter_do_call+0x12/0x28
[    6.277055] handlers:
[    6.277155] [<f80daa00>] usb_hcd_irq
[    6.277313] [<f80daa00>] usb_hcd_irq
[    6.277469] [<f80daa00>] usb_hcd_irq
[    6.277624] Disabling IRQ #19

In addition to this, i notice that the system feels somewhat sluggish. Input from the keyboard has a slight delay, but i do not know if this is related to the problem i am having.

Anyways, as i did not think too much about this error, i continue to install xorg, xbmc and the nvidia-drivers. And this is where the trouble starts. Right after i have installed all the components i try running 'startx', but the system freezes, and i am not able to do anything, ctrl+alt+f1..f7 does nothing, ctrl+alt+backspace does nothing, so i am forced reboot by pushing the powerbutton for a few seconds.

When i reboot, i check the Xorg.log files, but they are all empty. I look some more at the wiki-page on nvidia, and try running nvidia-smi to see if can get some more info, this also causes the same freeze, and i am forced to reboot.

After this, i try booting again, thinking that it might be some conflict with the ati-drivers, so i do rmmod ati_agp before running 'startx', but the same problem occurs.

I have also tried disabling enabling a bunch of different BIOS-settings, but i keep getting the same error. I tried to disable as much on-board features as possible, but i cannot find an option to totally disable the onboard gfx-card.
I have also tried running the kernel with the irqpoll option, the PCI=biosirq, and vmalloc=256M(Not too sure about this number, as lspci -v gives 3 lines regarding memory on the device, so i pretty much just tried something).

Anyone got any idea on what might be the problem here?

Here is some info from different commands:
lspci -v

00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 10)
	Subsystem: Hewlett-Packard Company Device 3009
	Flags: bus master, 66MHz, medium devsel, latency 64
	Memory at <ignored> (64-bit, non-prefetchable)
	Kernel modules: ati-agp

00:02.0 PCI bridge: ATI Technologies Inc RS480 PCI-X Root Port (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 0000c000-0000cfff
	Memory behind bridge: fb000000-fcffffff
	Prefetchable memory behind bridge: 00000000c8000000-00000000d7ffffff
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Root Port (Slot-), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [b0] Subsystem: ATI Technologies Inc Device 5950
	Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Virtual Channel
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:05.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 0000d000-0000dfff
	Memory behind bridge: fdb00000-fdbfffff
	Prefetchable memory behind bridge: 00000000fdc00000-00000000fdcfffff
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Root Port (Slot-), MSI 00
	Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
	Capabilities: [b0] Subsystem: ATI Technologies Inc Device 5950
	Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [140] Virtual Channel
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:12.0 IDE interface: ATI Technologies Inc IXP SB400 Serial ATA Controller (prog-if 8f [Master SecP SecO PriP PriO])
	Subsystem: Hewlett-Packard Company Device 3009
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 23
	I/O ports at fc00 [size=8]
	I/O ports at f800 [size=4]
	I/O ports at f400 [size=8]
	I/O ports at f000 [size=4]
	I/O ports at ec00 [size=16]
	Memory at fe02f000 (32-bit, non-prefetchable) [size=512]
	[virtual] Expansion ROM at 80000000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 2
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: sata_sil
	Kernel modules: sata_sil

00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company Device 3009
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
	Memory at fe02e000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company Device 3009
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
	Memory at fe02d000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: ohci_hcd
	Kernel modules: ohci-hcd

00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller (prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company Device 3009
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
	Memory at fe02c000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [dc] Power Management version 2
	Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: ehci_hcd
	Kernel modules: ehci-hcd

00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 10)
	Subsystem: Hewlett-Packard Company Device 3009
	Flags: 66MHz, medium devsel
	I/O ports at 0500 [size=16]
	Memory at fe02b000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [b0] HyperTransport: MSI Mapping Enable- Fixed+
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c-piix4

00:14.1 IDE interface: ATI Technologies Inc IXP SB400 IDE Controller (prog-if 80 [Master])
	Subsystem: Hewlett-Packard Company Device 3009
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
	I/O ports at 01f0 [size=8]
	I/O ports at 03f4 [size=1]
	I/O ports at 0170 [size=8]
	I/O ports at 0374 [size=1]
	I/O ports at e400 [size=16]
	Capabilities: [70] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: pata_atiixp
	Kernel modules: atiixp, pata_atiixp

00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge
	Subsystem: Hewlett-Packard Company Device 3009
	Flags: bus master, 66MHz, medium devsel, latency 0

00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, medium devsel, latency 64
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=64
	I/O behind bridge: 0000b000-0000bfff
	Memory behind bridge: fde00000-fdefffff
	Prefetchable memory behind bridge: fdd00000-fddfffff

00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
	Flags: fast devsel
	Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
	Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
	Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
	Flags: fast devsel
	Kernel driver in use: k8temp
	Kernel modules: k8temp

01:00.0 VGA compatible controller: nVidia Corporation Device 1040 (rev a1) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device 83a0
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
	Memory at c8000000 (64-bit, prefetchable) [size=128M]
	Memory at d6000000 (64-bit, prefetchable) [size=32M]
	I/O ports at cc00 [size=128]
	[virtual] Expansion ROM at d0000000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Capabilities: [b4] Vendor Specific Information: Len=14 <?>
	Capabilities: [100] Virtual Channel
	Capabilities: [128] Power Budgeting <?>
	Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
	Kernel driver in use: nvidia
	Kernel modules: nvidiafb, nvidia, nouveau

01:00.1 Audio device: nVidia Corporation Device 0e08 (rev a1)
	Subsystem: ASUSTeK Computer Inc. Device 83a0
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at fcffc000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [60] Power Management version 3
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [78] Express Endpoint, MSI 00
	Kernel driver in use: HDA Intel
	Kernel modules: snd-hda-intel

02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev 20)
	Subsystem: Hewlett-Packard Company Device 3009
	Flags: bus master, fast devsel, latency 0, IRQ 17
	Memory at fdbf0000 (64-bit, non-prefetchable) [size=64K]
	Expansion ROM at <ignored> [disabled]
	Capabilities: [48] Power Management version 2
	Capabilities: [50] Vital Product Data
	Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
	Capabilities: [d0] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [13c] Virtual Channel
	Capabilities: [160] Device Serial Number 00-16-17-ff-fe-5e-44-6c
	Capabilities: [16c] Power Budgeting <?>
	Kernel driver in use: tg3
	Kernel modules: tg3

lsmod:

Module                  Size  Used by
ext2                   55595  1 
nvidia              10422583  0 
snd_hda_codec_hdmi     20068  1 
snd_hda_intel          19101  0 
snd_hda_codec          66954  2 snd_hda_codec_hdmi,snd_hda_intel
tg3                   118566  0 
usbhid                 31199  0 
snd_hwdep               4942  1 snd_hda_codec
snd_pcm                60079  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer              15374  1 snd_pcm
snd                    43561  6 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               4986  1 snd
snd_page_alloc          5837  2 snd_hda_intel,snd_pcm
i2c_piix4               7084  0 
evdev                   7278  0 
processor              21876  0 
pcspkr                  1375  0 
libphy                 14077  1 tg3
hid                    65215  1 usbhid
psmouse                56431  0 
button                  3646  0 
thermal                 6595  0 
serio_raw               3390  0 
ati_agp                 4545  0 
agpgart                22096  2 nvidia,ati_agp
k8temp                  2583  0 
i2c_core               16625  2 nvidia,i2c_piix4
ext4                  337790  1 
mbcache                 4249  2 ext2,ext4
jbd2                   59488  1 ext4
crc16                   1069  1 ext4
sd_mod                 26147  4 
pata_acpi               2388  0 
ohci_hcd               19226  0 
sata_sil                6360  3 
pata_atiixp             2920  0 
libata                154449  3 pata_acpi,sata_sil,pata_atiixp
ehci_hcd               34935  0 
usbcore               119612  4 usbhid,ohci_hcd,ehci_hcd
scsi_mod              111801  2 sd_mod,libata

pacman -Q |grep nvidia and pacman -Q |grep xorg:

xorg-bdftopcf 1.0.3-1
xorg-fonts-alias 1.0.2-1
xorg-fonts-encodings 1.0.4-1
xorg-fonts-misc 1.0.1-1
xorg-font-util 1.2.0-1
xorg-font-utils 7.6-2
xorg-mkfontdir 1.0.6-2
xorg-mkfontscale 1.0.9-1
xorg-server 1.11.1.901-1
xorg-server-common 1.11.1.901-1
xorg-setxkbmap 1.2.0-2
xorg-xauth 1.0.6-1
xorg-xdpyinfo 1.3.0-1
xorg-xinit 1.3.1-1
xorg-xkbcomp 1.2.3-1

nvidia 285.05.09-1
nvidia-utils 285.05.09-1
opencl-nvidia 285.05.09-1

If you need more information, just ask smile

Any help or ideas will be greatly appreciated smile

Last edited by kaffetrakter (2011-11-01 19:05:27)

Offline

#2 2011-10-31 20:14:05

laloch
Member
Registered: 2010-02-04
Posts: 186

Re: nvidia IRQ conflict with sluggish keyboard input

Hi,

could you post your /proc/interrupts, please?
If you suspect the nVidia card from being the culprit of your IRQ related problem, you can try to add

options nvidia NVreg_EnableMSI=1

to your /etc/modprobe.d/modprobe.conf

Offline

#3 2011-11-01 08:05:49

kaffetrakter
Member
Registered: 2008-04-16
Posts: 8

Re: nvidia IRQ conflict with sluggish keyboard input

Seems like it might have been a faulty card, as it now wont boot with the card plugged in. Will try your solution if the problem persists after I replace the card. Thanks smile

Offline

#4 2011-11-01 19:03:00

kaffetrakter
Member
Registered: 2008-04-16
Posts: 8

Re: nvidia IRQ conflict with sluggish keyboard input

I have now gotten a replacement card, but the IRQ problem still persists. I fixed the X-freezing issue, it turns out i messed up while configuring X.  While the card was unplugged i tried booting without the card, and i did not recieve any IRQ messages during boot, and the input no longer felt sluggish. The NVreg_EnableMSI=1 did not fix it unfortuneately. As i have now gotten X to start, i can report that the card seems to work fine, and X starts with the correct resolution and with direct rendering enabled. The only issue now is the fact that input from the keyboard feels terribly sluggish hmm

Output from /proc/interrupts:

           CPU0       
  0:         49   IO-APIC-edge      timer
  1:          2   IO-APIC-edge      i8042
  6:          3   IO-APIC-edge      floppy
  7:          0   IO-APIC-edge      parport0
  8:          0   IO-APIC-edge      rtc0
  9:          0   IO-APIC-fasteoi   acpi
 12:          4   IO-APIC-edge      i8042
 14:         60   IO-APIC-edge      pata_atiixp
 15:          0   IO-APIC-edge      pata_atiixp
 17:       2168   IO-APIC-fasteoi   ATI IXP, eth0
 18:       4399   IO-APIC-fasteoi   hda_intel, nvidia
 19:     100001   IO-APIC-fasteoi   ehci_hcd:usb1, ohci_hcd:usb2, ohci_hcd:usb3
 23:       4511   IO-APIC-fasteoi   sata_sil
NMI:         20   Non-maskable interrupts
LOC:      77587   Local timer interrupts
SPU:          0   Spurious interrupts
PMI:         20   Performance monitoring interrupts
IWI:          0   IRQ work interrupts
RES:          0   Rescheduling interrupts
CAL:          0   Function call interrupts
TLB:          0   TLB shootdowns
TRM:          0   Thermal event interrupts
THR:          0   Threshold APIC interrupts
MCE:          0   Machine check exceptions
MCP:          2   Machine check polls
ERR:          0
MIS:          0

Offline

Board footer

Powered by FluxBB