unresolvable IRQ conflicts between expansion cards

Bug #946230 reported by ricsill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

OS: Ubuntu Studio 10.04 64 Bit
Kernel: 2.6.32-38-preempt

The system is an intel i5 2500k on a z68 chipset board. The MB is gigabyte GA-Z68AP-D3 revision one board with the latest BIOS version F7.

The problem appears to be that the PCIe x16 MSI 7900GT (nvidia) graphics card always shares the same IRQ as any PCI cards that are installed. I have tried using different boot parameters such as noacpi and noapic. This however just results in the two card sharing a different IRQ number. For example, with no boot parameters the cards share IRQ 16. Booting with noacpi and noapic just results in both cards to changing to IRQ 12. The end result is that the graphics card operates fine but the second card (in this case an Maudio Delta 66 Rev B) is unable to be detected by the relevant audio drivers etc. Removing the Graphics card results in the sound card then being recognised with no further config required.

From research on the net it appears that the Z68 boards use a PCIe-to-PCI bridge rather than a traditional PCI controller which may be the cause of the issue.

Im not sure if this is strictly a bug but it seems to me that the kernel is seeing only one IRQ for the whole PCIe/PCI array. Im not sure if this is just specific to this MB etc and I have run out of knowledge and experience to test it any further without guidance. Im filing this bug in the hope that there will be a work around or at least that future releases might not suffer the same.

I should note that an up to date install of Ubuntu 11.10 also suffers from the same issue with the two cards sharing the IRQ.

This is the first bug I have filed so please forgive me if I am not giving enough info. I will be happy to post any further information you may require.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-38-preempt 2.6.32-38.83
Regression: No
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-38.83-preempt 2.6.32.52+drm33.21
Uname: Linux 2.6.32-38-preempt x86_64
NonfreeKernelModules: nvidia
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/dsp', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D2', '/dev/snd/hwC0D3', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D1c', '/dev/snd/pcmC0D1p', '/dev/snd/pcmC0D2c', '/dev/snd/seq', '/dev/snd/timer', '/dev/sequencer2', '/dev/sequencer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xfbff8000 irq 5'
   Mixer name : 'Intel ID 2805'
   Components : 'HDA:10ec0889,1458a002,00100004 HDA:80862805,80860101,00100000'
   Controls : 43
   Simple ctrls : 24
Date: Sun Mar 4 10:11:47 2012
HibernationDevice: RESUME=UUID=7243295e-71c0-4844-bf2b-695773290c02
InstallationMedia: Ubuntu-Studio 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. Z68AP-D3
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-38-preempt root=UUID=aad2ca02-c34a-4660-8285-32c6be50b815 ro quiet splash noapic noacpi
ProcEnviron:
 LANG=en_GB.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.7
RfKill:

SourcePackage: linux
dmi.bios.date: 02/21/2012
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F7
dmi.board.name: Z68AP-D3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF7:bd02/21/2012:svnGigabyteTechnologyCo.,Ltd.:pnZ68AP-D3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnZ68AP-D3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: Z68AP-D3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
ricsill (ricsill) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.3 kernel[1] (Not a kernel in the daily directory). Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the other tags). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed by the mainline kernel, please add the following tag 'kernel-fixed-upstream-KERNEL-VERSION'. For example, if kernel version 3.3-rc6 fixed the issue, the tag would be: 'kernel-fixed-upstream-v3.3-rc6'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[1] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.3-rc6-precise/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
ricsill (ricsill) wrote :

Thanks joseph - I will give that a test and see what happens (may take me a while as Im rather green to such things).

Cheers

Revision history for this message
ricsill (ricsill) wrote :

Ok so I have the kernel you suggested and the results are interesting.

