Opened 9 years ago

Closed 7 years ago

#12376 closed bug (not reproducible)

HID usb stall on healthy usb device

Reported by: kallisti5 Owned by: mmlr
Priority: high Milestone: R1/beta1
Component: Drivers/USB/EHCI Version: R1/Development
Keywords: HID Cc:
Blocked By: Blocking:
Platform: x86-64

Description

I went to plug in my USB logitech HID keyboard after not using it for a while to discover it was non-functional.

Looking over the syslogs, I see the following

KERN: usb error ehci -1: KERN: qtd (0x12f95800) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12f9b500) error: 0x80088141
KERN: usb error ehci -1: qtd (0x12f9b680) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12f9b880) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: usb_hid: error waiting for report: General system error
KERN: qtd (0x12f9ba80) error: 0x00088141
KERN: bfs: bfs_read_link:1534: Invalid Argument
KERN: usb error ehci -1: KERN: qtd (0x12f9bc00) error: 0x80088141
KERN: usb error ehci -1: KERN: qtd (0x12f9bd80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12f9bf80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: usb_hid: error waiting for report: General system error
KERN: qtd (0x12f9c180) error: 0x00088141
KERN: usb error ehci -1: qtd (0x12f9c300) error: 0x80088141
KERN: usb error ehci -1: qtd (0x12f9c480) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12f9c680) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: usb_hid: error waiting for report: General system error
KERN: qtd (0x12f9c880) error: 0x00088141
KERN: usb error ehci -1: qtd (0x12f9ca00) error: 0x80088141
KERN: usb error ehci -1: KERN: qtd (0x12f9cb80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: qtd (0x12f9cd80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: usb_hid: error waiting for report: General system error
KERN: qtd (0x12f9cf80) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12f9d100) error: 0x80088141
KERN: usb error ehci -1: qtd (0x12f9d280) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12f9d480) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: bfs: bfs_read_link:1534: Invalid Argument
KERN: usb error ehci -1: usb_hid: error waiting for report: General system error
KERN: qtd (0x12f9d680) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12f9d800) error: 0x80088141
KERN: usb error ehci -1: KERN: qtd (0x12f9d980) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: qtd (0x12f9db80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb_hid: error waiting for report: General system error
KERN: usb error ehci -1: KERN: qtd (0x12f9dd80) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12f9df00) error: 0x80088141
KERN: usb error ehci -1: qtd (0x12f9e080) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12f9e280) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: usb_hid: error waiting for report: General system error
KERN: qtd (0x12f9e480) error: 0x00088141
KERN: usb error ehci -1: qtd (0x12f9e600) error: 0x80088141
KERN: usb error ehci -1: qtd (0x12f9e780) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12f9e980) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: bfs: bfs_read_link:1534: Invalid Argument
KERN: usb_hid: error waiting for report: General system error
KERN: usb error ehci -1: KERN: qtd (0x12f9eb80) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12f9ed00) error: 0x80088141
KERN: usb error ehci -1: KERN: qtd (0x12f9ee80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12f9f080) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb_hid: error waiting for report: General system error
KERN: usb error ehci -1: KERN: qtd (0x12f9f280) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12f9f400) error: 0x80088141
KERN: usb error ehci -1: KERN: qtd (0x12f9f580) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12f9f780) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: usb_hid: error waiting for report: General system error
KERN: qtd (0x12f9f980) error: 0x00088141
KERN: usb error ehci -1: qtd (0x12f9fb00) error: 0x80088141
KERN: usb error ehci -1: qtd (0x12f9fc80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12f9fe80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: usb_hid: error waiting for report: General system error
KERN: qtd (0x12fa0080) error: 0x00088141
KERN: bfs: bfs_read_link:1534: Invalid Argument
KERN: usb error ehci -1: KERN: qtd (0x12fa0200) error: 0x80088141
KERN: usb error ehci -1: KERN: qtd (0x12fa0380) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12fa0580) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: usb_hid: error waiting for report: General system error
KERN: qtd (0x12fa0780) error: 0x00088141
KERN: usb error ehci -1: qtd (0x12fa0900) error: 0x80088141
KERN: usb error ehci -1: KERN: qtd (0x12fa0a80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12fa0c80) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: usb_hid: error waiting for report: General system error
KERN: qtd (0x12fa0e80) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12fa1000) error: 0x80088141
KERN: usb error ehci -1: KERN: qtd (0x12fa1180) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12fa1380) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: usb_hid: error waiting for report: General system error
KERN: qtd (0x12fa1580) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12fa1700) error: 0x80088141
KERN: usb error ehci -1: KERN: qtd (0x12fa1880) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: KERN: qtd (0x12fa1c00) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: usb_hid: error waiting for report: General system error
KERN: qtd (0x12fa1f00) error: 0x00088141
KERN: usb error ehci -1: qtd (0x12fa2580) error: 0x80088141
KERN: usb error ehci -1: qtd (0x12fa2980) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: qtd (0x12fa2e00) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb_hid: error waiting for report: General system error
KERN: usb error ehci -1: qtd (0x12fa3000) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12fa3400) error: 0x80088141
KERN: usb error ehci -1: qtd (0x12fa3580) error: 0x00080e42
KERN: bfs: bfs_read_link:1534: Invalid Argument
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb error ehci -1: qtd (0x12fa3780) error: 0x00080e42
KERN: usb_hid: Unable to unstall device: Device stalled
KERN: usb_hid: error waiting for report: General system error
KERN: usb error ehci -1: qtd (0x12fa3c00) error: 0x00088141
KERN: usb error ehci -1: KERN: qtd (0x12fa3d80) error: 0x80088141
KERN: usb error ehci -1: KERN: usb hub 19: qtd (0x12fa4100) error: 0x00080e42
KERN: port 2: device removed

The logitech usb HID dongle works as expected under linux and used to work on this system several months ago.

hrev49638 Sep 13 2015 13:26:48 x86_64 x86_64 Haiku

Change History (4)

comment:1 by kallisti5, 9 years ago

Could be somewhat related to #11793

comment:2 by mmlr, 9 years ago

There are only few recent changes to the usb_hid code, so if it worked a few months ago then this was possibly introduced in f1a02a8 which changed the stall handling. It looks like both transfers, the one for the actual input and the control transfer to clear the stall, stall. A device stalling the unstall command should generally not happen, so something seems to go fundamentally wrong. AFAIR there is no special recovery mechanism in USB HID (as opposed to reset recovery in USB mass storage for example), which would mean this isn't a missing feature of the usb_hid driver.

More info is needed to figure out what's actually happening. Possibly a full syslog with the initial error message already sheds some light on what happens. Otherwise enabling full logging in the USB stack and the respective bus driver (EHCI in this case) will be needed.

comment:3 by pulkomandy, 8 years ago

Ping, Is this still a problem, and can you provide the requested info (full syslog), binary search of which revision it happened in, etc?

comment:4 by kallisti5, 7 years ago

Resolution: not reproducible
Status: newclosed

I haven't seen this one for quite a while. It could of been hardware dependent however all my historical knowledge on this one is missing :-)

Note: See TracTickets for help on using tickets.