Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-12-21 Thread Michael Reutman
On Fri, Dec 18, 2015 at 5:47 PM, Michael Reutman wrote: > First, apologies for the delay. This fell off my radar and I'm just > getting back around to running your last patch. > > I'm kicking off our test application to run over the weekend with the > last patch

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-12-21 Thread Alan Stern
On Mon, 21 Dec 2015, Michael Reutman wrote: > On Fri, Dec 18, 2015 at 5:47 PM, Michael Reutman > wrote: > > First, apologies for the delay. This fell off my radar and I'm just > > getting back around to running your last patch. > > > > I'm kicking off our test

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-12-18 Thread Michael Reutman
First, apologies for the delay. This fell off my radar and I'm just getting back around to running your last patch. I'm kicking off our test application to run over the weekend with the last patch provided. I'll let you and everyone else know how it went on Monday morning. Michael Reutman

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-12-09 Thread Michael Reutman
On Mon, Dec 7, 2015 at 1:17 PM, Alan Stern wrote: > Michael: > > Here at last is the final version of the patch, or something very close > to it. This should be applied on top of the other EHCI patches, but > not the quick-and-dirty fix, which it replaces. > > Please

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-12-07 Thread Alan Stern
Michael: Here at last is the final version of the patch, or something very close to it. This should be applied on top of the other EHCI patches, but not the quick-and-dirty fix, which it replaces. Please test it and let me know the results. Alan Stern Index:

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-19 Thread Michael Reutman
On Wed, Nov 18, 2015 at 10:23 AM, Alan Stern wrote: > For the last patch. And yes, do set usb_snoop_max. Dmesg output with usb_snoop and usb_snoop_max is attached below. > I hope so. There is one thing I'm still undecided about: Should this > workaround be applied

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-18 Thread Michael Reutman
On Tue, Nov 17, 2015 at 12:21 PM, Alan Stern wrote: > On Tue, 17 Nov 2015, Michael Reutman wrote: >> Ran 1 million operations of launch+cancel usb transfers last night >> without getting into the stuck state. I'll bump up the iterations to >> 10 million or so and run it

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-18 Thread Alan Stern
On Wed, 18 Nov 2015, Michael Reutman wrote: > On Tue, Nov 17, 2015 at 12:21 PM, Alan Stern > wrote: > > On Tue, 17 Nov 2015, Michael Reutman wrote: > >> Ran 1 million operations of launch+cancel usb transfers last night > >> without getting into the stuck state. I'll

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-17 Thread Michael Reutman
On Thu, Nov 12, 2015 at 10:46 AM, Michael Reutman wrote: > On Mon, Nov 9, 2015 at 9:21 AM, Alan Stern wrote: >> Here's a revised quick-and-dirty workaround. It replaces the earlier >> one. (And like the earlier one, it is meant to apply on

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-17 Thread Alan Stern
On Tue, 17 Nov 2015, Michael Reutman wrote: > > Apologies for the delay, been working on another project recently that > > has taken up most of my time. > > > > I applied the patch and have ran our application for 20 to 30 minutes > > thus far without issue. Later on tonight I'll set it up for an

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-12 Thread Michael Reutman
On Mon, Nov 9, 2015 at 9:21 AM, Alan Stern wrote: > Here's a revised quick-and-dirty workaround. It replaces the earlier > one. (And like the earlier one, it is meant to apply on top of > the usbfs-snoop patch, but I don't think that makes any difference > now.) > >

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-09 Thread Alan Stern
On Mon, 2 Nov 2015, Michael Reutman wrote: > On Wed, Oct 28, 2015 at 10:48 AM, Alan Stern > wrote: > > The patch below is meant to apply on top of the previous patch. It's a > > quick-and-dirty workaround which ought to prevent the problem from > > occurring. Let's

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-03 Thread Alan Stern
On Tue, 3 Nov 2015, Peter Chen wrote: > On Mon, Nov 02, 2015 at 11:24:54AM -0500, Alan Stern wrote: > > On Mon, 2 Nov 2015, Peter Chen wrote: > > > > > Hi Alan, > > > > > > After a discussion with IC engineer, a brief idea like below: > > > > > > - Delete the QH from the asynclist directly,

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-02 Thread Alan Stern
On Mon, 2 Nov 2015, Peter Chen wrote: > Hi Alan, > > After a discussion with IC engineer, a brief idea like below: > > - Delete the QH from the asynclist directly, Issue the first IAA > routine, this is we do now. > - During the first IAA interrupt, judge if asynclistaddr is next address of >

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-02 Thread Alan Stern
On Mon, 2 Nov 2015, Michael Reutman wrote: > On Wed, Oct 28, 2015 at 10:48 AM, Alan Stern > wrote: > > The patch below is meant to apply on top of the previous patch. It's a > > quick-and-dirty workaround which ought to prevent the problem from > > occurring. Let's

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-11-02 Thread Peter Chen
On Fri, Oct 30, 2015 at 11:15:05AM -0400, Alan Stern wrote: > On Fri, 30 Oct 2015, Peter Chen wrote: > > > After reading spec at 4.8.2: > > > > Software must not remove an active queue head from the schedule. > > Software should first deactivate all active qTDs, wait for the > > queue head to go

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-30 Thread Peter Chen
On Thu, Oct 29, 2015 at 10:37:28AM -0400, Alan Stern wrote: > After reading spec at 4.8.2: Software must not remove an active queue head from the schedule. Software should first deactivate all active qTDs, wait for the queue head to go inactive, then remove the queue head from the asynchronous

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-30 Thread Alan Stern
On Fri, 30 Oct 2015, Peter Chen wrote: > After reading spec at 4.8.2: > > Software must not remove an active queue head from the schedule. > Software should first deactivate all active qTDs, wait for the > queue head to go inactive, then remove the queue head from the > asynchronous list. > >

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-29 Thread Alan Stern
On Thu, 29 Oct 2015, Peter Chen wrote: > > > [In practice it's not feasible to wait for an active QH to become > > > inactive before removing it, for several reasons. For one, the QH may > > > _never_ become inactive (if the endpoint NAKs indefinitely). For > > > another, the procedure given in

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-29 Thread Peter Chen
On Thu, Oct 22, 2015 at 05:14:41PM -0400, Alan Stern wrote: > [Resend with Hans's correct email address this time...] > > On Thu, 22 Oct 2015, Alan Stern wrote: > > > Hans and everyone else: > > > > This continues the discussion of a problem originally posted to the > > libusb-devel mailing

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-28 Thread Michael Reutman
On Tue, Oct 27, 2015 at 6:35 PM, Michael Reutman wrote: > On Mon, Oct 26, 2015 at 11:11 AM, Alan Stern > wrote: >> Michael: >> >> In the absence of any suggestions, we might as well try to verify my >> idea about what's going wrong. The

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-28 Thread Alan Stern
On Wed, 28 Oct 2015, Michael Reutman wrote: > Alan: I ran the test again with your latest patch and collected the > output of ehci async and dmesg. You should find their output attached > to this email. Let me know if you need anything else. A smoking gun! Notice near the end of your dmesg log

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-28 Thread Michael Reutman
On Wed, Oct 28, 2015 at 10:48 AM, Alan Stern wrote: > A smoking gun! Notice near the end of your dmesg log this line: > > [ 1520.794032] ehci-pci :00:16.2: qh 88032718ca80 should be inactive! > > It appears just before the hang occurred and nowhere else. That

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-27 Thread Michael Reutman
On Mon, Oct 26, 2015 at 11:11 AM, Alan Stern wrote: > Michael: > > In the absence of any suggestions, we might as well try to verify my > idea about what's going wrong. The patch below adds a little more > debugging information; please try repeating the last test with

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-26 Thread Alan Stern
Michael: In the absence of any suggestions, we might as well try to verify my idea about what's going wrong. The patch below adds a little more debugging information; please try repeating the last test with this patch in place of the previous one. Alan Stern Index:

Re: Help needed for EHCI problem: removing an active bulk-in QH

2015-10-22 Thread Alan Stern
[Resend with Hans's correct email address this time...] On Thu, 22 Oct 2015, Alan Stern wrote: > Hans and everyone else: > > This continues the discussion of a problem originally posted to the > libusb-devel mailing list > (see if > you're

Help needed for EHCI problem: removing an active bulk-in QH

2015-10-22 Thread Alan Stern
Hans and everyone else: This continues the discussion of a problem originally posted to the libusb-devel mailing list (see if you're curious). The EHCI controller in question is an AMD/ATI SB7x0/SB8x0/SB9x0, as found on the RX780/RX790