On Mon, Jun 03, 2002 at 08:49:13PM -0700, Greg KH wrote: > On Mon, Jun 03, 2002 at 07:17:49PM -0700, Jean Tourrilhes wrote: > > Hi, > > > > It seems that we should test the new USB code. So, I did a bit > > of testing with the various HCD drivers and the irda-usb dongle > > driver. Bad news. > > The "Removing module OOPS" is not a usb problem, see lkml for a patch to > fix this from Pat Mochel.
Yep, I've upgraded to 2.5.21, and this was fixed. Thanks. > Other than that, it looks like we should just remove the lot and go back > to the old pre-hcd code :) > > Any of the HCD developers want to help fix these problems? > > Oh, and does usb-ohci-pci or usb-uhci or uhci in 2.5.20 also cause these > kinds of problems (you can uncomment out their lines in Config.in or > just add the following to your .config and rebuild the drivers/usb/host > directory: > CONFIG_USB_UHCI > CONFIG_USB_OHCI > CONFIG_USB_UHCI_ALT I tried quickly, and it seems to be even worse. > thanks, > > greg k-h More news... After spending some quality time with my motherboard, I managed to get the OHCI and UHCI card on their separate interrupt. I'll blame Christopher Hoover, because it happened after I lent him my OHCI card ;-) Anyway, getting UHCI on it's own interrupt seem to have fixed all UHCI problems. Both uhci-hcd and usb-uhci-hcd work perfectly under my stress tests with 2.5.20 (two dongles, SMP). I didn't do any perf tests (latency, latency, latency !). In 2.5.21, it's working fine so far, apart that once I got the following : ------------------------------------------------------------ usb-uhci-hcd.c: Detected 2 ports usb_control/bulk_msg: timeout usb_control/bulk_msg: timeout usb.c: USB device not accepting new address=2 (error=-110) usb_control/bulk_msg: timeout usb-uhci-q.c: Watchdog timeout, defibrillating... Expect disconnections... => total freeze of my PC ------------------------------------------------------------- So, I guess you just need to defibrillate the defibrillater ;-) Now, back to OHCI. In 2.5.21, things are somewhat different than in 2.5.20, and it fails even before the IrDA driver enter in action. The full log is below. I also tries 2.5.20 on the same box with a non-SMP kernel, and that didn't make any difference. Yes, I know about Opti bugs. It's just that it used to work... Thanks again for the hints... Jean ---------------------------------------------------------------------- usb.c: registered new driver usbfs usb.c: registered new driver hub ohci-pci.c: 2002-Jun-01 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ohci-pci.c: block sizes: ed 48 td 64 hcd-pci.c: ohci-hcd @ 00:0d.0, OPTi Inc. 82C861 hcd-pci.c: irq 11, pci mem c88bf000 hcd.c: new USB bus registered, assigned bus number 1 ohci-pci.c: 00:0d.0: WARNING: OPTi workarounds unavailable ohci-hcd.c: USB HC reset_hc 00:0d.0: ctrl = 0x0 ; hcd.c: 00:0d.0 root hub device address 1 usb.c: new device strings: Mfr=3, Product=2, SerialNumber=1 Manufacturer: Linux 2.5.21 ohci-hcd Product: OPTi Inc. 82C861 SerialNumber: 00:0d.0 hub.c: USB hub found at / hub.c: 2 ports detected hub.c: standalone hub hub.c: ganged power switching hub.c: global over-current protection hub.c: Port indicators are not supported hub.c: power on to power good time: 2ms hub.c: hub controller current requirement: 0mA hub.c: port removable status: RR hub.c: local power source is good hub.c: no over-current condition exists hub.c: enabling power on all ports usb.c: hub driver claimed interface c6027260 usb.c: kusbd: /sbin/hotplug add 1 usb.c: kusbd policy returned 0xfffffffe ohci-dbg.c: OHCI controller 00:0d.0 state ohci-dbg.c: OHCI 1.0, with legacy support registers ohci-dbg.c: control: 0x0000008f HCFS=operational IE PLE CBSR=3 ohci-dbg.c: cmdstatus: 0x00000000 SOC=0 ohci-dbg.c: intrstatus: 0x00000044 RHSC SF ohci-dbg.c: intrenable: 0x80000002 MIE WDH ohci-dbg.c: hcca frame #001e ohci-dbg.c: roothub.a: 01000202 POTPGT=1 NPS NDP=2 ohci-dbg.c: roothub.b: 00000000 PPCM=0000 DR=0000 ohci-dbg.c: roothub.status: 00000000 ohci-dbg.c: 00:0d.0: roothub.portstatus [0] = 0x00000100 PPS ohci-dbg.c: 00:0d.0: roothub.portstatus [1] = 0x00010101 CSC PPS CCS hub.c: port 1, portstatus 100, change 0, 12 Mb/s ohci-hub.c: 00:0d.0: GetStatus roothub.portstatus [2] = 0x00010101 CSC PPS CCS hub.c: port 2, portstatus 101, change 1, 12 Mb/s hub.c: hub / port 2 connection change hub.c: hub / port 2, portstatus 101, change 1, 12 Mb/s hub.c: port 2, portstatus 101, change 0, 12 Mb/s hub.c: port 2, portstatus 101, change 0, 12 Mb/s hub.c: port 2, portstatus 101, change 0, 12 Mb/s hub.c: port 2, portstatus 101, change 0, 12 Mb/s ohci-hub.c: 00:0d.0: GetStatus roothub.portstatus [2] = 0x00100103 PRSC PPS PES CCS hub.c: port 2, portstatus 103, change 10, 12 Mb/s hub.c: new USB device 00:0d.0-2, assigned address 2 usb_control/bulk_msg: timeout ohci-dbg.c: UNLINK:[ e91] dev:0,ep=0-O,CTRL,flags: 0,len:0/0,stat:-2 hcd.c: 00:0d.0: wait for giveback urb c65409e0 irda_init() usb.c: registered new driver irda-usb USB IrDA support registered ---------------------------------------------------------------------- _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel