linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: Michel Bouissou <michel@bouissou.net>
Cc: "Protasevich, Natalie" <Natalie.Protasevich@UNISYS.com>,
	<linux-kernel@vger.kernel.org>
Subject: Re: Kernel 2.6.12 + IO-APIC + uhci_hcd = Trouble
Date: Tue, 12 Jul 2005 17:37:53 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.44L0.0507121730590.4764-100000@iolanthe.rowland.org> (raw)
In-Reply-To: <200507122240.53390@totor.bouissou.net>

On Tue, 12 Jul 2005, Michel Bouissou wrote:

> I've tested as you suggest :
> 
> - Disabled USB 2.0 in BIOS
> 
> - Renamed ehci_hcd.ko so that modprobe can't find it
> 
> - Booted the test-patched kernel with same options as previously, MOUSE 
> UNPLUGGED.
> 
> - After boot "cat /proc/interrupts" shows "0" count for IRQ 21
> 
> - Nothing special isn't logged anymore in dmesg or /var/log/messages.
> 
> - Plugging / unplugging the mouse or other devices doesn't cause anything 
> visible to happen. Nothing gets logged, IRQ 21 counter stays at 0. I could as 
> well not have done it ;-)
> 
> > Without ehci_hcd loaded, the EHCI controller should not generate any
> > interrupt requests.  If your problem then goes away, and plugging or
> > unplugging the mouse doesn't cause anything unusual to happen, that will
> > be a pretty clear indication.
> 
> Well, so that's a pretty clear indication, but surely clearer to you than to 
> me ;-)
> 
> So, what's up, doc ? ;-))

Then it's definite.  The EHCI controller is issuing interrupt requests on
IRQ 21, but its driver is registered on a different IRQ.  Hence the
interrupts aren't getting handled correctly.

So probably the usb_handoff parameter won't be needed.  And if you leave 
USB 2.0 disabled in the BIOS then there's no need to hide ehci_hcd.ko, as 
it won't get loaded anyway.  You should be able to remove the test patch 
and resume normal operations.


On Tue, 12 Jul 2005, Protasevich, Natalie wrote:

> I suspect that some device is actually on the IRQ 21, and that's how its 
> IO-APIC line is set up. Later on, its driver tries to assign different
> IRQ, due to some discrepancy, and the handler gets registered on say IRQ
> 11, and to a wrong pin, so the actual interrupts go unattended. If this
> what's happening, the trace will hopefully tell the story. I suggest to
> boot with "apic=debug" and also perhaps with "pci=routeirq" and collect
> the trace. You can attach the part up to the point when it reports usb
> devices set up.

At this point I can leave it up to the two of you.  Now that we know which
is the offending device, it should be easy to find out why the IRQ
assignments go wrong.  That certainly needs to be fixed, even though
Michel's problem appears to be solved.

Alan Stern


  reply	other threads:[~2005-07-12 21:42 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-10 18:50 Kernel 2.6.12 + IO-APIC + uhci_hcd = Trouble Protasevich, Natalie
2005-07-11  9:06 ` Michel Bouissou
2005-07-11 18:36   ` Alan Stern
2005-07-11 19:33     ` [SOLVED ??] " Michel Bouissou
2005-07-11 19:43       ` Alan Stern
2005-07-11 20:02         ` Michel Bouissou
2005-07-11 20:16           ` Alan Stern
2005-07-11 20:46             ` Michel Bouissou
2005-07-11 20:58               ` Michel Bouissou
2005-07-11 21:21                 ` [NOT solved] " Michel Bouissou
2005-07-11 21:21               ` [SOLVED ??] " Alan Stern
2005-07-11 21:34                 ` Michel Bouissou
2005-07-12  1:54                   ` Alan Stern
2005-07-12  7:54                     ` Michel Bouissou
2005-07-12 14:12                       ` Alan Stern
2005-07-12 17:03                         ` Michel Bouissou
2005-07-12 18:15                           ` Alan Stern
2005-07-12 18:16                           ` Michel Bouissou
2005-07-12 18:57                             ` Alan Stern
2005-07-12 20:40                               ` Michel Bouissou
2005-07-12 21:37                                 ` Alan Stern [this message]
2005-07-12 22:01                                   ` Michel Bouissou
  -- strict thread matches above, loose matches on Subject: below --
2005-07-12 23:16 Protasevich, Natalie
2005-07-13  6:46 ` Michel Bouissou
2005-07-12 21:02 Protasevich, Natalie
2005-07-10  8:11 Michel Bouissou

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=Pine.LNX.4.44L0.0507121730590.4764-100000@iolanthe.rowland.org \
    --to=stern@rowland.harvard.edu \
    --cc=Natalie.Protasevich@UNISYS.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michel@bouissou.net \
    /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;
as well as URLs for NNTP newsgroup(s).