aplay -l:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC889 Analog [ALC889 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC889 Digital [ALC889 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

The third card is not my Maudio - but it is an addition to the previous kernel where only the first two were found.

More interesting is the output of lspci -vvv:
01:00.0 VGA compatible controller: nVidia Corporation G71 [GeForce 7900 GT/GTO] (rev a1)
 Subsystem: nVidia Corporation Device 042b
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0, Cache Line Size: 4 bytes
 Interrupt: pin A routed to IRQ 12
 Region 0: Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
 Region 1: Memory at e0000000 (64-bit, prefetchable) [size=256M]
 Region 3: Memory at f9000000 (64-bit, non-prefetchable) [size=16M]
 Region 5: I/O ports at ef00 [size=128]
 [virtual] Expansion ROM at fa000000 [disabled] [size=128K]
 Capabilities: <access denied>
 Kernel modules: nouveau, nvidiafb
.......
06:01.0 Multimedia audio controller: VIA Technologies Inc. ICE1712 [Envy24] PCI Multi-Channel I/O Controller (rev 02)
 Subsystem: VIA Technologies Inc. Device d632
 Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Interrupt: pin A routed to IRQ 16
 Region 0: I/O ports at cfc0 [size=32]
 Region 1: I/O ports at cff0 [size=16]
 Region 2: I/O ports at cfe0 [size=16]
 Region 3: I/O ports at cf80 [size=64]
 Capabilities: <access denied>
 Kernel modules: snd-ice1712

So the two cards are no longer on the same IRQ - But the Maudio still isnt being recognised.

I tried sudo modprobe snd_ice1712 but to no avail.

Not sure whether to mark this as fixed by upstream kernel (as the IRQ is different) or leave as the symptom is still here?

Thanks

Revision history for this message
ricsill (ricsill) wrote :

Additional info - forgot to include this.

When installing the new kernel image I got the following (it mentioned missing firmware so I saved it):

sudo dpkg -i linux-image-3.3.0-030300rc6-generic_3.3.0-030300rc6.201203032235_amd64.deb
Selecting previously deselected package linux-image-3.3.0-030300rc6-generic.
(Reading database ... 210577 files and directories currently installed.)
Unpacking linux-image-3.3.0-030300rc6-generic (from linux-image-3.3.0-030300rc6-generic_3.3.0-030300rc6.201203032235_amd64.deb) ...
Done.
Setting up linux-image-3.3.0-030300rc6-generic (3.3.0-030300rc6.201203032235) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-3.3.0-030300rc6-generic
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
Running postinst hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.3.0-030300rc6-generic
Found initrd image: /boot/initrd.img-3.3.0-030300rc6-generic
Found linux image: /boot/vmlinuz-2.6.32-38-preempt
Found initrd image: /boot/initrd.img-2.6.32-38-preempt
Found linux image: /boot/vmlinuz-2.6.32-21-preempt
Found initrd image: /boot/initrd.img-2.6.32-21-preempt
Found memtest86+ image: /boot/memtest86+.bin
Found Ubuntu 11.10 (11.10) on /dev/sda1
done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.3.0-030300rc6-generic /boot/vmlinuz-3.3.0-030300rc6-generic
run-parts: executing /etc/kernel/postinst.d/nvidia-common 3.3.0-030300rc6-generic /boot/vmlinuz-3.3.0-030300rc6-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.3.0-030300rc6-generic /boot/vmlinuz-3.3.0-030300rc6-generic

Revision history for this message
ricsill (ricsill) wrote :
Download full text (4.4 KiB)

Ok.

So I have managed to enable MSI on the older kernel (Kernel: 2.6.32-38-preempt) by installing the 295.20 NVIDIA driver manually. I tried installing it on the upstream kernel but I couldnt as the system would just hang every time I tried to stop the gdm service.

I now get the following output from sudo lspci -vvv:

01:00.0 VGA compatible controller: nVidia Corporation G71 [GeForce 7900 GT/GTO] (rev a1)
Subsystem: nVidia Corporation Device 042b
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 30
Region 0: Memory at f8000000 (32-bit, non-prefetchable) [size=16M]
Region 1: Memory at d0000000 (64-bit, prefetchable) [size=256M]
Region 3: Memory at f9000000 (64-bit, non-prefetchable) [size=16M]
Region 5: I/O ports at ef00 [size=128]
[virtual] Expansion ROM at fa000000 [disabled] [size=128K]
Capabilities: [60] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+
Address: 00000000fee0400c Data: 41a1
Capabilities: [78] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <1us, L1 <4us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <1us, L1 <4us
ClockPM- Suprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
Capabilities: [100] Virtual Channel <?>
Capabilities: [128] Power Budgeting <?>
Kernel driver in use: nvidia
Kernel modules: nvidia, nvidiafb, nouveau

06:01.0 Multimedia audio controller: VIA Technologies Inc. ICE1712 [Envy24] PCI Multi-Channel I/O Controller (rev 02)
Subsystem: VIA Technologies Inc. Device d632
Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 16
Region 0: I/O ports at cfc0 [size=32]
Region 1: I/O ports at cff0 [size=16]
Region 2: I/O ports at cfe0 [size=16]
Region 3: I/O ports at cf80 [size=64]
Capabilities: [80] 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-
Kernel modules: snd-ice1712

So the IRQ's definitely not shared. I have a few questions if someone would be happy to advise:

1. Should I kill off this bug report and start a new one? The IRQs are no longer shared but the symptom of my problems persists.

2. What should I start any new bug...

Read more...

Revision history for this message
ricsill (ricsill) wrote :

Whether this helps at all I dont know, but here goes.

Following some other advise I tried removing the snd-ice1712 module then reinstalling it.

Dmesg output following this shows:

[ 7838.014939] ICE1712 0000:06:00.0: PCI INT A -> GSI 19 (level, low) ->
IRQ 19
[ 7838.014967] ice1712: Using board model M Audio Delta 66
[ 7838.014971] invalid EEPROM (size = 145)
[ 7838.014987] ICE1712 0000:06:00.0: PCI INT A disabled
[ 7838.014996] ICE1712: probe of 0000:06:00.0 failed with error -5

Dont know quite what the implications of this are. ANyone have any ideas?

cheers

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.