linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problems with USB setup with Linux 2.6.16
@ 2006-04-03  0:48 Joshua Kwan
  2006-04-03  2:09 ` [linux-usb-devel] " Alan Stern
  0 siblings, 1 reply; 5+ messages in thread
From: Joshua Kwan @ 2006-04-03  0:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-usb-devel

Hello,

I've got some problems getting my USB stuff to work in 2.6.16.

I see normal USB initialization as the machine comes up, then suddenly:

ehci_hcd 0000:00:10.4: EHCI Host Controller
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 5
ehci_hcd 0000:00:10.4: irq 17, io mem 0xf9e00000
ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
usb 2-1: USB disconnect, address 2
hub 5-0:1.0: 8 ports detected
usb 2-2: USB disconnect, address 3
usb 3-1: USB disconnect, address 2
Initializing USB Mass Storage driver...
GSI 21 sharing vector 0xD1 and IRQ 21
usb 1-1: USB disconnect, address 2
drivers/usb/class/usblp.c: usblp0: removed

Everything that just got probed gets 'disconnected', udev's startup
script times out, and cupsd will hang forever looking for my printer.

Interestingly, it worked perfectly one time, and I saw a 'EHCI BIOS handoff
failed' message way at the top of dmesg.

What's going on? I assume this is EHCI's fault. I'm on a VIA K8T800 chipset,
Asus A8V Deluxe motherboard.

Please CC me on replies as I'm not subscribed to either list.

Thanks!

-- 
Joshua Kwan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-usb-devel] Problems with USB setup with Linux 2.6.16
  2006-04-03  0:48 Problems with USB setup with Linux 2.6.16 Joshua Kwan
@ 2006-04-03  2:09 ` Alan Stern
  2006-04-03  3:36   ` Joshua Kwan
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Stern @ 2006-04-03  2:09 UTC (permalink / raw)
  To: Joshua Kwan; +Cc: linux-kernel, linux-usb-devel

On Sun, 2 Apr 2006, Joshua Kwan wrote:

> Hello,
> 
> I've got some problems getting my USB stuff to work in 2.6.16.
> 
> I see normal USB initialization as the machine comes up, then suddenly:
> 
> ehci_hcd 0000:00:10.4: EHCI Host Controller
> ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 5
> ehci_hcd 0000:00:10.4: irq 17, io mem 0xf9e00000
> ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
> usb usb5: configuration #1 chosen from 1 choice
> hub 5-0:1.0: USB hub found
> usb 2-1: USB disconnect, address 2
> hub 5-0:1.0: 8 ports detected
> usb 2-2: USB disconnect, address 3
> usb 3-1: USB disconnect, address 2
> Initializing USB Mass Storage driver...
> GSI 21 sharing vector 0xD1 and IRQ 21
> usb 1-1: USB disconnect, address 2
> drivers/usb/class/usblp.c: usblp0: removed
> 
> Everything that just got probed gets 'disconnected', udev's startup
> script times out, and cupsd will hang forever looking for my printer.
> 
> Interestingly, it worked perfectly one time, and I saw a 'EHCI BIOS handoff
> failed' message way at the top of dmesg.
> 
> What's going on? I assume this is EHCI's fault. I'm on a VIA K8T800 chipset,
> Asus A8V Deluxe motherboard.

If you want to point a finger, I suppose you could say it's EHCI's fault.  
However, this is how things are _supposed_ to work (all except for the 
"cupsd will hang forever part" -- it's not clear whether that's a kernel 
issue or an application program issue).

The idea is that each USB connector on your motherboard is wired to two
USB controller ports: one on a UHCI controller (for low- and full-speed
devices) and one on the EHCI controller (for high-speed devices).  The
connections are controlled by switches inside the EHCI controller.

Initially the switches are set to hook each connector up to a UHCI
controller, so your devices enumerate on the various UHCI buses.  Then
when ehci-hcd gets loaded it takes over, and the switches are changed to
hook each device up to the EHCI controller.  As far as the UHCI
controllers are concerned this looks like the devices were unplugged.  
Hence all those "disconnect" messages.

If you were to continue looking farther down in the log, you would find
that ehci-hcd sees all those devices.  Those that can run at high speed
continue using the EHCI controller.  For those that can't, the switch is 
reset and they get reconnected to their UHCI controller.

All this backing and forthing would be eliminated if the ehci-hcd driver
was loaded before uhci-hcd rather than after.  Perhaps you can fiddle with
your startup scripts to make that happen.  But even if things always go
the way you showed here, the devices should all work properly in the end.

Alan Stern


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-usb-devel] Problems with USB setup with Linux 2.6.16
  2006-04-03  2:09 ` [linux-usb-devel] " Alan Stern
