qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Fwd: failed to add usb3.0 device


From: WANG Siyuan
Subject: [Qemu-devel] Fwd: failed to add usb3.0 device
Date: Sat, 7 Dec 2013 20:38:37 +0800

Hi,
I am failed to use host usb stick attached on usb 3.0 port.
qemu version is 1.7.0.
I attached usb2.0 disk and usb3.0 disk on usb3.0 port. Both are failed.
I use this command to add xhci and host usb disk:
-device nec-usb-xhci,id=xhci -device usb-host,bus=xhci.0,hostbus=3,hostaddr=18

Here is log file:

1) attach a usb2.0 disk to usb3.0 port:
$ lsusb
Bus 003 Device 016: ID 3538:0054 Power Quotient International Co., Ltd
Flash Drive (2GB)

$ ./x86_64-softmmu/qemu-system-x86_64 -serial stdio -bios
/home/siyuan/seabios/out/bios.bin -device nec-usb-xhci,id=xhci -device
usb-host,bus=xhci.0,hostbus=3,hostaddr=16 -hda
/home/siyuan/qemu_img/archlinux_x64.qcow2 -vga std

seabios out:
init usb
XHCI init on dev 00:04.0: regs @ 0xfebf0000, 8 ports, 64 slots
XHCI    protocol USB  2.00, 4 ports (offset 1)
XHCI    protocol USB  3.00, 4 ports (offset 5)
configure_xhci: resetting
xhci_hub_detect port #1: 0x00020ee1, powered, pls 7, speed 3 [High]
xhci_hub_reset port #1: 0x00020ee1, powered, pls 7, speed 3 [High]
libusbx: error [_open_sysfs_attr] open
/sys/bus/usb/devices/3-1/bConfigurationValue failed ret=-1 errno=2
libusbx: error [_get_usbfs_fd] libusbx couldn't open USB device
/dev/bus/usb/003/016: No such file or directory
WARNING - Timeout at wait_bit:494!
xhci_hub_detect port #2: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #3: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #4: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #5: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #6: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #7: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #8: 0x000202a0, powered, pls 5, speed 0 [ - ]
XHCI no devices found

2) attach a usb3.0 disk to usb3.0 port:

$ lsusb
Bus 004 Device 003: ID 1058:0730 Western Digital Technologies, Inc.

$ ./x86_64-softmmu/qemu-system-x86_64 -serial file:usb3.0_qemu1.7.0
-bios /home/siyuan/seabios/out/bios.bin -device nec-usb-xhci,id=xhci
-device usb-host,bus=xhci.0,hostbus=4,hostaddr=3 -hda
/home/siyuan/qemu_img/archlinux_x64.qcow2 -vga std

seabios out:
init usb
XHCI init on dev 00:04.0: regs @ 0xfebf0000, 8 ports, 64 slots
XHCI    protocol USB  2.00, 4 ports (offset 1)
XHCI    protocol USB  3.00, 4 ports (offset 5)
configure_xhci: resetting
xhci_hub_detect port #1: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #2: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #3: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #4: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #5: 0x00021203, powered, enabled, pls 0, speed 4 [Super]
XHCI port #5: 0x00021203, powered, enabled, pls 0, speed 4 [Super]
set_address 0x000eda90
xhci_alloc_pipe: usbdev 0x07fdd530, ring 0x07ffda00, slotid 0, epid 1
xhci_cmd_enable_slot:
xhci_trb_queue: ring 0x07ffdc00 [nidx 1, len 0]
xhci_process_events: ring 0x07ffdc00 [trb 0x07ffdc00, evt 0x07ffdd00,
type 33, eidx 1, cc 1]
xhci_control: enable slot: got slotid 1
xhci_control: root port 5, route 0x0
xhci_cmd_address_device: slotid 1
xhci_trb_queue: ring 0x07ffdc00 [nidx 2, len 0]
xhci_process_events: ring 0x07ffdc00 [trb 0x07ffdc10, evt 0x07ffdd00,
type 33, eidx 2, cc 1]
xhci_process_events: status change port #5
xhci_update_pipe: usbdev 0x07fdd530, ring 0x07ffda00, slotid 1, epid 1
config_usb: 0x07ffdb20
xhci_trb_queue: ring 0x07ffda00 [nidx 1, len 8]
xhci_trb_queue: ring 0x07ffda00 [nidx 2, len 8]
xhci_trb_queue: ring 0x07ffda00 [nidx 3, len 0]
xhci_xfer_kick: ring 0x07ffda00, slotid 1, epid 1
WARNING - Timeout at xhci_event_wait:404!
xhci_control: control xfer failed (cc -1)
xhci_cmd_disable_slot: slotid 1
xhci_trb_queue: ring 0x07ffdc00 [nidx 3, len 0]
xhci_process_events: ring 0x07ffdc00 [trb 0x07ffdc20, evt 0x07ffdd00,
type 33, eidx 3, cc 1]
xhci_hub_detect port #6: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #7: 0x000202a0, powered, pls 5, speed 0 [ - ]
xhci_hub_detect port #8: 0x000202a0, powered, pls 5, speed 0 [ - ]
XHCI no devices found

--
Yours sincerely,
WANG Siyuan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]