Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] kernel 6.6.13: external usb devices not recognized
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Mon Mar 04, 2024 8:27 pm    Post subject: [solved] kernel 6.6.13: external usb devices not recognized Reply with quote

Hi.

After I upgraded my kernel from gentoo-sources-6.1.57 to 6.6.13, external USB devices stopped being recognized by the kernel. When I plug in an USB flash drive while watching the syslog (on ttty 12), just nothing happens: no message from the kernel shows up as usual that a new SuperSpeed device has been plugged in. With the old kernel, there is never a problem. It affects only external usb devices, being them storage devices or printers.

I experimented with the kernel config (building USB features in or as modules) but the change somehow has only a shorttime effect. After booting into the new kernel it works, but stops again after a while. In the moment I have the following difference in the 6.6.13-config compared to the working 6.1.57-configuration:

Quote:
# diff .config ../config-6.1.57 |grep USB
< CONFIG_BT_HCIBTUSB_POLL_SYNC=y
< CONFIG_USB_MON=y
> CONFIG_USB_MON=m
< CONFIG_USB_STORAGE_USBAT=m
> # CONFIG_USB_STORAGE_USBAT is not set
< CONFIG_USB_STORAGE_JUMPSHOT=m
< CONFIG_USB_STORAGE_ALAUDA=m
> # CONFIG_USB_STORAGE_JUMPSHOT is not set
> # CONFIG_USB_STORAGE_ALAUDA is not set
< CONFIG_USB_STORAGE_ENE_UB6250=m
> # CONFIG_USB_STORAGE_ENE_UB6250 is not set
< CONFIG_USB_UAS=m
> # CONFIG_USB_UAS is not set
< CONFIG_USB_ROLE_SWITCH=m
< CONFIG_USB_ROLES_INTEL_XHCI=m
> CONFIG_USB_ROLE_SWITCH=y
> # CONFIG_USB_ROLES_INTEL_XHCI is not set


Like before, with the old kernel, I have USB, USB_SUPPORT, USB_COMMON, USB_HID built into the kernel, but USB_STORAGE, USB_XHCI, EHCI, UHCI and OHCI as well as the corresponding _PCI and _HCD built as modules.

Weird no. 1: Often, when I plug in a flash drive, instead of the USB notifications a message appears from the driver of the LAN card:
Quote:
kernel: e1000e 0000:00:1f.6 enp0s31f6: Failed to disable ULP


Weird no.2: In one case, the kernel even thought that a LAN cable had been connected: it printed that the LAN link had come up and the interface activated - although I did not plug in a cable.

I'm not sure if this gives a hint, but at least once after reboot I managed to make the device known to the system. After the weird three first lines in the syslog (the power cycle and the enumeration problem) I plugged the USB stick in again and suddenly it was there:

Quote:
Mar 4 20:30:19 red kernel: usb usb2-port1: unable to enumerate USB device
Mar 4 20:30:28 red kernel: usb usb2-port2: attempt power cycle
Mar 4 20:30:37 red kernel: usb usb2-port2: unable to enumerate USB device
Mar 4 20:30:37 red kernel: usb 2-1: new SuperSpeed USB device number 10 using xhci_hcd
Mar 4 20:30:37 red kernel: usb 2-1: New USB device found, idVendor=0781, idProduct=5591, bcdDevice= 1.00
Mar 4 20:30:37 red kernel: usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 4 20:30:37 red kernel: usb 2-1: Product: SanDisk 3.2Gen1
Mar 4 20:30:37 red kernel: usb 2-1: Manufacturer: USB
Mar 4 20:30:37 red kernel: usb 2-1: SerialNumber: ...
Mar 4 20:30:37 red mtp-probe[7933]: checking bus 2, device 10: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1"
Mar 4 20:30:37 red mtp-probe[7933]: bus: 2, device: 10 was not an MTP device
Mar 4 20:30:37 red kernel: EXT4-fs (dm-2): re-mounted 5fe5719f-24ea-4ffc-8db7-f7d4791a3139 r/w. Quota mode: none.
Mar 4 20:30:37 red kernel: EXT4-fs (dm-3): re-mounted 6e3e4a7c-cf41-4856-89c2-9ce87034cce0 r/w. Quota mode: none.
Mar 4 20:30:38 red kernel: usb-storage 2-1:1.0: USB Mass Storage device detected
Mar 4 20:30:38 red kernel: scsi host1: usb-storage 2-1:1.0
Mar 4 20:30:38 red kernel: usbcore: registered new interface driver usb-storage
Mar 4 20:30:38 red kernel: usbcore: registered new interface driver uas
Mar 4 20:30:38 red kernel: EXT4-fs (dm-2): re-mounted [...] r/w. Quota mode: none.
Mar 4 20:30:38 red kernel: EXT4-fs (dm-3): re-mounted [...] r/w. Quota mode: none.
Mar 4 20:30:38 red mtp-probe[9151]: checking bus 2, device 10: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-1"
Mar 4 20:30:38 red mtp-probe[9151]: bus: 2, device: 10 was not an MTP device
Mar 4 20:30:39 red kernel: scsi 1:0:0:0: Direct-Access USB SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
Mar 4 20:30:39 red kernel: sd 1:0:0:0: Attached scsi generic sg0 type 0
Mar 4 20:30:39 red kernel: sd 1:0:0:0: [sda] 240328704 512-byte logical blocks: (123 GB/115 GiB)
Mar 4 20:30:39 red kernel: sd 1:0:0:0: [sda] Write Protect is off
Mar 4 20:30:39 red kernel: sd 1:0:0:0: [sda] Mode Sense: 43 00 00 00
Mar 4 20:30:39 red kernel: sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Mar 4 20:30:39 red kernel: sda: sda1
Mar 4 20:30:39 red kernel: sd 1:0:0:0: [sda] Attached SCSI removable disk


But after umounting and unplugging it went back to the broken state again: how often I plug it in, it triggers no reaction by the system.

What else can I do? I'm a bit out of ideas...

Just stick to 6.1.57 and wait for the next stable kernel?


The machine is a 4 years old Fujitsu Ultrabook running Gentoo from the beginning, with initramfs, lvm and encrypted root. All my other systems seeing the same kernel update had no problem at all.


Last edited by freifunk_connewitz on Tue Mar 26, 2024 9:56 am; edited 1 time in total
Back to top
View user's profile Send private message
myga
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2023
Posts: 99

PostPosted: Wed Mar 06, 2024 2:28 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-1167045-highlight-.html
_________________
[<<$>>]
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Tue Mar 26, 2024 9:56 am    Post subject: Reply with quote

With kernel 6.6.21 it seems to work as expected again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum