RPi 3B 4.16.63 system freezes with USB printer connected and printing

Open
#3,145 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c, linux

Research direction

Start with the attached k4-19-63-dmesg-freeze.log and the USB printer path through usblp and usbfs, using the reported Raspberry Pi 3B and 4.19.63 setup as the reproduction case. Trace the repeated -121 and NYET/NAK/ACK messages around printing; done means the system no longer freezes with the Canon SELPHY CP1300 connected and printing.

Written by the indexing model from the issue text.

Description

Waiting for internal comment

RPi 3B
4.19.63

Entire system freezes and does not respond after some minutes of using the printer.

dmesg outputs:
[ +0.064324] usb 1-1.3: New USB device found, idVendor=04a9, idProduct=32db, bcdDevice= 0.01
[ +0.000016] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ +0.000010] usb 1-1.3: Product: SELPHY CP1300
[ +0.000008] usb 1-1.3: Manufacturer: Canon
[ +0.000009] usb 1-1.3: SerialNumber: B110090201509819
...
[ +0.060121] usblp 1-1.3:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x04A9 pid 0x32DB
...
[Aug 8 10:49] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000174] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000124] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000124] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000130] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000137] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000143] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000125] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000123] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000123] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000127] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000128] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000127] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000123] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000123] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000134] usb 1-1.3: usbfs: usb_submit_urb returned -121
...
+0.000157] NYET/NAK/ACK/other in non-error case, 0x00000002
[ +0.000017] NYET/NAK/ACK/other in non-error case, 0x00000002
[ +0.000054] usb 1-1.3: usbfs: usb_submit_urb returned -121
[ +0.000080] NYET/NAK/ACK/other in non-error case, 0x00000002
[ +0.000020] NYET/NAK/ACK/other in non-error case, 0x00000002
[ +0.000018] NYET/NAK/ACK/other in non-error case, 0x00000002
[ +0.000023] usb 1-1.3: usbfs: usb_submit_urb returned -121
...
[ +0.071027] usb 1-1.3: USB disconnect, device number 5

Please see entire dmesg output attached.
k4-19-63-dmesg-freeze.log

Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.