Hi everyone, I was wondering if there is any way to get USB2.0 Support working in Win7 domUs.. I tried the following: PCI-Passthrough of the USB-Hostcontroler: Works, but only gives me USB1.1-Speed (okay for mouse/keyboard, but trying to import 60GB of RAW-Photos from a vacation is kind of annoying ;) ) Using ''usb ='' in domU config: doesn''t work for me using vusb with attatching in config: doesn''t work for me using vusb with xm usb-attach: doesn''t work for me Something which might be notable: When using the vusb methods the usb devices show up correctly in xm usb-list so it seems that this works, but they don''t show up in the domU (win doesn''t find any new hardware) and the thing which is most odd to me is: they still work in the dom0. So if i attach my keyboard to the domU, i still can type in dom0 even though the keyboard is listed as assigned in xm usb-list for the domU. Any other options / ideas to get my card reader running? P.S.: Using current xen-testing & 3.4.2er Kernel
I use PCI Passthrough myself, seems to work fine. Data copy speeds are 11-15MB/sec so if that''s what you are getting that sounds about right. I also have a USB 3.0 controller, I get 60MB/sec on that, but unlike the USB 2.0 I had to install the drivers from the motherboard manufacturer to get them to function. Have you tried downloading your boards drivers and installing them for the USB 2.0 drives? On Thu, Jul 5, 2012 at 6:23 PM, Matthias <matthias.kannenberg@googlemail.com> wrote:> Hi everyone, > > I was wondering if there is any way to get USB2.0 Support working in > Win7 domUs.. > > I tried the following: > > PCI-Passthrough of the USB-Hostcontroler: Works, but only gives me > USB1.1-Speed (okay for mouse/keyboard, but trying to import 60GB of > RAW-Photos from a vacation is kind of annoying ;) ) > Using ''usb ='' in domU config: doesn''t work for me > using vusb with attatching in config: doesn''t work for me > using vusb with xm usb-attach: doesn''t work for me > > Something which might be notable: When using the vusb methods the usb > devices show up correctly in xm usb-list so it seems that this works, > but they don''t show up in the domU (win doesn''t find any new hardware) > and the thing which is most odd to me is: they still work in the dom0. > So if i attach my keyboard to the domU, i still can type in dom0 even > though the keyboard is listed as assigned in xm usb-list for the domU. > > Any other options / ideas to get my card reader running? > > P.S.: Using current xen-testing & 3.4.2er Kernel > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
This is interesting, because with my pci passthrough i only get USB1.1 speed which is about 1,5MB/s max (i actually get 0,9MB/s).. so this is a huge difference your results.. May i ask what kernel and xen you are using and if you are doing something unusual or different to the common way? I actually have a usb3 controller too, but i would like to keep it to the dom0 because i''m doing my server backups through it.. I have a Asus Crosshair IV and there are no actuall USB2 drivers for it.. :( 2012/7/6 Casey DeLorme <cdelorme@gmail.com>:> > I use PCI Passthrough myself, seems to work fine. Data copy speeds are > 11-15MB/sec so if that''s what you are getting that sounds about right. > > I also have a USB 3.0 controller, I get 60MB/sec on that, but unlike the USB > 2.0 I had to install the drivers from the motherboard manufacturer to get > them to function. > > Have you tried downloading your boards drivers and installing them for the > USB 2.0 drives? > > On Thu, Jul 5, 2012 at 6:23 PM, Matthias > <matthias.kannenberg@googlemail.com> wrote: >> >> Hi everyone, >> >> I was wondering if there is any way to get USB2.0 Support working in >> Win7 domUs.. >> >> I tried the following: >> >> PCI-Passthrough of the USB-Hostcontroler: Works, but only gives me >> USB1.1-Speed (okay for mouse/keyboard, but trying to import 60GB of >> RAW-Photos from a vacation is kind of annoying ;) ) >> Using ''usb ='' in domU config: doesn''t work for me >> using vusb with attatching in config: doesn''t work for me >> using vusb with xm usb-attach: doesn''t work for me >> >> Something which might be notable: When using the vusb methods the usb >> devices show up correctly in xm usb-list so it seems that this works, >> but they don''t show up in the domU (win doesn''t find any new hardware) >> and the thing which is most odd to me is: they still work in the dom0. >> So if i attach my keyboard to the domU, i still can type in dom0 even >> though the keyboard is listed as assigned in xm usb-list for the domU. >> >> Any other options / ideas to get my card reader running? >> >> P.S.: Using current xen-testing & 3.4.2er Kernel >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users > >
Not sure if I was doing anything uncommon in particular, but I did compile Kernel 3.3.0 for Xen with pciback built-in, and every other flag I could find. I was using Xen 4.2 unstable, revision somewhere within 100 of 25300~, compiled with UEFI source modifications (arch/x86/setup.c). My board is an ASRock Extreme4 Gen3, I have 2x USB 2.0 and 2x USB 3.0 controllers, so plenty of ports. For your situation, I would double check as I imagine your USB 2.0 drivers are part of the motherboard chipset download (since they are "onboard" aka part of the Motherboard Chipset). Worth a try. Alternatively you could always try late-binding for USB 3.0 this way when you are done you can give it back to Dom0. On Thu, Jul 5, 2012 at 6:54 PM, Matthias <matthias.kannenberg@googlemail.com> wrote:> This is interesting, because with my pci passthrough i only get USB1.1 > speed which is about 1,5MB/s max (i actually get 0,9MB/s).. so this is > a huge difference your results.. > > May i ask what kernel and xen you are using and if you are doing > something unusual or different to the common way? > > I actually have a usb3 controller too, but i would like to keep it to > the dom0 because i''m doing my server backups through it.. > > I have a Asus Crosshair IV and there are no actuall USB2 drivers for it.. > :( > > 2012/7/6 Casey DeLorme <cdelorme@gmail.com>: > > > > I use PCI Passthrough myself, seems to work fine. Data copy speeds are > > 11-15MB/sec so if that''s what you are getting that sounds about right. > > > > I also have a USB 3.0 controller, I get 60MB/sec on that, but unlike the > USB > > 2.0 I had to install the drivers from the motherboard manufacturer to get > > them to function. > > > > Have you tried downloading your boards drivers and installing them for > the > > USB 2.0 drives? > > > > On Thu, Jul 5, 2012 at 6:23 PM, Matthias > > <matthias.kannenberg@googlemail.com> wrote: > >> > >> Hi everyone, > >> > >> I was wondering if there is any way to get USB2.0 Support working in > >> Win7 domUs.. > >> > >> I tried the following: > >> > >> PCI-Passthrough of the USB-Hostcontroler: Works, but only gives me > >> USB1.1-Speed (okay for mouse/keyboard, but trying to import 60GB of > >> RAW-Photos from a vacation is kind of annoying ;) ) > >> Using ''usb ='' in domU config: doesn''t work for me > >> using vusb with attatching in config: doesn''t work for me > >> using vusb with xm usb-attach: doesn''t work for me > >> > >> Something which might be notable: When using the vusb methods the usb > >> devices show up correctly in xm usb-list so it seems that this works, > >> but they don''t show up in the domU (win doesn''t find any new hardware) > >> and the thing which is most odd to me is: they still work in the dom0. > >> So if i attach my keyboard to the domU, i still can type in dom0 even > >> though the keyboard is listed as assigned in xm usb-list for the domU. > >> > >> Any other options / ideas to get my card reader running? > >> > >> P.S.: Using current xen-testing & 3.4.2er Kernel > >> > >> _______________________________________________ > >> Xen-users mailing list > >> Xen-users@lists.xen.org > >> http://lists.xen.org/xen-users > > > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
2012/7/5 Casey DeLorme <cdelorme@gmail.com>> > I use PCI Passthrough myself, seems to work fine. Data copy speeds are > 11-15MB/sec so if that''s what you are getting that sounds about right. > > I also have a USB 3.0 controller, I get 60MB/sec on that, but unlike the > USB 2.0 I had to install the drivers from the motherboard manufacturer to > get them to function. > > Have you tried downloading your boards drivers and installing them for the > USB 2.0 drives? > > > On Thu, Jul 5, 2012 at 6:23 PM, Matthias < > matthias.kannenberg@googlemail.com> wrote: > >> Hi everyone, >> >> I was wondering if there is any way to get USB2.0 Support working in >> Win7 domUs.. >> >> I tried the following: >> >> PCI-Passthrough of the USB-Hostcontroler: Works, but only gives me >> USB1.1-Speed (okay for mouse/keyboard, but trying to import 60GB of >> RAW-Photos from a vacation is kind of annoying ;) ) >> Using ''usb ='' in domU config: doesn''t work for me >> using vusb with attatching in config: doesn''t work for me >> using vusb with xm usb-attach: doesn''t work for me >> >> Something which might be notable: When using the vusb methods the usb >> devices show up correctly in xm usb-list so it seems that this works, >> but they don''t show up in the domU (win doesn''t find any new hardware) >> and the thing which is most odd to me is: they still work in the dom0. >> So if i attach my keyboard to the domU, i still can type in dom0 even >> though the keyboard is listed as assigned in xm usb-list for the domU. >> >> Any other options / ideas to get my card reader running? >> >> P.S.: Using current xen-testing & 3.4.2er Kernel >> >> _______________________________________________ >> >Send us the result of "lsusb-v" and xm "usb-add xm DomU host: xxx: yyy", maybe you have something wrong .. I have not used intensively gplpv USB (do not remember speed), but if you walk with good performance, you could try XenPCIpassthrough. _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Tried different things with usb3.0 and 2.0 controller and 3.0 and 2.0 devices: 2.0 device on 2.0 controller: usb1.1 speed (0.9MB/s) 2.0 device on 3.0 controller: usb1.1 speed (0.9MB/s) 3.0 device on 3.0 controller: usb3 speed (80-90MB/s) 3.0 device on 2.0 controller: usb1.1 speed (0.9MB/s) (USB2 and USB3 Controller via pci-passthrough) something i found especially interesting is that usb2 devices on usb3 ports show up under the normal usb2 host controller, not the 3.0-one.. @Casey: Could you test if you get massively slower speed with usb2 devices on a usb3 port? Starting to think about getting me an USB3.0 Cardreader :/
I just tested my own suggestion with no changes in USB 2.0 speeds, however I did verify much greater speeds when running USB 2.0 External on my USB 3.0 drive port. If you visit your motherboard manufacturers web page, download their "INF" package, that contains the USB 2.0 drivers specific to your motherboards chipset. You can select the controllers from device manager and manually point to the files, this way you only load those specific drivers. Speed tests: USB 3.0 to 3.0 sustained 90MB/sec. USB 3.0 to USB 2.0 external sustained over 50MB/sec (forwards compatible USB 2.0? Seems absurdly speedy). USB 2.0 to USB 2.0 with default windows drivers sustained 13-15 MB/sec. This speed remained the same with the Motherboards drivers, but the devices are now listed under the same name as Linux identifies them (by their chipset). I hope this helps. On Thu, Jul 5, 2012 at 8:57 PM, Matthias <matthias.kannenberg@googlemail.com> wrote:> Tried different things with usb3.0 and 2.0 controller and 3.0 and 2.0 > devices: > > 2.0 device on 2.0 controller: usb1.1 speed (0.9MB/s) > 2.0 device on 3.0 controller: usb1.1 speed (0.9MB/s) > 3.0 device on 3.0 controller: usb3 speed (80-90MB/s) > 3.0 device on 2.0 controller: usb1.1 speed (0.9MB/s) > > (USB2 and USB3 Controller via pci-passthrough) > something i found especially interesting is that usb2 devices on usb3 > ports show up under the normal usb2 host controller, not the 3.0-one.. > > @Casey: Could you test if you get massively slower speed with usb2 > devices on a usb3 port? > > Starting to think about getting me an USB3.0 Cardreader :/ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Finally found the problem and was able to solve it! The hint actually was that my usb2.0 devices show up on the normal USB controller and not on the usb3.0 if i plug them in the usb3 port.. I then read a few background infos about how USB works and apparently USB controller are kind of stacked so an OHCI controller (USB1) may contain a EHCI controller (USB2) may contain a xHCI controller (USB3) and if a divice doesn''t work with one, it is passed down to the underlaying, slower one. This way i figured my initial problem is that my usb devices don''t reach the EHCI controller and were only served by the OHCI one.. Checked lspci: # lspci 00:00.0 Host bridge: Advanced Micro Devices [AMD] nee ATI RD890 Northbridge only single slot PCI-e GFX Hydra part (rev 02) 00:00.2 IOMMU: Advanced Micro Devices [AMD] nee ATI RD990 I/O Memory Management Unit (IOMMU) 00:02.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port B) 00:04.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port D) 00:06.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port F) 00:07.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (PCI express gpp port G) 00:0b.0 PCI bridge: Advanced Micro Devices [AMD] nee ATI RD890 PCI to PCI bridge (NB-SB link) 00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40) 00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller 00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller 00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller 00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller 00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 41) 00:14.1 IDE interface: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 IDE Controller (rev 40) 00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) (rev 40) 00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller (rev 40) 00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge (rev 40) 00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller 00:16.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller 00:16.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control 02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cedar PRO [Radeon HD 5450] 02:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Cedar HDMI Audio [Radeon HD 5400/6300 Series] 03:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03) 04:00.0 Ethernet controller: Marvell Technology Group Ltd. Yukon Optima 88E8059 [PCIe Gigabit Ethernet Controller with AVB] (rev 11) 05:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03) 05:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 03) 06:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Juniper [Radeon HD 5700 Series] 06:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Juniper HDMI Audio [Radeon HD 5700 Series] -> EHCIs are on 12.2, 13,2 and 16,2 Then I found out that I''m not actually passing them to my domU because despite I hide them at boot like the rest, they never actually show up on xm pci-list-assignable-devices. I then tried to pci-attach them anyway and came across the "non-page-aligned MMIO BAR" error. Thats why they didn''t show up in the first place. So i added "pciback.permissive ''pci=resource_alignment=00:12.2;00:13.2;00:16.2''" to my kernel config which finally did the trick.. EHCI controller show up as assignable devices and when assigned give me USB2.0 speed (arount 18MB/s like you). P.S.: if anyone has the same problem and wants to resource_align multiple devices, put the argument in single quotes like above. Otherwise the kernel will only interprete the first argument of pci=resource_alignment and ignore the rest because it treats the ; as a split operator and thinks the rest is a whole new argument resulting in dmesg messages that your devices aren''t arguments.