On 21.05.2017 23:03, Xavier . wrote:
Hello. I have one problem with chip Renesas uPD720202 (card Startech PCIUSB3S22). In Windows XP run fine, very fine, but in GNU/Linux kernel does not receive any USB3.0 plug/unplug events, why? No usb device is recognized, it is as if the card had nothing connected. I have tried the following kernels: Linux version 4.12.0-041200rc1-generic (kernel@gomeisa) (gcc version 6.3.0 20170510 (Ubuntu 6.3.0-17ubuntu1) ) #201705131731 SMP Sat May 13 21:48:41 UTC 2017 Linux version 4.11.1-041101-generic (kernel@tangerine) (gcc version 6.3.0 20170510 (Ubuntu 6.3.0-17ubuntu1) ) #201705140931 SMP Sun May 14 13:50:33 UTC 2017 In no case kernel does not receive any USB plug/unplug events The card firmware is the latest (2026) and is well installed. My machine is very old: P3 1Ghz on ASUS P3B-F but run fine Xavier. Thanks dmesg.4.12-rc1.with_pendrive_connected_at_boot: [ 3.762590] xhci_hcd 0000:02:00.0: xHCI Host Controller [ 3.762612] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2 [ 4.014404] xhci_hcd 0000:02:00.0: Host halt failed, -19 [ 4.014410] xhci_hcd 0000:02:00.0: can't setup: -19 [ 4.015145] ata1.00: ATAPI: HL-DT-ST RW/DVD GCC-4521B, 1.07, max UDMA/33 [ 4.015414] ata2: port disabled--ignoring [ 4.015774] xhci_hcd 0000:02:00.0: USB bus 2 deregistered [ 4.036586] xhci_hcd 0000:02:00.0: init 0000:02:00.0 fail, -19
host halt failed -19 (ENODEV), we are reading 0xffffffff from the status register which is located at xhci MMIO base + CAPLENGTH + 0x04
lspci.4.12-rc1 02:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02) (prog-if 30 [XHCI]) Subsystem: Renesas Technology Corp. uPD720202 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 11 Region 0: Memory at b5000000 (64-bit, non-prefetchable) [size=8K]
8k looks small
Capabilities: [50] Power Management version 3 Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA 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
MSI not capable MSIX ok /proc/ionterrupts showed two xhci entries: 16: 0 PCI-MSI-edge xhci_hcd 17: 0 PCI-MSI-edge xhci_hcd Does xhci dynamic debug show anything during boot? add to kernel cmdline: dyndbg='module xhci_hcd +p' -Mathias -- 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