Bug 218486

Summary: Linux warning `usb: port power management may be unreliable` on Dell OptiPlex 3620
Product: Drivers Reporter: Paul Menzel (pmenzel+bugzilla.kernel.org)
Component: USBAssignee: Default virtual assignee for Drivers/USB (drivers_usb)
Status: RESOLVED DUPLICATE    
Severity: normal CC: mathias.nyman, pmenzel+bugzilla.kernel.org
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: Linux 6.6.12 messages (output of `dmesg`) with system firmware 1.28.0
Output of `acpidump` with system firmware 1.28.0
Linux 6.8-rc5+ messages with v2 patches (output of `dmesg`) with system firmware 1.28.0

Description Paul Menzel 2024-02-13 12:58:51 UTC
Created attachment 305859 [details]
Linux 6.6.12 messages (output of `dmesg`) with system firmware 1.28.0

On the Dell OptiPlex 3620 with at least system firmware version 1.25.0 and 1.28.0, Linux warns:

    $ dmesg | grep -e "DMI:" -e "Linux version" -e microcode
    [    0.000000] Linux version 6.6.12.mx64.461 (root@theinternet.molgen.mpg.de) (gcc (GCC) 12.3.0, GNU ld (GNU Binutils) 2.41) #1 SMP PREEMPT_DYNAMIC Thu Jan 18 10:47:08 CET 2024
    [    0.000000] DMI: Dell Inc. Precision Tower 3620/0MWYPT, BIOS 2.28.0 12/13/2023
    $ grep microcode /proc/cpuinfo | uniq
    microcode	: 0xf4
    $ usb-devices

    T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh=16
    D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
    P:  Vendor=1d6b ProdID=0002 Rev=06.06
    S:  Manufacturer=Linux 6.6.12.mx64.461 xhci-hcd
    S:  Product=xHCI Host Controller
    S:  SerialNumber=0000:00:14.0
    C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
    I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

    T:  Bus=01 Lev=01 Prnt=01 Port=05 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
    D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
    P:  Vendor=413c ProdID=2113 Rev=33.08
    S:  Product=Dell KB216 Wired Keyboard
    C:  #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr=100mA
    I:  If#=0x0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbhid
    I:  If#=0x1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid

    T:  Bus=01 Lev=01 Prnt=01 Port=08 Cnt=02 Dev#=  5 Spd=12  MxCh= 0
    D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
    P:  Vendor=27b8 ProdID=01ed Rev=00.02
    S:  Manufacturer=ThingM
    S:  Product=blink(1) mk2
    S:  SerialNumber=20010D87
    C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=120mA
    I:  If#=0x0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbfs

    T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=5000 MxCh=10
    D:  Ver= 3.00 Cls=09(hub  ) Sub=00 Prot=03 MxPS= 9 #Cfgs=  1
    P:  Vendor=1d6b ProdID=0003 Rev=06.06
    S:  Manufacturer=Linux 6.6.12.mx64.461 xhci-hcd
    S:  Product=xHCI Host Controller
    S:  SerialNumber=0000:00:14.0
    C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
    I:  If#=0x0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
Comment 1 Paul Menzel 2024-02-13 12:59:27 UTC
Created attachment 305860 [details]
Output of `acpidump` with system firmware 1.28.0
Comment 2 Artem S. Tashkinov 2024-02-13 17:46:21 UTC

*** This bug has been marked as a duplicate of bug 218490 ***
Comment 3 Paul Menzel 2024-02-21 18:21:20 UTC
Created attachment 305902 [details]
Linux 6.8-rc5+ messages with v2 patches (output of `dmesg`) with system firmware 1.28.0

With Mathias’ patches (I just tested v2)

1.  https://lore.kernel.org/all/20240220135946.4028553-1-mathias.nyman@linux.intel.com/
2.  https://lore.kernel.org/all/20240220135946.4028553-2-mathias.nyman@linux.intel.com/

the warning is gone.

    $ git log --oneline --no-decorate -3
    b075462c1a037 usb: port: Don't try to peer unused USB ports based on location
    c9b8f9ed3da92 usb: usb-acpi: Set port connect type of not connectable ports correctly
    9fc1ccccfd8d5 Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma