From: Felipe Balbi <balbi@ti.com>
To: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: Masakazu Mokuno <masakazu_mokuno@hq.scei.sony.co.jp>,
<ville.syrjala@linux.intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
<linux-usb@vger.kernel.org>, <stable@vger.kernel.org>
Subject: Re: [PATCH] Revert "usb: dwc3: gadget: drop unnecessary loop when cleaning up TRBs"
Date: Fri, 6 Nov 2015 07:31:31 -0600 [thread overview]
Message-ID: <874mgz1cgc.fsf@saruman.tx.rr.com> (raw)
In-Reply-To: <20151106124800.GA23126@kuha.fi.intel.com>
[-- Attachment #1: Type: text/plain, Size: 2153 bytes --]
Hi,
Heikki Krogerus <heikki.krogerus@linux.intel.com> writes:
> On Mon, Oct 12, 2015 at 01:37:40PM -0500, Felipe Balbi wrote:
>>
>> Hi,
>>
>> Felipe Balbi <balbi@ti.com> writes:
>> > On Wed, Sep 02, 2015 at 05:09:39PM +0900, Masakazu Mokuno wrote:
>> >> Hi,
>> >>
>> >> On Mon, 31 Aug 2015 11:54:13 -0500
>> >> Felipe Balbi <balbi@ti.com> wrote:
>> >>
>> >> > On Mon, Aug 31, 2015 at 07:48:28PM +0300, ville.syrjala@linux.intel.com wrote:
>> >> > > From: Ville Syrj舁・<ville.syrjala@linux.intel.com>
>> >> > >
>> >> > > This reverts commit 8f2c9544aba636134303105ecb164190a39dece4.
>> >> > >
>> >> > > As it breaks g_ether on my Baytrail FFRD8 device. Everything starts out
>> >> > > fine, but after a bit of data has been transferred it just stops
>> >> > > flowing.
>> >> > >
>> >> > > Note that I do get a bunch of these "NOHZ: local_softirq_pending 08"
>> >> > > when booting the machine, but I'm not really sure if they're related
>> >> > > to this problem.
>> >> >
>> >> > I have a feeling your problem is elsewhere. We *are* completing one TRB
>> >> > at a time.
>> >>
>> >> If usb_request.no_interrupt is flagged, it seems dwc3 does not set IOC
>> >> on the corresponding TRB. Does it break the assumption every TRB
>> >> (without SG) will trigger one corresponding EP event?
>> >> u_ether is the function module that utilizes 'no_interrupt' flag.
>> >
>> > XferInProgress should still trigger. Besides, I tested with the exact
>> > same setup (different SoC though), just look at the thread.
>>
>> I found a way to reproduce this on my end. What I was missing was the
>> use of request.no_interrupt. We won't get XferInProgress for all TRBs if
>> IOC isn't set in all of them.
>>
>> I'll apply this patch ASAP as it fixes the problem I managed to
>> reproduce (ping -s 40000 makes it fail here)
>
> I can see the commit in your next branch, but shouldn't it go in as a
> fix? I guess it should also be tagged with the stable tag.
>
> I got an other guy who hit this issue who I think is using the stable
> tree.
it was kinda late to merge it during the -rc.
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next prev parent reply other threads:[~2015-11-06 13:31 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-31 16:48 [PATCH] Revert "usb: dwc3: gadget: drop unnecessary loop when cleaning up TRBs" ville.syrjala
2015-08-31 16:54 ` Felipe Balbi
2015-08-31 17:25 ` Ville Syrjälä
2015-08-31 18:50 ` Felipe Balbi
2015-08-31 18:52 ` Felipe Balbi
2015-09-01 13:17 ` Ville Syrjälä
2015-09-01 13:59 ` Felipe Balbi
2015-09-01 14:39 ` Ville Syrjälä
2015-09-01 15:17 ` Felipe Balbi
2015-09-01 15:37 ` Ville Syrjälä
2015-09-07 6:56 ` Heikki Krogerus
2015-09-28 18:56 ` Ville Syrjälä
2015-09-02 8:09 ` Masakazu Mokuno
2015-09-02 12:29 ` Felipe Balbi
2015-10-12 18:37 ` Felipe Balbi
2015-11-06 12:48 ` Heikki Krogerus
2015-11-06 12:57 ` Heikki Krogerus
2015-11-06 13:31 ` Felipe Balbi [this message]
2015-08-31 19:21 ` Sergei Shtylyov
2015-09-01 11:40 ` Sergei Shtylyov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874mgz1cgc.fsf@saruman.tx.rr.com \
--to=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-usb@vger.kernel.org \
--cc=masakazu_mokuno@hq.scei.sony.co.jp \
--cc=stable@vger.kernel.org \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).