OK.
I own a Renesas PCI-Card that offers 4 USB3-Ports and that worked well
with Linux-Kernels up to 4.8. Beginning with kernel 4.9 it was not
correctly initialized anymore and the problem still persists with
kernel 4.16.2 that I have recently tested.
After a failed start the PCI-situation looks like this:
lspci -vv:
08:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0
Host Controller (rev ff) (prog-if ff)
!!! Unknown header type 7f
Kernel modules: xhci_pci
While after a correct start with kernel 4.1.43 it looks like this:
08:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0
Host Controller (rev 03) (prog-if 30 [XHCI])
Subsystem: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller
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: 32 bytes
Interrupt: pin A routed to IRQ 17
Region 0: Memory at f7ffe000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [50] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0+,D1-,D2-,D3hot+,D3cold-)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [90] MSI-X: Enable+ Count=8 Masked-
Vector table: BAR=0 offset=00001000
PBA: BAR=0 offset=00001080
Capabilities: [a0] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s
unlimited, L1 unlimited
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+
FLReset- SlotPowerLimit 0.000W
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,
Exit Latency L0s <4us, L1 unlimited
ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train-
SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Not Supported,
TimeoutDis+, LTR+, OBFF Not Supported
AtomicOpsCap: 32bit- 64bit- 128bitCAS-
DevCtl2: Completion Timeout: 50us to 50ms,
TimeoutDis-, LTR-, OBFF Disabled
AtomicOpsCtl: ReqEn-
LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range,
EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -3.5dB,
EqualizationComplete-, EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-,
LinkEqualizationRequest-
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
A dmesg of a failed start looks like this (kernel 4.16.2):
[ 5.830809] 3ware 9000 Storage Controller device driver for Linux
v2.26.02.014.
[ 5.865021] Adaptec aacraid driver 1.2.1[50877]-custom
[ 5.875015] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16
00:01:03 EST 2006)
[ 5.876503] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006)
[ 5.882199] megasas: 07.704.04.00-rc1
[ 5.897111] qla2xxx [0000:00:00.0]-0005: : QLogic Fibre Channel HBA
Driver: 10.00.00.05-k.
[ 5.913090] Emulex LightPulse Fibre Channel SCSI driver 11.4.0.6
[ 5.913091] Copyright (C) 2017 Broadcom. All Rights Reserved. The
term "Broadcom" refers to Broadcom Limited and/or its subsidiaries.
[ 5.921191] aic94xx: Adaptec aic94xx SAS/SATA driver version 1.0.3 loaded
[ 5.934061] mpt3sas version 17.100.00.00 loaded
[ 5.980214] usb-storage 2-1.7:1.0: USB Mass Storage device detected
[ 5.980291] scsi host11: usb-storage 2-1.7:1.0
[ 5.980366] usbcore: registered new interface driver usb-storage
[ 6.013120] xhci_hcd 0000:08:00.0: Resetting
[ 6.073458] hrtimer: interrupt took 39229608 ns
[ 7.001257] xhci_hcd 0000:08:00.0: timed out waiting for pending
transaction; performing function level reset anyway
[ 7.055139] scsi 11:0:0:0: Direct-Access TEAC FD-05PUW
3000 PQ: 0 ANSI: 0 CCS
[ 7.055433] sd 11:0:0:0: Attached scsi generic sg8 type 0
[ 7.087083] sd 11:0:0:0: Power-on or device reset occurred
[ 7.151121] sd 11:0:0:0: [sdg] Attached SCSI removable disk
[ 8.297249] xhci_hcd 0000:08:00.0: not ready 1123ms after FLR; waiting
[ 9.385239] xhci_hcd 0000:08:00.0: not ready 2147ms after FLR; waiting
[ 11.497251] xhci_hcd 0000:08:00.0: not ready 4195ms after FLR; waiting
[ 15.849264] xhci_hcd 0000:08:00.0: not ready 8291ms after FLR; waiting
[ 24.553223] xhci_hcd 0000:08:00.0: not ready 16483ms after FLR; waiting
[ 41.449215] xhci_hcd 0000:08:00.0: not ready 32867ms after FLR; waiting
[ 74.729236] xhci_hcd 0000:08:00.0: not ready 65635ms after FLR; giving up
[ 74.819729] CE: hpet7 increased min_delta_ns to 20115 nsec
[ 75.012202] xhci_hcd 0000:08:00.0: Refused to change power state,
currently in D3
[ 75.062555] xhci_hcd 0000:08:00.0: xHCI Host Controller
[ 75.062611] xhci_hcd 0000:08:00.0: new USB bus registered, assigned
bus number 3
[ 75.213420] xhci_hcd 0000:08:00.0: Host halt failed, -19
[ 75.213422] xhci_hcd 0000:08:00.0: can't setup: -19
[ 75.213424] xhci_hcd 0000:08:00.0: USB bus 3 deregistered
[ 75.233630] xhci_hcd 0000:08:00.0: init 0000:08:00.0 fail, -19
[ 75.438438] device-mapper: uevent: version 1.0.3
[ 75.438533] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20)
initialised: dm...
[ 75.470561] xor: measuring software checksum speed
[ 75.480030] prefetch64-sse: 11800.000 MB/sec
Sincerely,
Stefan Kalis
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html