Cancoipote n00b
Joined: 30 Sep 2016 Posts: 1
|
Posted: Fri Sep 30, 2016 9:51 am Post subject: Problem with usb management for Primesense Sensor on a Zotac |
|
|
Hi !
I have installed a Gentoo ( version 4.4.6 ) on a Zotac Magnus EN970 and use it to do some stuff with a Primesense Sensor.
The Zotac contains 2 x USB 3 in front face and 2 x USB 3 + 2 xUSB 2 in back face.
The Primesense is plugged on a USB 2 port.
When I used lspci -k I see 2 USB controllers (the first on xHCI for USB 3 and second on EHCI for USB 2)
Code: |
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
Subsystem: ZOTAC International (MCO) Ltd. Wildcat Point-LP USB xHCI Controller
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
Subsystem: ZOTAC International (MCO) Ltd. Wildcat Point-LP USB EHCI Controller
|
When I list my USB devices everytimes I plug any devices on a USB 2 port I see that he it used by the xHCI USB Controller :
lsusb
Code: |
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 8087:07dc Intel Corp.
Bus 002 Device 005: ID 1d27:0601 ASUS
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8001 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
|
lsusb -t
Code: |
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/11p, 480M
|__ Port 6: Dev 5, If 0, Class=Vendor Specific Class, Driver=, 480M
|__ Port 6: Dev 5, If 1, Class=Audio, Driver=snd-usb-audio, 480M
|__ Port 6: Dev 5, If 2, Class=Audio, Driver=snd-usb-audio, 480M
|__ Port 7: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 7: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
|
dmesg
Code: |
[ 8475.868359] usb 2-2: USB disconnect, device number 2
[ 8628.394484] usb 2-6: USB disconnect, device number 5
[ 8631.799770] usb 2-6: new high-speed USB device number 6 using xhci_hcd
[ 8631.969565] usb 2-6: New USB device found, idVendor=1d27, idProduct=0601
[ 8631.969568] usb 2-6: New USB device strings: Mfr=5, Product=4, SerialNumber=0
[ 8631.969570] usb 2-6: Product: PrimeSense Device
[ 8631.969572] usb 2-6: Manufacturer: PrimeSense
[ 8632.179025] usb 2-6: Warning! Unlikely big volume range (=4181), cval->res is probably wrong.
[ 8632.179029] usb 2-6: [3] FU [Mic Capture Volume] ch = 2, val = 0/12544/3
[ 8632.182325] usb 2-6: Warning! Unlikely big volume range (=4181), cval->res is probably wrong.
[ 8632.182329] usb 2-6: [3] FU [Mic Capture Volume] ch = 1, val = 0/12544/3
|
I really do not understand if I have kernel configuration issue or if its a hardware issue..
Kernel configuration : http://pastebin.com/9g5GkuFQ
In Fact it's not a big problem because I can still used the primesense, but sometimes the Primesense do strange stuff, so I need to reset the USB port.
To do this, I play with /sys/bus/pci/drivers/xhci_hcd/(bind/unbind) and frequently when I do this, my USB controller can't initialize the Primesense :
dmesg
Code: |
[16957.076381] xhci_hcd 0000:00:14.0: Command completion event does not match command
[16957.076385] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[16962.293734] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[16962.494771] usb 2-3: device not accepting address 7, error -62
[16962.494798] usb usb2-port3: unable to enumerate USB device
[16962.647787] usb 2-6: new high-speed USB device number 8 using xhci_hcd
[16972.814390] usb 2-6: device descriptor read/all, error -110
[16972.967334] usb 2-6: new high-speed USB device number 9 using xhci_hcd
[16983.133922] usb 2-6: device descriptor read/all, error -110
[16983.286993] usb 2-6: new high-speed USB device number 10 using xhci_hcd
[16988.299270] usb 2-6: device descriptor read/8, error -110
[16993.412552] usb 2-6: device descriptor read/8, error -110
[16993.666593] usb 2-6: new high-speed USB device number 11 using xhci_hcd
[16998.678862] usb 2-6: device descriptor read/8, error -110
[17003.792152] usb 2-6: device descriptor read/8, error -110
[17003.893172] usb usb2-port6: unable to enumerate USB device
|
And when I have this message I have to unplug and plug the Primesense manually to restart it.
I think that is an xHCI issue because with an other computer which attached the Primesense correctly on the eHCI controller I have no error when I play with /sys/bus/pci/drivers/ehci_hcd/(bind/unbind).
I really hope that I have clearly explain my issue, and thanks in advance for any answers/explications. |
|