Hi Bin
<snip> > >> >> >> >> > Actually I have encountered enumeration random fail issue > >> >> >> >> > with an USB > >> >> >> >> > 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub > >> >> >> >> > Please see attached > >> >> >> >> snapshot for details. Fail rate is about 9/30. Not sure it's > >> >> >> >> relevant to SS hub patch or not yet. > >> >> >> >> >> > >> >> >> >> > >> >> >> >> Can you enable the -DDEBUG and send me the log? From the > >> >> >> >> last attachment, the enumeration process already failed when > >> >> >> >> getting device descriptor. Any subsequent op leads to the final > BUG/reset. > >> >> >> > > >> >> >> > I don't know where to add -DDEBUG in U-Boot Makefile, could > >> >> >> > you show > >> >> me? > >> >> >> > > >> >> >> > Anyway I've added DEBUG in file include/common.h and got some > >> >> >> > verbose log for you (seems not much in error point), pls see > >> >> >> > attached. Any further suggestion are welcome. > >> >> >> > >> >> >> Thanks for the log. Can you try to do the same testing on > >> >> >> u-boot-x86/xhci-wip branch to see if makes any difference? If > >> >> >> no, please > >> >> send the DEBUG log as well. > >> >> > > >> >> > Seems failure changed a little bit, and fail rate rise to ~100%. > >> >> > >> >> From your log, this time the failure is different. Somehow the USB > >> >> flash disk reports its speed is full speed but it should be super > >> >> speed, so xHCI cannot address it. I believe the hub handling logic > >> >> is still buggy in the U-Boot. Which hub are you using for testing? > >> > > >> > We are using an on-board USB 3.0 hub chip which contain a SS hub > >> > (USB5534B) and a HS hub (USB2134B). And I suspect there are > >> > difference on code base between u-boot-usb and u-boot-x86 specific > >> > branch which might lead to the result divers, I have tried them > >> > many times to confirm the difference failure is not a random failure, for > your reference. > >> > > >> > USB device tree: > >> > 1 Hub (5 Gb/s, 0mA) > >> > | U-Boot XHCI Host Controller > >> > | > >> > +-2 Hub (480 Mb/s, 0mA) > >> > | SMSC USB2134B > >> > | > >> > +-3 Hub (5 Gb/s, 0mA) > >> > | SMSC USB5534B > >> > | > >> > +-4 Mass Storage (5 Gb/s, 126mA) > >> > Kingston DataTraveler 3.0 08606E69C773BF1099650055 > >> > >> Which board are you using for testing? > > > > ls1021atwr > > > > I cannot reproduce the 100% unstable issue on top of u-boot-x86/xhci-working > on ls1021atwr board. Here is the log: > > U-Boot 2017.09-00019-g7c0347d (Sep 13 2017 - 11:08:36 +0800) > > CPU: Freescale LayerScape LS1021E, Version: 1.0, (0x87081110) > Clock Configuration: > CPU0(ARMV7):1000 MHz, > Bus:300 MHz, DDR:800 MHz (1600 MT/s data rate), Reset Configuration > Word (RCW): > 00000000: 0608000a 00000000 00000000 00000000 > 00000010: 20000000 00407900 e0025a00 21046000 > 00000020: 00000000 00000000 00000000 00038000 > 00000030: 00080000 881b7540 00000000 00000000 > > ... > > => usb start > starting USB... > USB0: Register 200017f NbrPorts 2 > Starting the controller > USB XHCI 1.00 > scanning bus 0 for devices... 4 USB Device(s) found > scanning usb for storage devices... 1 Storage Device(s) found => usb > tree > USB device tree: > 1 Hub (5 Gb/s, 0mA) > | U-Boot XHCI Host Controller > | > +-2 Hub (5 Gb/s, 0mA) > | | SMSC USB5534B > | | > | +-4 Mass Storage (5 Gb/s, 76mA) > | JetFlash Mass Storage Device 16Q6ZPH20GF3E8UQ > | > +-3 Hub (480 Mb/s, 0mA) > SMSC USB2134B Thanks for your test result share, I think this might be a USB compatible issue, which means the test results might differ with different devices I will try more devices to confirm this later. BR Ran _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot