All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 212725] New: USB CDC ACM device stop working
@ 2021-04-19 21:18 bugzilla-daemon
  2021-04-19 21:26 ` [Bug 212725] " bugzilla-daemon
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-daemon @ 2021-04-19 21:18 UTC (permalink / raw)
  To: linux-usb

https://bugzilla.kernel.org/show_bug.cgi?id=212725

            Bug ID: 212725
           Summary: USB CDC ACM device stop working
           Product: Drivers
           Version: 2.5
    Kernel Version: 5.11.15
          Hardware: x86-64
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: USB
          Assignee: drivers_usb@kernel-bugs.kernel.org
          Reporter: stefan@agner.ch
        Regression: No

When trying to use USB CDC ACM devices (open using screen) opening fails and
the kernel dmesg shows the following error:

kernel: cdc_acm 1-3.3.3:1.0: acm_port_activate - usb_submit_urb(ctrl irq)
failed

This happens with STM32 microcontroller based device as well as a Segger JTAG
adapter, so it seems not device related. The issue must have been introduced
recently (within the last month) as those devices used to work previously. I
can reproduce the issue also with latest LTS kernel release 5.10.31.

Builds:
- 5.10.31-1-lts
- 5.11.15-arch1-2

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 212725] USB CDC ACM device stop working
  2021-04-19 21:18 [Bug 212725] New: USB CDC ACM device stop working bugzilla-daemon
@ 2021-04-19 21:26 ` bugzilla-daemon
  2021-04-19 21:34 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2021-04-19 21:26 UTC (permalink / raw)
  To: linux-usb

https://bugzilla.kernel.org/show_bug.cgi?id=212725

--- Comment #1 from Stefan Agner (stefan@agner.ch) ---
I went back and installed some older LTS kernel I had at hand. It seems that
5.10.26 was still working and 5.10.29 is broken. I don't have kernels at hand
inbetween, but hopefully this narrows it down already sufficently.

This is on a AMD Ryzen 9 3900X platform using a AMD X570 motherboard. The USB
2.0 devices are connected through USB 3.0 hub, but also connecting them
directly to the root port seems to exhibit the issue.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 212725] USB CDC ACM device stop working
  2021-04-19 21:18 [Bug 212725] New: USB CDC ACM device stop working bugzilla-daemon
  2021-04-19 21:26 ` [Bug 212725] " bugzilla-daemon
@ 2021-04-19 21:34 ` bugzilla-daemon
  2021-04-20  9:58 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2021-04-19 21:34 UTC (permalink / raw)
  To: linux-usb

https://bugzilla.kernel.org/show_bug.cgi?id=212725

Stefan Agner (stefan@agner.ch) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oliver@neukum.org

--- Comment #2 from Stefan Agner (stefan@agner.ch) ---
Some possible candidates:
https://lore.kernel.org/linux-usb/20210311130126.15972-1-oneukum@suse.com/
https://lore.kernel.org/linux-usb/20210311133714.31881-1-oneukum@suse.com/

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 212725] USB CDC ACM device stop working
  2021-04-19 21:18 [Bug 212725] New: USB CDC ACM device stop working bugzilla-daemon
  2021-04-19 21:26 ` [Bug 212725] " bugzilla-daemon
  2021-04-19 21:34 ` bugzilla-daemon
@ 2021-04-20  9:58 ` bugzilla-daemon
  2021-04-20 13:35 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2021-04-20  9:58 UTC (permalink / raw)
  To: linux-usb

https://bugzilla.kernel.org/show_bug.cgi?id=212725

--- Comment #3 from Oliver Neukum (oliver@neukum.org) ---
Created attachment 296439
  --> https://bugzilla.kernel.org/attachment.cgi?id=296439&action=edit
fix a poison/unpoison imbalance

Please test this patch

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 212725] USB CDC ACM device stop working
  2021-04-19 21:18 [Bug 212725] New: USB CDC ACM device stop working bugzilla-daemon
                   ` (2 preceding siblings ...)
  2021-04-20  9:58 ` bugzilla-daemon
@ 2021-04-20 13:35 ` bugzilla-daemon
  2021-04-22 11:36 ` bugzilla-daemon
  2021-04-28 21:39 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2021-04-20 13:35 UTC (permalink / raw)
  To: linux-usb

https://bugzilla.kernel.org/show_bug.cgi?id=212725

--- Comment #4 from Stefan Agner (stefan@agner.ch) ---
Thanks for the quick response!

Applied and built a 5.11.15 kernel with that patch. It indeed seems to fix the
issue!

It did not apply cleanly on 5.11.15 or master, there is a `spin_lock_irq` in
that area. I just moved the acm_unpoison_urbs after the suspend counter
decrement, not sure if that is the correct fix though.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 212725] USB CDC ACM device stop working
  2021-04-19 21:18 [Bug 212725] New: USB CDC ACM device stop working bugzilla-daemon
                   ` (3 preceding siblings ...)
  2021-04-20 13:35 ` bugzilla-daemon
@ 2021-04-22 11:36 ` bugzilla-daemon
  2021-04-28 21:39 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2021-04-22 11:36 UTC (permalink / raw)
  To: linux-usb

https://bugzilla.kernel.org/show_bug.cgi?id=212725

Stefan Agner (stefan@agner.ch) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #5 from Stefan Agner (stefan@agner.ch) ---
Addressed with:
https://lore.kernel.org/linux-usb/20210421074513.4327-1-oneukum@suse.com/T/#u

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 212725] USB CDC ACM device stop working
  2021-04-19 21:18 [Bug 212725] New: USB CDC ACM device stop working bugzilla-daemon
                   ` (4 preceding siblings ...)
  2021-04-22 11:36 ` bugzilla-daemon
@ 2021-04-28 21:39 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2021-04-28 21:39 UTC (permalink / raw)
  To: linux-usb

https://bugzilla.kernel.org/show_bug.cgi?id=212725

--- Comment #6 from Stefan Agner (stefan@agner.ch) ---
FWIW, the issue is now fixed in kernels v5.11.17/v5.10.33. I guess it will make
it into v5.12.1 (at this point not yet released).

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-04-28 21:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19 21:18 [Bug 212725] New: USB CDC ACM device stop working bugzilla-daemon
2021-04-19 21:26 ` [Bug 212725] " bugzilla-daemon
2021-04-19 21:34 ` bugzilla-daemon
2021-04-20  9:58 ` bugzilla-daemon
2021-04-20 13:35 ` bugzilla-daemon
2021-04-22 11:36 ` bugzilla-daemon
2021-04-28 21:39 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.