lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <b97d07bf-da27-4576-bed6-fd63e3e0b569@molgen.mpg.de>
Date: Sun, 4 Feb 2024 09:45:04 +0100
From: Paul Menzel <pmenzel@...gen.mpg.de>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-usb@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
 Hans de Goede <hdegoede@...hat.com>
Subject: Linux warning `usb: port power management may be unreliable` on Dell
 XPS 13 9360

Dear Linux folks,


On the Dell XPS 13 9360, Linux warns:

     usb: port power management may be unreliable

     $ lsusb -t
     /:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/12p, 
480M
         |__ Port 003: Dev 002, If 0, Class=Wireless, Driver=[none], 12M
         |__ Port 003: Dev 002, If 1, Class=Wireless, Driver=[none], 12M
         |__ Port 004: Dev 003, If 0, Class=Human Interface Device, 
Driver=usbhid, 12M
         |__ Port 005: Dev 004, If 0, Class=Video, Driver=uvcvideo, 480M
         |__ Port 005: Dev 004, If 1, Class=Video, Driver=uvcvideo, 480M
     /:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/6p, 
5000M

Enabling dynamic debug with `usbcore.dyndbg=+p` – `dyndbg="file port.c 
+p"` did not work¹ – the additional messages are:

     [    1.149417] usb usb2-port1: peered to usb1-port1
     [    1.150123] usb usb2-port2: peered to usb1-port2
     [    1.150916] usb usb2-port3: peered to usb1-port6
     [    1.151621] usb: failed to peer usb2-port4 and usb1-port6 by 
location (usb2-port4:none) (usb1-port6:usb2-port3)
     [    1.151634] usb usb2-port4: failed to peer to usb1-port6 (-16)
     [    1.151642] usb: port power management may be unreliable
     [    1.152314] usb: failed to peer usb2-port5 and usb1-port6 by 
location (usb2-port5:none) (usb1-port6:usb2-port3)
     [    1.152325] usb usb2-port5: failed to peer to usb1-port6 (-16)
     [    1.153020] usb: failed to peer usb2-port6 and usb1-port6 by 
location (usb2-port6:none) (usb1-port6:usb2-port3)
     [    1.153031] usb usb2-port6: failed to peer to usb1-port6 (-16)
     [    1.153079] usb usb2: port-1 no _DSM function 5
     [    1.153096] usb usb2: port-2 no _DSM function 5
     [    1.153111] usb usb2: port-3 no _DSM function 5
     [    1.153124] usb usb2: port-4 no _DSM function 5
     [    1.153137] usb usb2: port-5 no _DSM function 5
     [    1.153151] usb usb2: port-6 no _DSM function 5
     [    1.166521] usb usb1-port3: status 0101 change 0001
     [    1.166555] usb usb1-port4: status 0101 change 0001
     [    1.166584] usb usb1-port5: status 0101 change 0001
     [    1.270442] usb usb1-port3: status 0101, change 0000, 12 Mb/s
     [    1.362751] usb usb2: bus auto-suspend, wakeup 1

So the problematic ports do not show up in `lsusb`, do they?

Please find the output of `dmesg` attached.


Kind regards,

Paul


¹ Strangely the first quote seems to be re-ordered:

GRUB:

     linux   /vmlinuz-6.8.0-rc2+ 
root=UUID=32e29882-d94d-4a92-9ee4-4d03002bfa29 ro  quiet pci=noaer 
mem_sleep_default=deep log_buf_len=8M cryptomgr.notests dyndbg="file 
port.c +p"

Linux log:

     [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.8.0-rc2+ 
root=UUID=32e29882-d94d-4a92-9ee4-4d03002bfa29 ro quiet pci=noaer 
mem_sleep_default=deep log_buf_len=8M cryptomgr.notests "dyndbg=file 
port.c +p"

With the module the quotes are removed:

GRUB:

     linux   /vmlinuz-6.8.0-rc2+ 
root=UUID=32e29882-d94d-4a92-9ee4-4d03002bfa29 ro  quiet pci=noaer 
mem_sleep_default=deep log_buf_len=8M cryptomgr.notests usbcore.dyndbg="+p"

Linux log:

     [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.8.0-rc2+ 
root=UUID=32e29882-d94d-4a92-9ee4-4d03002bfa29 ro quiet pci=noaer 
mem_sleep_default=deep log_buf_len=8M cryptomgr.notests usbcore.dyndbg=+p
View attachment "20240204–dell-xps-13-9360–linux-6.8-rc2-usbcore.dyndbg.txt" of type "text/plain" (96369 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