Include parent hub number in current warning message "Parent hub missing LPM exit latency info"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Xenia,
  thank you, how about inclusion of the "parent hub" number in the
following message (as of now):

Parent hub missing LPM exit latency info.  Power management will be impacted. 



I find it awkward to later on run manually lspci/lsusb to find what is the parent.
I think I do NOT get these messages when I have pcie_aspm=off whereas when
it is on I get the warning. Why PCIe powersaving affects how USB end devices will
be put to sleep I don't know. But that will be the next step to look into. 
First the warning message. And maybe it could be improve even further to include
other relevant capabilities of the "parent" present/missing. ;-)


Here are bits from my dmesg:

[    1.996290] pci 0000:00:1a.0: calling quirk_usb_early_handoff+0x0/0x760
[    2.118464] pci 0000:00:1d.0: calling quirk_usb_early_handoff+0x0/0x760
[    2.238447] pci 0000:0b:00.0: calling quirk_usb_early_handoff+0x0/0x760

[    4.150572] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.151271] ehci-pci: EHCI PCI platform driver
[    4.153595] ehci-pci 0000:00:1a.0: enabling bus mastering
[    4.153602] ehci-pci 0000:00:1a.0: setting latency timer to 64
[    4.153634] ehci-pci 0000:00:1a.0: EHCI Host Controller
[    4.154427] ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 1
[    4.155159] ehci-pci 0000:00:1a.0: debug port 2
[    4.159824] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[    4.159963] ehci-pci 0000:00:1a.0: irq 16, io mem 0xf7f08000
[    4.179142] ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[    4.180144] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    4.180817] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.181482] usb usb1: Product: EHCI Host Controller
[    4.182147] usb usb1: Manufacturer: Linux 3.10.9-default-pciehp ehci_hcd
[    4.182819] usb usb1: SerialNumber: 0000:00:1a.0
[    4.184904] hub 1-0:1.0: USB hub found
[    4.185628] hub 1-0:1.0: 2 ports detected
[    4.189263] ehci-pci 0000:00:1d.0: enabling bus mastering
[    4.189269] ehci-pci 0000:00:1d.0: setting latency timer to 64
[    4.189280] ehci-pci 0000:00:1d.0: EHCI Host Controller
[    4.189951] ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 2
[    4.190604] ehci-pci 0000:00:1d.0: debug port 2
[    4.195178] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[    4.195283] ehci-pci 0000:00:1d.0: irq 23, io mem 0xf7f07000
[    4.209148] ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[    4.210029] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    4.210668] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.211301] usb usb2: Product: EHCI Host Controller
[    4.211921] usb usb2: Manufacturer: Linux 3.10.9-default-pciehp ehci_hcd
[    4.212543] usb usb2: SerialNumber: 0000:00:1d.0
[    4.214248] hub 2-0:1.0: USB hub found
[    4.214897] hub 2-0:1.0: 2 ports detected
[    4.217507] xhci_hcd 0000:0b:00.0: enabling bus mastering
[    4.217518] xhci_hcd 0000:0b:00.0: xHCI Host Controller
[    4.218187] xhci_hcd 0000:0b:00.0: new USB bus registered, assigned bus number 3
[    4.219103] xhci_hcd 0000:0b:00.0: enabling Mem-Wr-Inval
[    4.219252] xhci_hcd 0000:0b:00.0: irq 45 for MSI/MSI-X
[    4.219298] xhci_hcd 0000:0b:00.0: irq 46 for MSI/MSI-X
[    4.219928] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    4.220573] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.221227] usb usb3: Product: xHCI Host Controller
[    4.221863] usb usb3: Manufacturer: Linux 3.10.9-default-pciehp xhci_hcd
[    4.222497] usb usb3: SerialNumber: 0000:0b:00.0
[    4.223881] xHCI xhci_add_endpoint called for root hub
[    4.223883] xHCI xhci_check_bandwidth called for root hub
[    4.224280] hub 3-0:1.0: USB hub found
[    4.225002] hub 3-0:1.0: 2 ports detected
[    4.226582] xhci_hcd 0000:0b:00.0: xHCI Host Controller
[    4.227264] xhci_hcd 0000:0b:00.0: new USB bus registered, assigned bus number 4
[    4.228257] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    4.228906] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.229571] usb usb4: Product: xHCI Host Controller
[    4.230197] usb usb4: Manufacturer: Linux 3.10.9-default-pciehp xhci_hcd
[    4.230823] usb usb4: SerialNumber: 0000:0b:00.0
[    4.232302] xHCI xhci_add_endpoint called for root hub
[    4.232304] xHCI xhci_check_bandwidth called for root hub
[    4.232725] hub 4-0:1.0: USB hub found
[    4.233395] hub 4-0:1.0: 2 ports detected

