Skip to contentSkip to conversation

MUSB interrupt storm on device removal

DISCUSSION Måns Rullgård 1 participant 1 message Jan 24, 2019 USB

lore
Share & tools
lore
#0 lore raw
Quoted 23 lines · Bin Liu
Quoted 22 lines · Måns Rullgård
Quoted 20 lines · Johan Hovold
Quoted 18 lines · Måns Rullgård
Quoted 5 lines · Bin Liu
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

Why doesn't the same problem occur with other types of host controller?

Not sure, I am on musb for most of the times. Maybe other HCD doesn't giveback URBs with -EPROTO in such error case.

Quoted 8 lines
Quoted 1 line

ehci-hcd also uses -EPROTO.

Is it possible to test the use case on ehci?

- connect a multi-ports usb serial device to a hub;
- open multiple ports with cat command;
- remove the usb serial device from the hub;
- console lockup happens?

It doesn't seem to happen using ehci or even musb on Allwinner A20. I have only seen the problem with musb on AM3358.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

The A20 being dual core may possible explain the difference.

Booting the A20 with nosmp it still works correctly.

Can you please debug it to see how the hub disconnect event got a chance to be processed?

Could you be a little more specific? I'm happy to run some tests, but I need to know what information you're looking for.