Re: getting around "Max number of devices this xHCI host supports is 32" limit

2019-01-13 Thread Marc MERLIN
On Mon, Dec 31, 2018 at 12:34:31PM -0500, Alan Stern wrote: > > Just a small addition, many Intel xHCI controllers now support 64 devices. > > > > It's possible to get the max device slots xHCI hardware supports from a xHC > > register. > > (bits 7:0 of the HCSPARAMS1 capability register) > >

Re: getting around "Max number of devices this xHCI host supports is 32" limit

2018-12-20 Thread Marc MERLIN
On Mon, Dec 17, 2018 at 09:45:44PM -0800, Marc MERLIN wrote: > On Mon, Dec 17, 2018 at 10:52:57AM -0500, Alan Stern wrote: > > > Point taken. I think I was thinking about USB ports that were routed to > > > either a xHCI or an EHCI chip depending on what's plugged into th

Re: getting around "Max number of devices this xHCI host supports is 32" limit

2018-12-17 Thread Marc MERLIN
On Mon, Dec 17, 2018 at 10:52:57AM -0500, Alan Stern wrote: > > Point taken. I think I was thinking about USB ports that were routed to > > either a xHCI or an EHCI chip depending on what's plugged into them, but > > seems that I didn't quite understand how that worked. > > It varies. For example

Re: getting around "Max number of devices this xHCI host supports is 32" limit

2018-12-16 Thread Marc MERLIN
Thanks for your reply, and thanks for bearing with me, I'm not actually that knowledgeable on how things work with multiple USB controllers at the same time. I have a few questions I've outlined. Question #1, if I have a random computer that outputs this: Bus 002 Device 001: ID 1d6b:0003 Linux Fo

Re: getting around "Max number of devices this xHCI host supports is 32" limit

2018-12-15 Thread Marc MERLIN
TL;DR: can I reasonably turn off xhci support on the linux side? https://superuser.com/questions/731751/not-enough-host-controller-resources-for-new-device-state seems to say no "The xchi module always ended up loaded, even if blacklisted, presumably to handle internal hardware. Didn't investigate

Re: getting around "Max number of devices this xHCI host supports is 32" limit

2018-12-15 Thread Marc MERLIN
On Sat, Dec 15, 2018 at 10:55:49AM -0500, Alan Stern wrote: > > Does it mean that I should indeed have 2 separate USB controllers for > > USB-2 if I know where to tap and therefore should have a 64 device limit > > if I spread the load? > > EHCI is not subject to the 32-device limit of xHCI. A si

Re: getting around "Max number of devices this xHCI host supports is 32" limit

2018-12-15 Thread Marc MERLIN
Hi Greg, On Sat, Dec 15, 2018 at 08:59:45AM +0100, Greg KH wrote: > > How do I know whether a PCI USB card I'm buying is a "discrete USB > > controller" as per how it's used in that sentence? > > If the PCI card has a USB host controller on it. I think almost anyone > you buy will be like that.

getting around "Max number of devices this xHCI host supports is 32" limit

2018-12-14 Thread Marc MERLIN
Howdy, Kernel 4.14, although it's not kernel specific and a known limit. I'm having problem supporting device testing on a server because each device them requires 2 USB ports (one fastboot, one serial console). I can't really go past 16 per server, because I hit this: [ 166.159608] xhci_hcd 00

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-08 Thread Marc MERLIN
On Sun, Feb 07, 2016 at 06:11:22PM -0800, Greg Kroah-Hartman wrote: > I think you are going to get the same reaction from them, as they are > going to point to the block layer above them that sends all of the data > to them. > > Then the block layer is going to point to the file system, and they a

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-07 Thread Marc MERLIN
On Sun, Feb 07, 2016 at 05:04:04PM -0800, Greg Kroah-Hartman wrote: > On Sun, Feb 07, 2016 at 04:50:00PM -0800, Marc MERLIN wrote: > > > > Is the way sync/async is treated inside usb-storage, some other USB > > module, or outside of the usb stack altogether? > > Outsid

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-07 Thread Marc MERLIN
On Sun, Feb 07, 2016 at 12:19:06PM -0500, Alan Stern wrote: > On Sat, 6 Feb 2016, Oliver Neukum wrote: > > > > In theory, the copy command in Windows shouldn't need to wait either. > > > But then you'd run into trouble if you unplugged the USB device without > > > first clicking on the "Safely

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-05 Thread Marc MERLIN
On Fri, Feb 05, 2016 at 04:11:17PM -0500, Alan Stern wrote: > On Fri, 5 Feb 2016, Marc MERLIN wrote: > > > The thing is async isn't great either. > > I hate to say, but windows does this right, linux does not as far as I > > can tell. > > When a windows copy is

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-05 Thread Marc MERLIN
On Fri, Feb 05, 2016 at 12:27:25PM -0800, Greg Kroah-Hartman wrote: > > This goes back to 23MB/s (size/time), which is proper speed. > > I also verified that this time the LED wasn't flashing after unmount. > > Great, so all is good now? > > > > Still, it's a more appropriate value, indicating th

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-04 Thread Marc MERLIN
On Thu, Feb 04, 2016 at 09:49:22AM +0100, Oliver Neukum wrote: > On Wed, 2016-02-03 at 22:20 -0800, Marc MERLIN wrote: > > > But the main point remains that default mount options and default cp > > work at horrible speed. I'm happy to try stuff to get around that > &

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-03 Thread Marc MERLIN
On Wed, Feb 03, 2016 at 09:05:26PM -0800, Greg Kroah-Hartman wrote: > > Still, you're likely on the right track, something seems to wait for > > each write to proceed before sending the next one. > > What are you using to copy files? midnight commander, or straight cp, only copying one big file,

Re: Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-03 Thread Marc MERLIN
Hi Greg, Thanks for your quick reply. On Wed, Feb 03, 2016 at 07:07:45PM -0800, Greg Kroah-Hartman wrote: > > Note that I have this problem with all USB sticks, not just this one > > stick. > > What filesystem, vfat? What is the mount options you use for it? Try oops, forgot that: /dev/sdc1 o

Writing to USB3 memory stick with 4.4 is 52 times slower than Win7 inside virtualbox

2016-02-03 Thread Marc MERLIN
Thinkpad T540p, kernel 4.4. Writing a big file goes at an attrocious 440KB/s Starting win7 in virtualbox on the same laptop, mounting the same stick and doing the same copy, writes the same file at 23MB/s Reading the file in virtualbox goes at 30MB/s Reading the file in linux goes at 36MB/s (afte

Re: Disk access keeps causing serial/USB failures?

2015-05-28 Thread Marc MERLIN
On Tue, May 19, 2015 at 10:56:39AM -0700, Marc MERLIN wrote: > On Tue, May 19, 2015 at 01:21:30PM -0400, Alan Stern wrote: > > This strongly suggests that the problem lies in the hubs (or in one of > > them). Something caused a hub to disconnect, and when that happened > &

Re: Disk access keeps causing serial/USB failures?

2015-05-19 Thread Marc MERLIN
On Tue, May 19, 2015 at 01:21:30PM -0400, Alan Stern wrote: > This strongly suggests that the problem lies in the hubs (or in one of > them). Something caused a hub to disconnect, and when that happened > all of the serial ports downstream from that hub went along for the > ride. Hi Alan, than

Re: Did USB slowly kill/hang my kernel? (3.12.7)

2014-02-15 Thread Marc MERLIN
On Sat, Feb 15, 2014 at 05:45:54PM -0500, Alan Stern wrote: > On Sat, 15 Feb 2014, Marc MERLIN wrote: > > > I found that my server at home, after months of runtime, hung and found > > the following on the serial console. Interestingly, the software watchdog > > wasn'

Did USB slowly kill/hang my kernel? (3.12.7)

2014-02-15 Thread Marc MERLIN
I found that my server at home, after months of runtime, hung and found the following on the serial console. Interestingly, the software watchdog wasn't even able to reboot the system it seems, it needed a power cycle. Is there other info I can provide/different kernel options I should use? Thank

Re: Cannot shutdown power use from built in webcam in thinkpad T530 questions]

2013-09-28 Thread Marc MERLIN
On Mon, Sep 23, 2013 at 10:21:23AM +0200, Oleksij Rempel wrote: > > Understood, just making sure this was still potentially useful considering > > what I found out since my last message. > > Which version of powertop are you actually using? None of current The latest, i.e. 2.4. > versions would

Re: Cannot shutdown power use from built in webcam in thinkpad T530 questions]

2013-09-22 Thread Marc MERLIN
On Sun, Sep 22, 2013 at 04:32:08PM -0400, Alan Stern wrote: > > I'm somehow thinking there is a driver or hardware problem when the device > > does get stuck in a mode where it won't sleep properly again until the next > > reboot (just unloading/loading the driver does not fix this). > > That's qu

Re: Cannot shutdown power use from built in webcam in thinkpad T530 questions]

2013-09-22 Thread Marc MERLIN
On Sun, Sep 22, 2013 at 12:38:56PM -0400, Alan Stern wrote: > > gandalfthegreat:/sys/bus/usb/devices/3-1.6/power# grep . * > > active_duration:61227648 > > async:enabled > > autosuspend:2 > > autosuspend_delay_ms:2000 > > connected_duration:66830880 > > control:auto > > level:auto > > persist:1 > >

Cannot shutdown power use from built in webcam in thinkpad T530 questions]

2013-09-21 Thread Marc MERLIN
Howdy, I have a T530 with a built in webcam that uses the uvcvideo driver. Kernel 3.10.6, but the problem has been there for many kernel versions. >From time to time (not always) it shows up at the top of powertop with an unexplained high power use while I'm not using the camera. Powertop says au