From: David Brownell <david-b@pacbell.net>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>,
linux-usb-devel@lists.sourceforge.net, Greg KH <gregkh@suse.de>,
LKML <linux-kernel@vger.kernel.org>,
"Stuart_Hayes@Dell.com" <Stuart_Hayes@dell.com>,
Andrew Morton <akpm@linux-foundation.org>,
Daniel Exner <dex@dragonslave.de>
Subject: Re: [linux-usb-devel] [4/4] 2.6.23-rc3: known regressions
Date: Mon, 20 Aug 2007 21:02:58 -0700 [thread overview]
Message-ID: <200708202102.58508.david-b@pacbell.net> (raw)
In-Reply-To: <alpine.LFD.0.999.0708201853020.30176@woody.linux-foundation.org>
On Monday 20 August 2007, Linus Torvalds wrote:
>
> On Mon, 20 Aug 2007, David Brownell wrote:
>
> > On Monday 13 August 2007, Michal Piotrowski wrote:
> > > Subject     : EHCI Regression in 2.6.23-rc2
> > > References    : http://lkml.org/lkml/2007/8/10/81
> > > Last known good : ?
> > > Submitter    : Daniel Exner <dex@dragonslave.de>
> > > Caused-By    : Stuart_Hayes@Dell.com <Stuart_Hayes@Dell.com>
> > > Â Â Â Â Â Â Â Â Â commit 196705c9bbc03540429b0f7cf9ee35c2f928a534
> > > Handled-By    : ?
> > > Status      : unknown
> >
> > Fixed I believe by Stuart's patch:
> >
> > http://marc.info/?l=linux-usb-devel&m=118765934722610&w=2
>
> Quite frankly, I'd personally prefer to just revert commit
> 196705c9bbc03540429b0f7cf9ee35c2f928a534 entirely instead.
>
> The whole dependency on cpufreq seems totally bogus. Would it not be a lot
> more natural to handle the *result* of the problem (ie the MMF errors by
> broken EHCI controllers?) rather than add totally insane workarounds for
> this case to try to hide them in the first place?
MMF basically means the "Transaction Translating" (TT) hub had data
for the host, but the host didn't collect it in time ... so that some
data was lost.
Unfortunately, that's the type of fault that's especially hard to
recover from. Plus, very few of the upper layer drivers have even
a minor clue about fault recovery strategies. And I don't trust
the current hcd/usbcore code that tries to clean up after MMF.
On the plus side, MMF errors have been vanishingly rare until this
cpufreq interaction came up ... which of course implies the downside
that those "handle the result" code paths are all but untested.
> There can be *other* delays in reading memory that have nothing to do with
> cpu frequency shifting, and everything to do with exteme situations on the
> bus. If the stupid EHCI controller has some tight latency issues, that's a
> generic problem.
There could be such problems, yes. But in practice, I don't know
that we've ever seen them. (There's a first time for everthing,
yes. I *just* fetched a webpage where an image got overwritten
about
> That commit 196705c9bbc03540429b0f7cf9ee35c2f928a534 just exemplifies what
> is wrong with USB, but it does so by adding incredibly ugly code. I'd
> rather not add even *more* ugly code - especially not for a case where we
> then seem to blame the wrong party (ie a VIA controller that didn't need
> the ugly code in the first place).
>
> Serverworks/Broadcom makes totally crap chips (not just in USB) and then
> doesn't even document their buggy crap hardware. But that is NOT a reason
> for then making the kernel have buggy crap software in it.
>
> So really - is there any reason why we just don't say "Broadcom chips
> suck, and get MMF errors under normal circumstances because they are
> crap". And from *that*, the obvious solution would seem to not be to
> penalize everybody else, but to just say that "We will try to recover from
> MMF errors gracefully by retrying the transaction". Hmm?
>
> Linus
>
next prev parent reply other threads:[~2007-08-21 4:03 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <46C098FD.1030601@googlemail.com>
2007-08-13 17:59 ` [2/4] 2.6.23-rc3: known regressions Michal Piotrowski
2007-08-13 23:29 ` Luca Tettamanti
2007-08-14 6:37 ` Michal Piotrowski
2007-08-13 17:59 ` [3/4] " Michal Piotrowski
2007-08-14 22:09 ` Francois Romieu
2007-08-13 17:59 ` [4/4] " Michal Piotrowski
2007-08-21 1:41 ` [linux-usb-devel] " David Brownell
2007-08-21 2:02 ` Linus Torvalds
2007-08-21 4:02 ` David Brownell [this message]
2007-08-21 4:15 ` Linus Torvalds
2007-08-21 4:48 ` David Brownell
2007-08-21 5:31 ` Linus Torvalds
2007-08-21 5:51 ` Arjan van de Ven
2007-08-21 6:04 ` Arjan van de Ven
2007-08-21 6:26 ` Linus Torvalds
2007-08-21 6:28 ` Arjan van de Ven
2007-08-21 6:45 ` Linus Torvalds
2007-08-21 6:25 ` Linus Torvalds
2007-08-21 6:24 ` Arjan van de Ven
2007-08-21 6:03 ` Linus Torvalds
2007-08-21 6:34 ` David Brownell
2007-08-21 6:52 ` Linus Torvalds
2007-08-21 7:24 ` Linus Torvalds
2007-08-22 3:34 ` Linus Torvalds
2007-08-22 14:42 ` Stuart_Hayes
2007-08-22 18:41 ` Linus Torvalds
2007-08-22 20:41 ` Stuart_Hayes
2007-08-22 23:35 ` Junio C Hamano
2007-08-21 4:27 ` [linux-usb-devel] " David Brownell
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=200708202102.58508.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=Stuart_Hayes@dell.com \
--cc=akpm@linux-foundation.org \
--cc=dex@dragonslave.de \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=michal.k.k.piotrowski@gmail.com \
--cc=torvalds@linux-foundation.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