mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sander Eikelenboom <linux@eikelenboom.it>
To: matthieu castet <castet.matthieu@free.fr>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: re : 3.2-rc2 regression due to commit "USB: EHCI: fix HUB TT scheduling issue with iso transfer" 811c926c
Date: Sun, 27 Nov 2011 21:08:13 +0100	[thread overview]
Message-ID: <242709247.20111127210813@eikelenboom.it> (raw)
In-Reply-To: <20111126231304.0bf12f69@mat-laptop>

Hi Matthieu,

I can confirm this patch fixes my problem, after testing haven't seen any problems yet.

Thx !

--
Sander



Saturday, November 26, 2011, 11:13:04 PM, you wrote:

> Hi,

> could you try the following patch ?

> It seems there is a flow in the error condition.


> Matthieu


> diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c
> index 56a3203..464b451 100644
> --- a/drivers/usb/host/ehci-sched.c
> +++ b/drivers/usb/host/ehci-sched.c
> @@ -1475,6 +1475,7 @@ iso_stream_schedule (
>          * jump until after the queue is primed.
>          */
>         else {
> +               int done = 0;
>                 start = SCHEDULE_SLOP + (now & ~0x07);
>  
>                 /* NOTE:  assumes URB_ISO_ASAP, to limit complexity/bugs */
> @@ -1491,19 +1492,23 @@ iso_stream_schedule (
>                         /* check schedule: enough space? */
>                         if (stream->highspeed) {
>                                 if (itd_slot_ok(ehci, mod, start,
> -                                               stream->usecs, period))
> +                                               stream->usecs, period)) {
> +                                       done = 1;
>                                         break;
> +                               }
>                         } else {
>                                 if ((start % 8) >= 6)
>                                         continue;
>                                 if (sitd_slot_ok(ehci, mod, stream,
> -                                               start, sched, period))
> +                                               start, sched, period)) {
> +                                       done = 1;
>                                         break;
> +                               }
>                         }
>                 } while (start > next);
>  
>                 /* no room in the schedule */
> -               if (start == next) {
> +               if (!done) {
>                         ehci_dbg(ehci, "iso resched full %p (now %d max %d)\n",
>                                 urb, now, now + mod);
>                         status = -ENOSPC;



-- 
Best regards,
 Sander                            mailto:linux@eikelenboom.it


  reply	other threads:[~2011-11-27 20:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-26 22:13 matthieu castet
2011-11-27 20:08 ` Sander Eikelenboom [this message]
2011-11-27 21:03   ` Greg KH

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=242709247.20111127210813@eikelenboom.it \
    --to=linux@eikelenboom.it \
    --cc=castet.matthieu@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®