Re: Renesas uPD720202 USB 3.0

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

 



On 16.05.2018 20:38, Christian Brauns wrote:

Hi

I'm running 4.16.8-1-ARCH and that controller does not work, whereas I remember it was working sometime before.

Now I'm travelling, don't have the controller with me, especially because it does not work anymore.

This is what a part of dmesg looked like in 4.16.8-1-ARCH:

____________________
[  103.911001] e1000e 0000:00:19.0: Some CPU C-states have been disabled in order to enable jumbo frames
[  124.510436] pci 0000:05:00.0: [1912:0015] type 00 class 0x0c0330
[  124.510548] pci 0000:05:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[  124.510949] pci 0000:05:00.0: PME# supported from D0 D3hot D3cold
[  124.520156] pci 0000:05:00.0: BAR 0: assigned [mem 0xf1c00000-0xf1c01fff 64bit]
[  124.520220] pci 0000:05:00.0: enabling device (0000 -> 0002)
[  124.536237] xhci_hcd 0000:05:00.0: Resetting
[  125.968432] xhci_hcd 0000:05:00.0: xHCI Host Controller
[  125.968439] xhci_hcd 0000:05:00.0: new USB bus registered, assigned bus number 3
[  125.973722] xhci_hcd 0000:05:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x00000090
[  125.974199] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[  125.974201] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  125.974202] usb usb3: Product: xHCI Host Controller
[  125.974204] usb usb3: Manufacturer: Linux 4.16.8-1-ARCH xhci-hcd
[  125.974205] usb usb3: SerialNumber: 0000:05:00.0
[  125.974357] hub 3-0:1.0: USB hub found
[  125.974420] hub 3-0:1.0: 2 ports detected
[  125.974569] xhci_hcd 0000:05:00.0: xHCI Host Controller
[  125.974573] xhci_hcd 0000:05:00.0: new USB bus registered, assigned bus number 4
[  125.977237] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[  125.977272] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[  125.977274] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  125.977276] usb usb4: Product: xHCI Host Controller
[  125.977277] usb usb4: Manufacturer: Linux 4.16.8-1-ARCH xhci-hcd
[  125.977279] usb usb4: SerialNumber: 0000:05:00.0
[  125.977416] hub 4-0:1.0: USB hub found
[  125.977479] hub 4-0:1.0: 2 ports detected
[  126.566269] xhci_hcd 0000:05:00.0: xHCI host controller not responding, assume dead
[  126.566322] xhci_hcd 0000:05:00.0: HC died; cleaning up
[  126.914313] usb usb3-port1: couldn't allocate usb_device
[  126.914362] usb usb4-port1: couldn't allocate usb_device
[  127.414926] xhci_hcd 0000:05:00.0: remove, state 1
[  127.414933] usb usb4: USB disconnect, device number 1
[  127.415106] xhci_hcd 0000:05:00.0: USB bus 4 deregistered
[  127.415110] xhci_hcd 0000:05:00.0: remove, state 1
[  127.415114] usb usb3: USB disconnect, device number 1
[  127.415282] xhci_hcd 0000:05:00.0: Host halt failed, -19
[  127.415288] xhci_hcd 0000:05:00.0: Host not accessible, reset failed.
[  127.415525] xhci_hcd 0000:05:00.0: USB bus 3 deregistered
[  127.520610] pci 0000:05:00.0: [1912:0015] type 00 class 0x0c0330
[  127.520740] pci 0000:05:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[  127.521183] pci 0000:05:00.0: PME# supported from D0 D3hot D3cold
[  127.530190] pci 0000:05:00.0: BAR 0: assigned [mem 0xf1c00000-0xf1c01fff 64bit]
[  127.530261] pci 0000:05:00.0: enabling device (0000 -> 0002)
[  127.530733] xhci_hcd 0000:05:00.0: Resetting
[  128.955196] xhci_hcd 0000:05:00.0: xHCI Host Controller
[  128.955202] xhci_hcd 0000:05:00.0: new USB bus registered, assigned bus number 3
[  128.960487] xhci_hcd 0000:05:00.0: hcc params 0x014051cf hci version 0x100 quirks 0x00000090
[  128.960931] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[  128.960933] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  128.960934] usb usb3: Product: xHCI Host Controller
[  128.960935] usb usb3: Manufacturer: Linux 4.16.8-1-ARCH xhci-hcd
[  128.960936] usb usb3: SerialNumber: 0000:05:00.0
[  128.961054] hub 3-0:1.0: USB hub found
[  128.961111] hub 3-0:1.0: 2 ports detected
[  128.961208] xhci_hcd 0000:05:00.0: xHCI Host Controller
[  128.961211] xhci_hcd 0000:05:00.0: new USB bus registered, assigned bus number 4
[  128.964011] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[  128.964043] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[  128.964046] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[  128.964048] usb usb4: Product: xHCI Host Controller
[  128.964049] usb usb4: Manufacturer: Linux 4.16.8-1-ARCH xhci-hcd
[  128.964051] usb usb4: SerialNumber: 0000:05:00.0
[  128.964213] hub 4-0:1.0: USB hub found
[  128.964276] hub 4-0:1.0: 2 ports detected
[  129.554923] xhci_hcd 0000:05:00.0: xHCI host controller not responding, assume dead
[  129.554979] xhci_hcd 0000:05:00.0: HC died; cleaning up
[  129.900959] usb usb3-port1: couldn't allocate usb_device
[  129.901008] usb usb4-port1: couldn't allocate usb_device

