From: "Wolfgang Mües" <wolfgang.mues@auerswald.de>
To: "Matt Fleming" <matt@console-pimps.org>
Cc: "Pierre Ossman" <drzeus@drzeus.cx>,
"Andrew Morton" <akpm@linux-foundation.org>,
"David Brownell" <dbrownell@users.sourceforge.net>,
"Mike Frysinger" <vapier.adi@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mmc_spi: do propper retry managment in the block layer - rewritten
Date: Tue, 19 May 2009 09:16:40 +0200 [thread overview]
Message-ID: <200905190916.40596.wolfgang.mues@auerswald.de> (raw)
In-Reply-To: <20090518203338.GB10274@console-pimps.org>
Matt,
Am Montag, 18. Mai 2009 schrieb Matt Fleming:
> Ah, now I understand. I've also been contacted privately by someone
> who says that they've been experiencing similar issues and that your
> patch has fixed them. Clearly there are people out there with flaky
> hardware ;-)
Hmmm... Every hardware is flaky. Put a piece of hardware near your
refrigerator or DECT base, and you will have EMP or HF problems.
Or use your finger and generate ESD pulses.
I am using a piezo where I have the GND pin connected to a wire to generate
ESD pulses which have the same results as a 4 KV ESD generator:
http://www.vega-direct.at/buffet/chafing_dish_mit_zubehoer/gasanzuender/index.hsp
A software which do not behave gracefully in the presence of errors is not
production quality for me.
> I feel that retrying data accesses should be done at a higher layer
> than the MMC/SD subsystem.
There is some sense in that. But then you must give some more information to
the higher layers:
- the information that it makes sense to retry.
- If a retry is commanded by the upper layer, mark it as retry, so that the
lower layer is able to react different if needed.
Retry is not only bare retry, it is also about recovering from a previous
failure, and try to continue the (maybe lost) communication. Retry may be a
multi-stage approach (first try a simple retry, second try to recover
communication, third to reset the hardware and start from the beginning.)
So I fear that a retry logic in the upper layers must have so much information
about what is going on there and how to fix the problems, that it might be a
real hard work to implement as a general solution.
Now, the upper layers (I mainly use vfat file system) are doing no retry at
all, and this is not acceptable IMO.
> This
> patch solves a real world problem that is biting some people, and so
> based on that, the approach seems OK to me FWIW.
Fine. Note that the old code has already done retries for read operations.
> By the way, the indentation needs fixing here.
OK.
If the discussion is over, I will post an updated patch. I will wait for
Pierre to comment.
best regards
i. A. Wolfgang Mües
--
Auerswald GmbH & Co. KG
Hardware Development
Telefon: +49 (0)5306 9219 0
Telefax: +49 (0)5306 9219 94
E-Mail: Wolfgang.Mues@Auerswald.de
Web: http://www.auerswald.de
--------------------------------------------------------------
Auerswald GmbH & Co. KG, Vor den Grashöfen 1, 38162 Cremlingen
Registriert beim AG Braunschweig HRA 13289
p.h.G Auerswald Geschäftsführungsges. mbH
Registriert beim AG Braunschweig HRB 7463
Geschäftsführer: Dipl-Ing. Gerhard Auerswald
next prev parent reply other threads:[~2009-05-19 7:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-18 13:21 Wolfgang Mües
2009-05-18 15:20 ` Matt Fleming
2009-05-18 16:00 ` Wolfgang Mües
2009-05-18 20:33 ` Matt Fleming
2009-05-19 7:16 ` Wolfgang Mües [this message]
2009-05-19 8:41 ` Matt Fleming
2009-05-19 9:16 ` Wolfgang Mües
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=200905190916.40596.wolfgang.mues@auerswald.de \
--to=wolfgang.mues@auerswald.de \
--cc=akpm@linux-foundation.org \
--cc=dbrownell@users.sourceforge.net \
--cc=drzeus@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@console-pimps.org \
--cc=vapier.adi@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
all inboxes | Powered by JetHome®