linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] mmc: failure of block read wait for long time
Date: Mon, 20 Sep 2010 14:37:03 +0100	[thread overview]
Message-ID: <20100920133703.GC30793@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <4C975CFB.6070907@nokia.com>

On Mon, Sep 20, 2010 at 04:09:15PM +0300, Adrian Hunter wrote:
> The SD/MMC protocol does not indicate which sector has the error.
> There is no possibility of trying the ith+1-segment because i is
> unknown.

Not entirely true.

I seem to remember that the MMC protocol (and probably SD protocol)
provides an ack at the end of each data block to say whether the data
block was correct or not.

Some hosts tell you when they receive this ack, and you can track how
many blocks have been successfully read without error.  The ARM MMCI
primecell does this.

However, some hosts don't give you this information, in which case you
don't know where the error occurred in the read - so when a read fails,
you can only safely report that no bytes were read successfully.  This
means that even if the error was on the last block, there's no way to
know this.

  parent reply	other threads:[~2010-09-20 13:37 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-27 11:27 [PATCH] mmc: failure of block read wait for long time Sukumar Ghorai
2010-07-27 13:22 ` Adrian Hunter
2010-07-27 13:32   ` Ghorai, Sukumar
2010-07-28  8:41     ` Adrian Hunter
2010-09-10 11:30       ` Ghorai, Sukumar
2010-09-10 11:43         ` Adrian Hunter
2010-09-10 11:48           ` Ghorai, Sukumar
2010-09-10 13:02             ` Adrian Hunter
2010-09-14  5:15               ` Ghorai, Sukumar
2010-09-20  7:54                 ` Adrian Hunter
2010-09-20  8:57                   ` Ghorai, Sukumar
2010-09-20 11:49                     ` Adrian Hunter
2010-09-20 12:37                       ` Ghorai, Sukumar
2010-09-20 13:09                         ` Adrian Hunter
2010-09-20 13:25                           ` Ghorai, Sukumar
2010-09-20 13:37                           ` Russell King - ARM Linux [this message]
2010-09-22  5:32                             ` Ghorai, Sukumar
2010-09-22 12:43                               ` Chris Ball
2010-09-22 12:51                                 ` Ghorai, Sukumar
2010-09-24 14:35                                 ` Ghorai, Sukumar
2010-09-28 15:03                                 ` Ghorai, Sukumar
2010-09-28 18:32                                   ` Adrian Hunter
2010-09-28 18:59                                     ` Ghorai, Sukumar
2010-09-28 20:05                                       ` Adrian Hunter
2010-09-29  5:59                                         ` Ghorai, Sukumar
2010-08-27 20:59 ` Chris Ball
2010-08-30 19:09   ` Ghorai, Sukumar

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=20100920133703.GC30793@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.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).