[    4.502407] usb 1-1: new high-speed USB device number 2 using ehci-pci

[    4.651502] usb 1-1: New USB device found, idVendor=8087, idProduct=0024
[    4.653427] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.660393] hub 1-1:1.0: USB hub found
[    4.662666] hub 1-1:1.0: 6 ports detected
[    4.680892] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.790142] usb 2-1: new high-speed USB device number 2 using ehci-pci

[    4.944704] usb 2-1: New USB device found, idVendor=8087, idProduct=0024
[    4.946636] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.952259] hub 2-1:1.0: USB hub found
[    4.954455] hub 2-1:1.0: 8 ports detected


[    5.100550] usb 3-2: new high-speed USB device number 2 using xhci_hcd
[    5.123995] usb 3-2: New USB device found, idVendor=2109, idProduct=0811
[    5.125864] usb 3-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    5.127705] usb 3-2: Product: USB2.0 Hub
[    5.159101] hub 3-2:1.0: USB hub found
[    5.161643] hub 3-2:1.0: 4 ports detected
[    5.291321] usb 4-2: new SuperSpeed USB device number 2 using xhci_hcd
[    5.313219] usb 4-2: Parent hub missing LPM exit latency info.  Power management will be impacted.
[    5.319428] usb 4-2: New USB device found, idVendor=2109, idProduct=0811
[    5.321417] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.323353] usb 4-2: Product: 4-Port USB 3.0 Hub
[    5.325272] usb 4-2: Manufacturer: VIA Labs, Inc.

[    5.362122] hub 4-2:1.0: USB hub found
[    5.364465] hub 4-2:1.0: 4 ports detected


# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
    |__ Port 1: Dev 6, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 2: Dev 8, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 9, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
        |__ Port 2: Dev 10, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    |__ Port 1: Dev 7, If 0, Class=Hub, Driver=hub/4p, 480M
    |__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
        |__ Port 3: Dev 4, If 0, Class=Vendor Specific Class, Driver=, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 5: Dev 3, If 0, Class=Video, Driver=, 480M
        |__ Port 5: Dev 3, If 1, Class=Video, Driver=, 480M
#
# lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b5)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b5)
00:1c.7 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 8 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM67 Express Chipset Family LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
09:00.0 Network controller: Intel Corporation Centrino Wireless-N 1030 [Rainbow Peak] (rev 34)
0b:00.0 USB controller: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller (rev 02)



00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI])
        Subsystem: Dell Device 04b3
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f7f08000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
                AFCap: TP+ FLR+
                AFCtrl: FLR-
                AFStatus: TP-
        Kernel driver in use: ehci-pci


00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05) (prog-if 20 [EHCI])
        Subsystem: Dell Device 04b3
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 23
        Region 0: Memory at f7f07000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCI Advanced Features
                AFCap: TP+ FLR+
                AFCtrl: FLR-
                AFStatus: TP-
        Kernel driver in use: ehci-pci


0b:00.0 USB controller: Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller (rev 02) (prog-if 30 [XHCI])
        Subsystem: Dell Device 04b3
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at f7d00000 (64-bit, non-prefetchable) [size=64K]
        Region 2: Memory at f7d10000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=100mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [48] MSI: Enable- Count=1/8 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [70] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 1024 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <64us
                        ClockPM+ Surprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+, LTR-, OBFF Not Supported
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
                LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Capabilities: [c0] MSI-X: Enable+ Count=8 Masked-
                Vector table: BAR=2 offset=00000000
                PBA: BAR=2 offset=00001000
        Capabilities: [100 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
        Capabilities: [150 v1] Device Serial Number 08-00-28-00-00-20-00-00
        Kernel driver in use: xhci_hcd



Thank you,
Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux