Martin Diehl wrote:
> Maybe it's not expected to work this way - but if so, it should return 
> error, not crash when ehci-hcd is loaded befor ohci-hcd. If I load 
> ohci-hcd first, it's all working fine.
> 
> After this the ehci-hcd module gets stuck unremoveable in module-init,
> but the box remains useable to some extent.

This seems to be somewhere in usbfs.  None of that part of the EHCI
code has changed in quite some time (months, ISTR).  Either init order
is expected to work, although EHCI "should" be loaded before either
of the companion controllers to avoid re-enumerating devices.

It looks exactly like the oops I've seen sometimes when re-initializing
a host controller after rmmod ... usually ohci, since that's what I
was testing when I saw that.  Curious that you see it even before
that first initialization, that changing init order makes things work
for you, and that it doesn't show up for you with other HCDs.  Did you
happen to be loading this after the system was running multi-user, or
before?  I'm reasonably sure I saw more problems when usbcore loaded
before multi-user.

I've seen a _lot_ of usbfs or driverfs problems in 2.5.40.  So many
that I've stopped trying to use a CardBus adapter -- too many things
want to oops for me -- or unplugging/replugging USB devices more than
a couple times before I reboot.

Maybe I'll dive in to this next time I see such a problem.

- Dave


> Backtrace below is from 2.5.40.
> 
> Martin
> 
> ----------------
> 
> PCI: Found IRQ 11 for device 00:0c.2
> PCI: Sharing IRQ 11 with 00:0a.0
> hcd-pci.c: ehci-hcd @ 00:0c.2, NEC Corporation USB 2.0
> hcd-pci.c: irq 11, pci mem cc871000
> Unable to handle kernel paging request at virtual address 5a5a5a96
>  printing eip:
> cc85bd5f
> *pde = 00000000
> Oops: 0000
> ehci-hcd parport_pc lp parport usblp usbcore ne2k-pci 8390 crc32 rtc  
> CPU:    0
> EIP:    0060:[<cc85bd5f>]    Not tainted
> EFLAGS: 00010282
> EIP is at create_special_files+0xbf/0x130 [usbcore]
> eax: 5a5a5a5a   ebx: 00000000   ecx: cb3b1208   edx: cb3b143c
> esi: cb655080   edi: cc85ed80   ebp: 00000000   esp: c77d9df0
> ds: 0068   es: 0068   ss: 0068
> Process insmod (pid: 1486, threadinfo=c77d8000 task=caa5b7c0)
> Stack: 00000000 cc863240 00000000 00000000 cc862d48 cc85be76 cc862d48 cc862d48 
>        cc862d48 cb655080 cc8542a5 cb655080 cb6550e8 cb655080 dd000000 00000000 
>        c135baf8 cc857f44 cb655080 c135bb48 c77d9e54 00000000 cc871000 00000100 
> Call Trace:
>  [<cc863240>]usbdevfs_devices_fops+0x0/0x60 [usbcore]
>  [<cc862d48>]usb_bus_list_lock+0x0/0x18 [usbcore]
>  [<cc85be76>]usbfs_add_bus+0x16/0xe0 [usbcore]
>  [<cc862d48>]usb_bus_list_lock+0x0/0x18 [usbcore]
>  [<cc862d48>]usb_bus_list_lock+0x0/0x18 [usbcore]
>  [<cc862d48>]usb_bus_list_lock+0x0/0x18 [usbcore]
>  [<cc8542a5>]usb_register_bus_Rsmp_58e62eeb+0xf5/0x110 [usbcore]
>  [<cc857f44>]usb_hcd_pci_probe_Rsmp_32071573+0x324/0x350 [usbcore]
>  [<cc86eda0>]ehci_driver+0x0/0x3c [ehci-hcd]
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<c01accbf>]pci_device_probe+0x3f/0x60
>  [<cc86eddc>]pci_ids+0x0/0x38 [ehci-hcd]
>  [<cc86ee40>]ehci_pci_driver+0x0/0x144 [ehci-hcd]
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<c01b4918>]probe+0x18/0x30
>  [<c01b49f5>]found_match+0x25/0x50
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<c01b4b18>]do_driver_attach+0x38/0x50
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<c01b592b>]bus_for_each_dev+0xab/0x160
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<c01b4b42>]driver_attach+0x12/0x20
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<c01b4ae0>]do_driver_attach+0x0/0x50
>  [<c01b6024>]driver_register+0xd4/0xf0
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<c01acdc6>]pci_register_driver+0x36/0x50
>  [<cc86ee68>]ehci_pci_driver+0x28/0x144 [ehci-hcd]
>  [<cc86e4ae>]init_module+0xe/0x40 [ehci-hcd]
>  [<cc86ee40>]ehci_pci_driver+0x0/0x144 [ehci-hcd]
>  [<c011ee55>]sys_init_module+0x5a5/0x6b0
>  [<cc86ef84>].kmodtab+0x0/0xc [ehci-hcd]
>  [<cc86a060>]handshake+0x0/0x70 [ehci-hcd]
>  [<c01077f7>]syscall_call+0x7/0xb
> 
> Code: ff 70 3c 66 a1 6c 30 86 cc 0d 00 80 00 00 0f b7 c0 50 68 ed 
>  
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
> 





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to