alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Pete Leigh <pete.leigh@gmail.com>
To: Daniel Mack <zonque@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Fwd: Support for Roland VG-99 (working code, but could use help)
Date: Sat, 20 Oct 2012 03:21:42 +0100	[thread overview]
Message-ID: <CABn3OEHzKfq-asnXRMRs8GgRosis4fSzdrExBW8mHJk9eKBqqA@mail.gmail.com> (raw)
In-Reply-To: <CABn3OEG=u+iDeVqkar-Dg3rYWnY7b6UgHKJuyRpFgMXqMe_LoQ@mail.gmail.com>

Hi,

On 19 October 2012 23:24, Pete Leigh <pete.leigh@gmail.com> wrote:

> If I take the working config, and disable CONFIG_USB_EHCI_TT_NEWSCHED,
> recompile, make install, reboot, then I get the familiar  "cannot
> submit urb 0, error -28: not enough bandwidth" error, and trying to
> record off the UA-25 in audacity freezes audacity. If I then re-enable
> it, recompile, make install, reboot, then I don't see the error, and
> recording off the UA-25 works normally in audacity.

Just a bit more info on how this is happening in ehci-sched.c (with
the ...NEWSCHED config unset),

It is hitting the Q_TYPE_QH case in tt_no_collision().

In there, (mask & uf_mask) evaluates to true, and thus 0 is returned
to sitd_slot_ok() which in turn returns 0 to iso_stream_schedule().

It goes around this loop 3 times before giving the -ENOSPC error in
iso_stream_schedule().

I'm seeing this from some debug printks I inserted:

[   52.135325] knowsnogap: mask was: 1124206081, uf_mask is: 61444,
mask is now: 1128465927
[   52.135328] returning 0 in tt_no_collision (4) frame: 0,
ehci->periodic_size 1024,  period 1
[   52.135329] returning 0 in sitd slot ok
[   52.135330] knowsnogap: mask was: 1124206081, uf_mask is: 30722,
mask is now: 1128465927
[   52.135330] returning 0 in tt_no_collision (4) frame: 0,
ehci->periodic_size 1024,  period 1
[   52.135331] returning 0 in sitd slot ok
[   52.135331] knowsnogap: mask was: 1124206081, uf_mask is: 15361,
mask is now: 1128465927
[   52.135332] returning 0 in tt_no_collision (4) frame: 0,
ehci->periodic_size 1024,  period 1
[   52.135333] returning 0 in sitd slot ok
[   52.135334] no room: iso resched full ffff8802158b3300 (now 899 max 9091)
[   52.135336] ALSA sound/usb/endpoint.c:877 cannot submit urb 0,
error -28: not enough bandwidth

The "knowsnogap" message  is from just before the break; in the
Q_TYPE_QH case, showing the value of uf_mask and mask before and after
 "mask |= mask >> 8" is done

(I would have put these in hex.. I thought they'd be small! :)

the "returning 0 in tt_no_collision" are printed just before the
return 0, showing the values at that time.

Hope this is somehow useful..

Cheers,

- Pete.

  reply	other threads:[~2012-10-20  2:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CABn3OEFatrnhGs1xzpmOfXSxpSLuGwgRtN8v=1B96i6=7_9vTg@mail.gmail.com>
2012-10-15 23:59 ` Fwd: Support for Roland VG-99 (working code, but could use help) Pete Leigh
2012-10-16  7:40   ` Daniel Mack
2012-10-16  8:31     ` Pete Leigh
2012-10-16  8:36       ` Daniel Mack
2012-10-18 23:38         ` Pete Leigh
2012-10-19  7:45           ` Daniel Mack
2012-10-19  8:23             ` Pete Leigh
2012-10-19  8:24               ` Daniel Mack
2012-10-19  8:49                 ` Pete Leigh
2012-10-19 17:02                   ` Pete Leigh
2012-10-19 17:46                     ` Daniel Mack
2012-10-19 18:18                       ` Pete Leigh
2012-10-19 18:21                         ` Daniel Mack
2012-10-19 22:24                       ` Pete Leigh
2012-10-20  0:17                         ` Pete Leigh
2012-10-20  2:21                           ` Pete Leigh [this message]
2012-10-16  9:19       ` Clemens Ladisch
2012-10-16 11:38         ` Pete Leigh
2012-10-16 12:27           ` Clemens Ladisch

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=CABn3OEHzKfq-asnXRMRs8GgRosis4fSzdrExBW8mHJk9eKBqqA@mail.gmail.com \
    --to=pete.leigh@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=zonque@gmail.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).