linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "John W. Linville" <linville@tuxdriver.com>,
	"David S. Miller" <davem@davemloft.net>,
	wireless <linux-wireless@vger.kernel.org>,
	Greg Kroah-Hartman <gregkh@suse.de>
Subject: Re: Make b43 driver fall back gracefully to PIO mode after fatal DMA errors
Date: Fri, 26 Feb 2010 13:09:36 -0600	[thread overview]
Message-ID: <4B881C70.9030004@lwfinger.net> (raw)
In-Reply-To: <alpine.LFD.2.00.1002261034140.4513@localhost.localdomain>

On 02/26/2010 12:34 PM, Linus Torvalds wrote:
> 
> This makes the b43 driver just automatically fall back to PIO mode when 
> DMA doesn't work.
> 
> The driver already told the user to do it, so rather than have the user 
> reload the module with a new flag, just make the driver do it 
> automatically. We keep the message as an indication that something is 
> wrong, but now just automatically fall back to the hopefully working PIO 
> case.
> 
> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
> ---
> 
> I've carried this around in my tree because it fixes a real device (Dell 
> Inspiron 11) that happens to be a laptop that Patricia uses at school.
> 
> In commit 214ac9a4ead Larry made the driver not reset continually (and use 
> 99% CPU time while not working), he just made it say "use PIO instead" 
> (and use 0% CPU time while STILL not working!).
> 
> Which seems to be rather excessively stupid. Since we know what the fix 
> is, we should just _do_ it, rather than tell the user to recompile the 
> kernel and reboot with a new kernel command line flag.
> 
> I really don't see what the logic is behind letting the user know what to 
> do, but then not doing it youself.
> 
> I'd rather see this go through the network layer, but quite frankly, since 
> I have access to a machine with this issue and can test it, if I don't get 
> this patch back through the proper channels (or some other patch that just 
> fixes the DMA issue), I'm going to just apply it myself.
> 
> I refuse to have a kernel that is too stupid to just do something that it 
> tells the user to do. I also refuse to have a kernel that is so stupid 
> that it needs hand-holding and special kernel command line options on a 
> machine I can test.

In my defense, my device does not have this failure, thus I have no way to test
switching to PIO when DMA fails, which is why I made the change the way I did. I
could have forced the switch, but was not sure if the hardware state would have
followed.

As you have tested this code, it has my ACK and I request John and DaveM to push
it upstream so that it gets in the 2.6.34 merge. There is a small problem as it
does not apply cleanly to wireless-testing. John: Do you want me to fix that and
send you the new version, or let Linus just apply it to his tree? Please let me
know how to proceed.

It should also be pushed to stable. (GregKH added to Cc list.) It would apply to
2.6.33 - ATM I'm not sure about 2.6.32. I'll check if it applies to 2.6.32.Y.

Incidentally, we have learned today that the fault does not occur when running
MMIO traces, and that it is not SMP related.

Larry

       reply	other threads:[~2010-02-26 19:09 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alpine.LFD.2.00.1002261034140.4513@localhost.localdomain>
2010-02-26 19:09 ` Larry Finger [this message]
2010-02-26 19:13   ` Make b43 driver fall back gracefully to PIO mode after fatal DMA errors Linus Torvalds
2010-02-26 20:06     ` Linus Torvalds
2010-02-26 20:09       ` Gábor Stefanik
2010-02-26 20:50         ` Linus Torvalds
2010-02-26 21:01           ` Larry Finger
2010-02-26 21:45             ` Linus Torvalds
2010-02-26 21:50               ` Linus Torvalds
2010-02-26 22:08                 ` Gábor Stefanik
2010-02-26 22:46                   ` Linus Torvalds
2010-02-26 22:54                     ` Gábor Stefanik
2010-02-27 15:04                     ` Michael Buesch
2010-02-27 14:59                 ` Michael Buesch
2010-02-27 18:31                   ` Linus Torvalds
2010-02-27 18:51                     ` Michael Buesch
2010-02-26 19:59   ` Michael Buesch
2010-02-26 20:07     ` Linus Torvalds
2010-02-26 20:20       ` Michael Buesch
2010-02-26 20:33         ` Linus Torvalds
2010-02-26 20:42           ` Linus Torvalds
2010-02-27 14:44             ` Michael Buesch
2010-02-27 14:49           ` Michael Buesch
2010-02-27 17:36           ` Michael Buesch
2010-02-27 20:12             ` Nathan Schulte
2010-02-27 21:08             ` Linus Torvalds
2010-02-27 21:43               ` Michael Buesch
2010-02-27 22:12                 ` Linus Torvalds
2010-02-26 20:46 Nathan Schulte

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=4B881C70.9030004@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=davem@davemloft.net \
    --cc=gregkh@suse.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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;
as well as URLs for NNTP newsgroup(s).