From: Luben Tuikov <ltuikov@yahoo.com>
To: Sarah Sharp <sarah.a.sharp@linux.intel.com>, Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH 2/4] [USB] UASP: Add MaxNumStreams module parameter
Date: Thu, 9 Dec 2010 16:41:46 -0800 (PST) [thread overview]
Message-ID: <186090.63629.qm@web31805.mail.mud.yahoo.com> (raw)
In-Reply-To: <20101210002505.GA16352@kroah.com>
--- On Thu, 12/9/10, Greg KH <greg@kroah.com> wrote:
> -0800, Sarah Sharp wrote:
> > On Thu, Dec 09, 2010 at 02:54:19PM -0800, Luben Tuikov
> wrote:
> > > --- On Thu, 12/9/10, Sarah Sharp <sarah.a.sharp@linux.intel.com>
> wrote:
> > > > -0800, Luben Tuikov wrote:
> > > > > Signed-off-by: Luben Tuikov <ltuikov@yahoo.com>
> > > > > ---
> > > > > The long story is that we see some
> host
> > > > controllers misreport their
> > > > > PSA as they solved 2^v = streams,
> instead of
> > > > 2^(v+1) = streams. Thus
> > > > > They report that they support 32
> streams when in
> > > > fact they support 16.
> > > > > When the device attempts to return
> status for
> > > > stream > 15, the host
> > > > > says ACK(NumP=0), the device goes in
> flow
> > > > control, blah, blah, this
> > > > > module parameter allows you to set a
> max cap on
> > > > the number of streams
> > > > > the driver will ask XHCI HCD to
> allocate.
> > > >
> > > > If this is an issue with a host then the
> work-around should
> > > > be in the
> > > > xHCI driver instead. It should be based on
> the
> > > > vendor/device ID of the
> > > > offending host instead of being a module
> parameter in the
> > > > UAS driver.
> > > > The only people who benefit from this patch
> are the people
> > > > "in the know"
> > > > about which hosts are buggy, not normal
> Linux users.
> > >
> > > The OS might want to limit the number of streams
> for reasons other
> > > than a buggy HC. So this module parameter add
> flexibility other than
> > > making a buggy HC work.
> >
> > Ok, that's fine, but my comments still stand about
> fixing this
> > particular bug in the xHCI driver, rather than in the
> UAS driver.
>
> I agree.
>
> Also, a module parameter will not work when your driver is
> connecting to
> different xHCI devices in the same system. Please
> never add module
> parameters anymore, there is usually never a need for them
> at all.
I hesitated a lot before adding this module parameter. I did not want to add it since of course the obvious solution is to have a "black list" in the XHCI HCD. I think everyone knows this.
But at the time and still in some ways, it seemed like a valuable addition. Of course, when not set (default behavior) it doesn't impact the operation of the driver.
Luben
next prev parent reply other threads:[~2010-12-10 0:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-08 23:55 [PATCH 2/4] [USB] UASP: Add MaxNumStreams module parameter Luben Tuikov
2010-12-09 20:58 ` Sarah Sharp
2010-12-09 22:54 ` Luben Tuikov
2010-12-10 0:11 ` Sarah Sharp
2010-12-10 0:25 ` Greg KH
2010-12-10 0:41 ` Luben Tuikov [this message]
2010-12-10 0:29 ` Alan Cox
2010-12-10 23:02 ` Luben Tuikov
2010-12-10 23:14 ` Greg KH
2010-12-10 23:19 ` Luben Tuikov
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=186090.63629.qm@web31805.mail.mud.yahoo.com \
--to=ltuikov@yahoo.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sarah.a.sharp@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.