David Brownell wrote:

>On Saturday 30 April 2005 9:48 pm, Brian Beardall wrote:
>  
>
>>Brian Beardall wrote:
>>
>>    
>>
>
>  
>
>>>With this configuration this is what occurred:
>>>
>>>hub 1-0:1.0: resubmit --> -108
>>>hub 1-0:1.0: hub_port_status failed (err = -108)
>>>irq 10: nobody cared!
>>>[<c01356aa>] __report_bad_irq+0x2a/0x90
>>>[<c0134fe0>] handle_IRQ_event+0x30/0x70
>>>[<c013579c>] note_interrupt+0x6c/0xd0
>>>[<c0135166>] __do_IRQ+0x146/0x160
>>>[<c0104e03>] do_IRQ+0x23/0x40
>>>...
>>>handlers:
>>>[<c034ca60>] (usb_hcd_irq+0x0/0x70)
>>>Disabling IRQ #10
>>>      
>>>
>
>So "-108" is usually "-ESHUTDOWN" or device vanishing.
>That doesn't happen in normal operation ...
>
>
>  
>
>>I tested another OHCI card, and it does not lock-up the IRQ like the AMD
>>756 OHCI usb controller.  Both mainboards I have that have the AMD 756
>>OHCI usb controller exibit the exact same problem however.  This looks
>>like a specific issue with the AMD 756 OHCI controller.
>>    
>>
>
>Well, the AMD756 is a bit old (original Athlon boards, nothing current)
>but I'd rather it work than not.
>
>If you enable CONFIG_USB_DEBUG, you _ought_ to see something interesting
>reported shortly before that "resubmit --> -108" starts making trouble.
>If so, please forward that info.
>
>- Dave
>  
>
I enabled the CONFIG_USB_DEBUG, and this is what I get:

ohci_hcd 0000:00:07.4: bogus NDP=255, rereads as NDP=4
irq 10: nobody cared!
 [<c01356aa>] __report_bad_irq+0x2a/0x90
 [<c0134fe0>] handle_IRQ_event+0x30/0x70
 [<c013579c>] note_interrupt+0x6c/0xd0
 [<c0135166>] __do_IRQ+0x146/0x160
 [<c0104e03>] do_IRQ+0x23/0x40
 [<c01033ca>] common_interrupt+0x1a/0x20
 [<c011d8b0>] __do_softirq+0x30/0x90
 [<c011d936>] do_softirq+0x26/0x30
 [<c011da05>] irq_exit+0x35/0x40
 [<c0104e08>] do_IRQ+0x28/0x40
 [<c01033ca>] common_interrupt+0x1a/0x20
 [<c02bc242>] acpi_processor_idle+0x123/0x260
 [<c01010d8>] cpu_idle+0x48/0x60
 [<c05ba75f>] start_kernel+0x16f/0x1b0
 [<c05ba330>] unknown_bootoption+0x0/0x1b0
handlers:
[<c0335650>] (ohci_irq_handler+0x0/0x7a0)
[<c034db70>] (usb_hcd_irq+0x0/0x70)
Disabling IRQ #10

The last message before the IRQ nobody cared is either the NDP error or
I get the hub_port_status failed message.  It depends on it attitude at
the time of crash.  This may be able to be explained by Erratum #4.  If
the root hub were to be reset during use then there would need to be
some time for the registers 34h and above to settle before re-reading
them.  During this time the device may be not be responsive, but I don't
have the complete documentation on erratum #4.  This is a verbose as it
got when it crashed.

Here is the error right before the IRQ was shutdown on the other computer:

Apr 19 19:52:44 masigla ohci_hcd 0000:00:07.4: bogus NDP=145, rereads as
NDP=4

Maybe I will put printk's in the usb_reset functions to see if it is
reseting the controller, and if that is when it is crashing.  Doesn't
make sense why the root hub would be reset during the middle of a transfer.

