cdc_acm: acm_port_activate - usb_submit_urb(ctrl irq) failed

Bug #1931684 reported by Mateusz
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
intel-microcode (Ubuntu)
Invalid
Undecided
Unassigned
linux (Ubuntu)
Fix Released
Undecided
Unassigned
linux-firmware (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Ubuntu 18.04.5 LTS
Recently, after kernel update 4.15.0.144 (didn't know about the case yet), i can't open serial ports on USB CDC devices (STM32 Virtual COMs in my case).

using simple cat command (with or without sudo):
$ sudo cat /dev/ttyACM1
cat: /dev/ttyACM1: Input/output error

or some serial programs:
Failed to connect to /dev/ttyACM1 : [Errno 5] could not open port /dev/ttyACM1: [Errno 5] Input/output error: '/dev/ttyACM1'

dmesg:
[ 3295.718270] cdc_acm 1-2:1.0: ttyACM1: USB ACM device
[ 3302.508356] cdc_acm 1-2:1.0: acm_port_activate - usb_submit_urb(ctrl irq) failed
[ 3302.508940] cdc_acm 1-2:1.0: acm_port_activate - usb_submit_urb(ctrl irq) failed

When i try spamming commands while plugging the device in, i am sometimes able to open the port (might be the clue).

When i booted in ubuntu advanced mode to 4.15.0.143 kernel, everything started to work normally.

Also tried HWE stack with 5.4.0.74 kernel, but the bug was also present there.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1931684/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Paul White (paulw2u)
affects: ubuntu → linux (Ubuntu)
tags: added: bionic
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Kuntze (shiro-kano) wrote :

Im using Ubuntu 20.04 LTS and have the same problem. I got the problem after upgrading from Kernel 5.4.0-73-generic to 5.4.0-74-generic. As I got in addition a firmware/microcode update it may be possible that the error is adjacent to that update too.
If I boot to kernel 5.4.0-73-generic I have access to the serial line (e.g. /dev/ttyACM3).

Revision history for this message
Matthias Kuntze (shiro-kano) wrote :

excerpt from /var/log/apt/history.log:

Update from 73 to 74:
Commandline: aptdaemon role='role-commit-packages' sender=':1.165'
Install: linux-image-5.4.0-74-generic:amd64 (5.4.0-74.83, automatic),...

Update firmware/microcode:
Commandline: aptdaemon role='role-commit-packages' sender=':1.173'
Upgrade: intel-microcode:amd64 (3.20210216.0ubuntu0.20.04.1, 3.20210608.0ubuntu0.20.04.1), linux-firmware:amd64 (1.187.12, 1.187.14)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in intel-microcode (Ubuntu):
status: New → Confirmed
Changed in linux-firmware (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Kuntze (shiro-kano) wrote :

I did an upgrade from kernel 5.4.0-74-generic to 5.4.0-77-generic and the problem disappeared.

$ stty -F /dev/ttyACM0
speed 57600 baud; line = 0;
eof = ^A; min = 1; time = 0;
-brkint -icrnl -imaxbel
-opost -onlcr
-icanon -echo -echoe

Changed in linux-firmware (Ubuntu):
status: Confirmed → Invalid
Changed in intel-microcode (Ubuntu):
status: Confirmed → Invalid
Changed in linux (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.