For kernel 4.13.1-1-ARCH I have a similar output here, saved from the testing I did.

 From the archlinux forum I got adviced to try older kernels, and to look for last the kernelversion in which
that controller still was working. That's why I was using the gcc8 in 4.12.y.


The patch you reverted to get things working does a pci reset function of the Renesas
xHCI controller in probe
8466489 xhci: Reset Renesas uPD72020x USB controller for 32-bit DMA issue

The message: "xhci_hcd 0000:05:00.0: xHCI host controller not responding, assume dead"
indicates that a 0xffffffff was read from the xHCI registers, so I'm guessing the
pci_reset_function_locked() didn't quite finish yet, or we don't get sane values from
the controller for some other reason..

There are others who have issues with this patch, I think Marc Zyngier has been looking
at some alternate approach

-Mathias

(thread had top posting, keeping rest of message for reference)


On Wed, 16 May 2018 08:00:36 +0200
Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> wrote:

On Wed, May 16, 2018 at 07:16:26AM +0200, Christian Brauns wrote:
Hi,

I'm not used to writing bug-reports.

From: https://bbs.archlinux.org/viewtopic.php?id=236806, I got adviced to do that.

I have an usb 3 controller laptop expresscard
Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)
using that in a Lenovo X220 which does not work with the latest kernels.
In a Lenovo R400 it works.

After some testing, I came to the result, that
it was still working in kernel 4.12.7, and stopped working in kernel 4.12.8.

And with some advice and further testing it produces the same (working) results in
kernel 4.12.8 with 0e1f0eaed6c20db41ff61e024b361ee3ec9d686c reverted.

(

git checkout v4.12.8
git revert 0e1f0eaed6c20db41ff61e024b361ee3ec9d686c #revert the noted commit
git cherry-pick 854e55ad289ef8888e7991f0ada85d5846f5afb9 #cherry-pick a commit needed to build with gcc 8
git cherry-pick ad343a98e74e85aa91d844310e797f96fee6983b
)

There is a post from someone else regarding this controller at:
https://unix.stackexchange.com/questions/440741/install-usb-3-0-express-card-under-linux-arch-linux-tried-adding-kernel-param
who made a bug report here:
https://bugzilla.kernel.org/show_bug.cgi?id=199627


I don't understand, the 4.12.y kernel tree is long end-of-life, why are
you using that one?  Does 4.16 work?  4.14.y?

Why are you using gcc8 on 4.12.y anyway, that is not going to work for
you very well, it barely, if at all, works on Linus's latest tree.

thanks,

greg k-h



--
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