hi, Kevin, I am debugging the coreboot on AMD board.
I found if a device is populated on USB 3.0 port during system power up, the USB3.0 function fail after OS boot up. If a USB 2.0 device is plugged, the port is OK. Can you take a look at this?
Here is the debug message. ------------ SeaBIOS (version rel-1.8.0-26-g92f9b91-dirty-20150805_022528-supersrv) XHCI init on dev 00:10.0: regs @ 0xf0b8a000, 8 ports, 32 slots, 32 byte contexts XHCI extcap 0x1 @ f0b8a500 XHCI protocol USB 3.00, 4 ports (offset 1), def 0 XHCI protocol USB 2.00, 4 ports (offset 5), def 18 XHCI extcap 0xa @ f0b8a540 configure_xhci: resetting configure_xhci: setup 8 scratch pad buffers xhci_hub_reset port #5: 0x000202e1, powered, pls 7, speed 0 [ - ] XHCI port #5: 0x00200e03, powered, enabled, pls 0, speed 3 [High] xhci_alloc_pipe: usbdev 0xbff52960, ring 0xbff9e900, slotid 0, epid 1 xhci_cmd_enable_slot: xhci_trb_queue: ring 0xbff9ed00 [nidx 1, len 0] xhci_process_events: status change port #5 xhci_process_events: status change port #1 xhci_process_events: status change port #5 xhci_process_events: ring 0xbff9ed00 [trb 0xbff9ed00, evt 0xbff9ee00, type 33, eidx 1, cc 1] xhci_alloc_pipe: enable slot: got slotid 1 xhci_cmd_address_device: slotid 1 xhci_trb_queue: ring 0xbff9ed00 [nidx 2, len 0] WARNING - Timeout at xhci_event_wait:692! xhci_alloc_pipe: address device: failed (cc -1) XHCI no devices found WARNING - Timeout at wait_bit:310!
Joe
On Wed, Aug 05, 2015 at 07:40:50AM +0000, Zheng Bao wrote:
hi, Kevin, I am debugging the coreboot on AMD board.
I found if a device is populated on USB 3.0 port during system power up, the USB3.0 function fail after OS boot up. If a USB 2.0 device is plugged, the port is OK. Can you take a look at this?
What board is this, what USB3 controller is it, and what USB3 device did the problem occur with? Does the problem occur with multiple/all USB3 devices or just one?
-Kevin
Board: Bettong USB3 controller: Hudson on Carrizo USB3 device: Seagate USB hard drive. That is the only USB 3.0 device I can get.
Joe
Date: Wed, 5 Aug 2015 06:25:13 -0400 From: kevin@koconnor.net To: fishbaoz@hotmail.com CC: seabios@seabios.org Subject: Re: [SeaBIOS]: USB 3.0 port failed if a USB 3.0 device is attached when power up
On Wed, Aug 05, 2015 at 07:40:50AM +0000, Zheng Bao wrote:
hi, Kevin, I am debugging the coreboot on AMD board.
I found if a device is populated on USB 3.0 port during system power up, the USB3.0 function fail after OS boot up. If a USB 2.0 device is plugged, the port is OK. Can you take a look at this?
What board is this, what USB3 controller is it, and what USB3 device did the problem occur with? Does the problem occur with multiple/all USB3 devices or just one?
-Kevin
On Thu, Aug 06, 2015 at 11:51:04AM +0000, Zheng Bao wrote:
Board: Bettong USB3 controller: Hudson on Carrizo USB3 device: Seagate USB hard drive. That is the only USB 3.0 device I can get.
Thanks. The problem looks very similar to one reported in the past by Idwer. Unfortunately, Idwer also didn't have access to any other USB3 devices - that would have been a great test to see if the quirky behavior was due to the controller or due to the device.
Can you provide the output from "lspci", "lsusb", and "lsusb -t".
-Kevin
Joe
Date: Wed, 5 Aug 2015 06:25:13 -0400 From: kevin@koconnor.net To: fishbaoz@hotmail.com CC: seabios@seabios.org Subject: Re: [SeaBIOS]: USB 3.0 port failed if a USB 3.0 device is attached when power up
On Wed, Aug 05, 2015 at 07:40:50AM +0000, Zheng Bao wrote:
hi, Kevin, I am debugging the coreboot on AMD board.
I found if a device is populated on USB 3.0 port during system power up, the USB3.0 function fail after OS boot up. If a USB 2.0 device is plugged, the port is OK. Can you take a look at this?
What board is this, what USB3 controller is it, and what USB3 device did the problem occur with? Does the problem occur with multiple/all USB3 devices or just one?
-Kevin
2015-08-07 23:21 GMT+02:00 Kevin O'Connor kevin@koconnor.net:
On Thu, Aug 06, 2015 at 11:51:04AM +0000, Zheng Bao wrote:
Board: Bettong USB3 controller: Hudson on Carrizo USB3 device: Seagate USB hard drive. That is the only USB 3.0 device I can get.
Thanks. The problem looks very similar to one reported in the past by Idwer. Unfortunately, Idwer also didn't have access to any other USB3 devices - that would have been a great test to see if the quirky behavior was due to the controller or due to the device.
The board I have is an Hudson-D4? board, ASUS F2A85-M with the lspci ID: 00:10.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller [1022:7812] (rev 03) 00:10.1 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller [1022:7812] (rev 03)
Zheng, can you recompile SeaBIOS with CONFIG_THREADS=y and CONFIG_DEBUG_LEVEL=2 and try booting off the superspeed device you're using? The experience I had was that, with those settings, this superspeed SATA dock showed up in the device menu (press ESCape).
If that won't make the device show up - be sure to post that cbmem/console output - change USB_TIME_SIGATT in src/hw/usb.h to at least 1000.
HTH,
Idwer
Can you provide the output from "lspci", "lsusb", and "lsusb -t".
-Kevin
Joe
Date: Wed, 5 Aug 2015 06:25:13 -0400 From: kevin@koconnor.net To: fishbaoz@hotmail.com CC: seabios@seabios.org Subject: Re: [SeaBIOS]: USB 3.0 port failed if a USB 3.0 device is attached when power up
On Wed, Aug 05, 2015 at 07:40:50AM +0000, Zheng Bao wrote:
hi, Kevin, I am debugging the coreboot on AMD board.
I found if a device is populated on USB 3.0 port during system power up, the USB3.0 function fail after OS boot up. If a USB 2.0 device is plugged, the port is OK. Can you take a look at this?
What board is this, what USB3 controller is it, and what USB3 device did the problem occur with? Does the problem occur with multiple/all USB3 devices or just one?
-Kevin