@ 2006-04-03  3:36   ` Joshua Kwan
  2006-04-03 14:36     ` Alan Stern
  2006-04-03 16:12     ` Mark Lord
  0 siblings, 2 replies; 5+ messages in thread
From: Joshua Kwan @ 2006-04-03  3:36 UTC (permalink / raw)
  To: Alan Stern; +Cc: linux-kernel, linux-usb-devel

On 04/02/2006 07:09 PM, Alan Stern wrote:
> If you were to continue looking farther down in the log, you would find
> that ehci-hcd sees all those devices.  Those that can run at high speed
> continue using the EHCI controller.  For those that can't, the switch is 
> reset and they get reconnected to their UHCI controller.

That makes sense - that is indeed what happens when it DOES work (i.e.
with 2.6.15), but the fact is that they don't come back in 2.6.16. I
will try building ehci-hcd in and see what happens.

More in a bit, thanks for your help so far.

-- 
Joshua Kwan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-usb-devel] Problems with USB setup with Linux 2.6.16
  2006-04-03  3:36   ` Joshua Kwan
@ 2006-04-03 14:36     ` Alan Stern
  2006-04-03 16:12     ` Mark Lord
  1 sibling, 0 replies; 5+ messages in thread
From: Alan Stern @ 2006-04-03 14:36 UTC (permalink / raw)
  To: Joshua Kwan; +Cc: linux-kernel, linux-usb-devel

On Sun, 2 Apr 2006, Joshua Kwan wrote:

> On 04/02/2006 07:09 PM, Alan Stern wrote:
> > If you were to continue looking farther down in the log, you would find
> > that ehci-hcd sees all those devices.  Those that can run at high speed
> > continue using the EHCI controller.  For those that can't, the switch is 
> > reset and they get reconnected to their UHCI controller.
> 
> That makes sense - that is indeed what happens when it DOES work (i.e.
> with 2.6.15), but the fact is that they don't come back in 2.6.16. I
> will try building ehci-hcd in and see what happens.

If the devices don't come back, it's an indication that some driver has 
hung.  A stack trace (Alt-SysRq-T) should help identify which driver is in 
trouble.

Alan Stern


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-usb-devel] Problems with USB setup with Linux 2.6.16
  2006-04-03  3:36   ` Joshua Kwan
  2006-04-03 14:36     ` Alan Stern
@ 2006-04-03 16:12     ` Mark Lord
  1 sibling, 0 replies; 5+ messages in thread
From: Mark Lord @ 2006-04-03 16:12 UTC (permalink / raw)
  To: Joshua Kwan; +Cc: Alan Stern, linux-kernel, linux-usb-devel

Joshua Kwan wrote:
> On 04/02/2006 07:09 PM, Alan Stern wrote:
>> If you were to continue looking farther down in the log, you would find
>> that ehci-hcd sees all those devices.  Those that can run at high speed
>> continue using the EHCI controller.  For those that can't, the switch is 
>> reset and they get reconnected to their UHCI controller.
> 
> That makes sense - that is indeed what happens when it DOES work (i.e.
> with 2.6.15), but the fact is that they don't come back in 2.6.16. I
> will try building ehci-hcd in and see what happens.

Around 2.6.13, I noticed that EHCI stopped working after a suspend/resume
(to/from RAM) cycle.  So I updated my suspend script to unload/reload EHCI
each time, which fixed the problem for me.  My script still does that.

Dunno if it's fixed in mainline or not.
Does unloading/reloading EHCI help you?

   rmmod ehci_hcd ; modprobe ehci_hcd

Cheers

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-03 16:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-03  0:48 Problems with USB setup with Linux 2.6.16 Joshua Kwan
2006-04-03  2:09 ` [linux-usb-devel] " Alan Stern
2006-04-03  3:36   ` Joshua Kwan
2006-04-03 14:36     ` Alan Stern
2006-04-03 16:12     ` Mark Lord

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).