Here is the usb output in the boot log with CONFIG_USB_DEBUG:

ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd: block sizes: ed 64 td 64
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
ACPI: PCI interrupt 0000:00:07.4[D] -> GSI 10 (level, low) -> IRQ 10
ohci_hcd 0000:00:07.4: Advanced Micro Devices [AMD] AMD-756 [Viper] USB
ohci_hcd 0000:00:07.4: irq 10, pci mem 0xe1000000
ohci_hcd 0000:00:07.4: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:07.4: AMD756 erratum 4 workaround
ohci_hcd 0000:00:07.4: resetting from state 'reset', control = 0x600
ohci_hcd 0000:00:07.4: OHCI controller state
ohci_hcd 0000:00:07.4: OHCI 1.0, with legacy support registers
ohci_hcd 0000:00:07.4: control 0x683 RWE RWC HCFS=operational CBSR=3
ohci_hcd 0000:00:07.4: cmdstatus 0x00000 SOC=0
ohci_hcd 0000:00:07.4: intrstatus 0x00000044 RHSC SF
ohci_hcd 0000:00:07.4: intrenable 0x8000000a MIE RD WDH
ohci_hcd 0000:00:07.4: hcca frame #0003
ohci_hcd 0000:00:07.4: roothub.a 01000204 POTPGT=1 NPS NDP=4
ohci_hcd 0000:00:07.4: roothub.b 00000000 PPCM=0000 DR=0000
ohci_hcd 0000:00:07.4: roothub.status 00008000 DRWE
ohci_hcd 0000:00:07.4: roothub.portstatus [0] 0x00010101 CSC PPS CCS
ohci_hcd 0000:00:07.4: roothub.portstatus [1] 0x00000100 PPS
ohci_hcd 0000:00:07.4: roothub.portstatus [2] 0x00000100 PPS
ohci_hcd 0000:00:07.4: roothub.portstatus [3] 0x00000100 PPS
usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: default language 0x0409
usb usb1: Product: Advanced Micro Devices [AMD] AMD-756 [Viper] USB
usb usb1: Manufacturer: Linux 2.6.11-gentoo-r6 ohci_hcd
usb usb1: SerialNumber: 0000:00:07.4
usb usb1: hotplug
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: hotplug
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: no power switching (usb 1.0)
hub 1-0:1.0: global over-current protection
hub 1-0:1.0: power on to power good time: 2ms
hub 1-0:1.0: local power source is good
hub 1-0:1.0: no over-current condition exists
hub 1-0:1.0: state 5 ports 4 chg 001e evt 001f
ohci_hcd 0000:00:07.4: GetStatus roothub.portstatus [0] = 0x00010101 CSC
PPS CCS
hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
ohci_hcd 0000:00:07.4: created debug files
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
ohci_hcd 0000:00:07.4: GetStatus roothub.portstatus [0] = 0x00100103
PRSC PPS PES CCS
usb 1-1: new full speed USB device using ohci_hcd and address 2
ohci_hcd 0000:00:07.4: GetStatus roothub.portstatus [0] = 0x00100103
PRSC PPS PES CCS
usb 1-1: ep0 maxpacket = 8
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: default language 0x0409
usb 1-1: Product: Generic Digital camera
usb 1-1: Manufacturer: Sunplus Technology Co., Ltd.
usb 1-1: hotplug
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: hotplug
hub 1-0:1.0: port 2, status 0100, change 0000, 12 Mb/s
hub 1-0:1.0: port 3, status 0100, change 0000, 12 Mb/s
hub 1-0:1.0: port 4, status 0100, change 0000, 12 Mb/s
hub 1-0:1.0: state 5 ports 4 chg 0000 evt 0002
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for
PocketPC PDA
drivers/usb/serial/ipaq.c: USB PocketPC PDA driver v0.5
usbcore: registered new driver ipaq
drivers/usb/serial/usb-serial.c: USB Serial support registered for
Handspring Visor / Palm OS
drivers/usb/serial/usb-serial.c: USB Serial support registered for Sony
Clie 3.5
drivers/usb/serial/usb-serial.c: USB Serial support registered for Sony
Clie 5.0
usbcore: registered new driver visor
drivers/usb/serial/visor.c: USB HandSpring Visor / Palm OS driver v2.1

.....

hub 1-0:1.0: state 5 ports 4 chg 0000 evt 0002
ohci_hcd 0000:00:07.4: GetStatus roothub.portstatus [0] = 0x00030100
PESC CSC PPS
hub 1-0:1.0: port 1, status 0100, change 0003, 12 Mb/s
usb 1-1: USB disconnect, address 2
usb 1-1: usb_disable_device nuking all URBs
usb 1-1: unregistering interface 1-1:1.0
usb 1-1:1.0: hotplug
usb 1-1: unregistering device
usb 1-1: hotplug
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
hub 1-0:1.0: state 5 ports 4 chg 0000 evt 0002
ohci_hcd 0000:00:07.4: GetStatus roothub.portstatus [0] = 0x00010101 CSC
PPS CCS
hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
ohci_hcd 0000:00:07.4: GetStatus roothub.portstatus [0] = 0x00100103
PRSC PPS PES CCS
usb 1-1: new full speed USB device using ohci_hcd and address 3
ohci_hcd 0000:00:07.4: GetStatus roothub.portstatus [0] = 0x00100103
PRSC PPS PES CCS
usb 1-1: ep0 maxpacket = 8
usb 1-1: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: default language 0x0409
usb 1-1: Product: Generic Digital camera
usb 1-1: Manufacturer: Sunplus Technology Co., Ltd.
usb 1-1: hotplug
usb 1-1: adding 1-1:1.0 (config #1, interface 0)
usb 1-1:1.0: hotplug
hub 1-0:1.0: state 5 ports 4 chg 0000 evt 0002
spca50x 1-1:1.0: usb_probe_interface
spca50x 1-1:1.0: usb_probe_interface - got id
/var/tmp/portage/spca5xx-20041224/work/spca5xx-20041224/drivers/usb/spca50x.c:
USB SPCA5XX camera found. Type Flexcam 100 (SPCA561A)
/var/tmp/portage/spca5xx-20041224/work/spca5xx-20041224/drivers/usb/spca50x.c:
[spca50x_probe:7780] Camera type GBRG

....
usbcore: registered new driver spca50x
/var/tmp/portage/spca5xx-20041224/work/spca5xx-20041224/drivers/usb/spca50x.c:
spca5xx driver 0.55 registered




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to