[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47BC6E42.10409@s5r6.in-berlin.de>
Date: Wed, 20 Feb 2008 19:15:30 +0100
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Thomas Meyer <thomas@...3r.de>
CC: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux1394-devel@...ts.sourceforge.net
Subject: Re: 2.6.25-rc2: ohci1394 problem
Thomas Meyer wrote:
> Stefan Richter schrieb:
>> Thomas Meyer wrote at LKML:
>>> With 2.6.25-rc2 my kernel log consists mainly of:
>>>
>>> "ohci1394: fw-host0: Unhandled interrupt(s) 0xfc7cfe0c
There are junk interrupt events sent to ohci1394's IRQ handler.
...
>> Do you have any hardware attached to the FireWire bus at that time?
>>
> No. I have no firewire equipment at all.
>> What does /proc/interrupts contain?
>>
> $ cat /proc/interrupts
> CPU0 CPU1
> 0: 38097 0 IO-APIC-edge timer
> 9: 5600 0 IO-APIC-fasteoi acpi
> 14: 85 0 IO-APIC-edge ata_piix
> 15: 0 0 IO-APIC-edge ata_piix
> 16: 40 0 IO-APIC-fasteoi uhci_hcd:usb5
> 17: 724 0 IO-APIC-fasteoi wifi0
> 18: 42 0 IO-APIC-fasteoi uhci_hcd:usb4
> 19: 13870 0 IO-APIC-fasteoi ata_piix, ohci1394,
> uhci_hcd:usb3
> 22: 1797 0 IO-APIC-fasteoi HDA Intel
> 23: 2720 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb2
> 219: 1 0 PCI-MSI-edge eth0
OK, ohci1394 shares an interrupt with IDE and USB. (Normally not a
problem.)
...
> Kernel version is:
> $ git describe
> v2.6.25-rc2-342-g5d9c4a7
>
> $ lsmod
> Module Size Used by
...
> firewire_ohci 17280 0
> firewire_core 38432 1 firewire_ohci
...
> ohci1394 29232 0
...
> ieee1394 81672 1 ohci1394
It is not an issue to build firewire-ohci and ohci1394, but you should
only load one of them. Since recent distributions insert modules
automatically according to found hardware on one hand and module aliases
on the other hand, you can achieve this by the line
blacklist firewire-ohci
or blacklist ohci1394 in /etc/modprobe.conf. Note, many distributions
generate modprobe.conf from files in /etc/modprobe.d/, hence you should
put that line into a file in that directory, then tell the system to
regenerate modprobe.conf. (E.g. Gentoo uses the command
"update-modules" to regenerate modprobe.conf.)
That said, I assumed so far that inserting both drivers doesn't pose a
problem. The driver core should simply bind one of these two drivers to
the actual hardware, shouldn't it? The only problem would be that it is
somewhat unclear which of the two drivers will be used. (In your case,
ohci1394 won the interrupt. You can also check the symlinks in sysfs to
find out which driver is bound to the respective PCI device.)
One thing you could quickly test is what happens if you make manually
sure that (a) only ohci1394 is inserted, (b) only firewire-ohci is inserted.
Anybody please correct me if my assumption about two PCI drivers for the
same class of PCI devices is wrong.
...
> config is:
...
> #
> # IEEE 1394 (FireWire) support
> #
> CONFIG_FIREWIRE=m
> CONFIG_FIREWIRE_OHCI=m
> CONFIG_FIREWIRE_SBP2=m
> CONFIG_IEEE1394=m
...
> CONFIG_IEEE1394_OHCI1394=m
...
I thought about preventing this sort of configuration --- but in the
end, it is an entirely valid configuration.
So, could somebody clue us in where the false interrupts might come from?
--
Stefan Richter
-=====-==--- --=- =-=--
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists