mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Thomas Meyer <thomas@m3y3r.de>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux1394-devel@lists.sourceforge.net
Subject: Re: 2.6.25-rc2: ohci1394 problem
Date: Wed, 20 Feb 2008 19:15:30 +0100	[thread overview]
Message-ID: <47BC6E42.10409@s5r6.in-berlin.de> (raw)
In-Reply-To: <47BC6918.4000203@m3y3r.de>

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/

  reply	other threads:[~2008-02-20 18:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-20  7:47 Thomas Meyer
2008-02-20  9:48 ` Stefan Richter
2008-02-20 17:53   ` Thomas Meyer
2008-02-20 18:15     ` Stefan Richter [this message]
2008-02-20 18:18       ` Stefan Richter
2008-02-23 16:53         ` Thomas Meyer
2008-02-23 17:39           ` Stefan Richter
2008-02-25 18:23             ` Thomas Meyer
2008-02-25 18:58               ` Stefan Richter
2008-02-25 19:07                 ` Stefan Richter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47BC6E42.10409@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=thomas@m3y3r.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®