All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Stein <alexander.stein@systec-electronic.com>
To: linux-mmc@vger.kernel.org
Subject: reading from eMMC boot partions: timeout or ECC error?
Date: Mon, 22 Oct 2012 16:59:50 +0200	[thread overview]
Message-ID: <17562013.0KIQZolflN@ws-stein> (raw)

Hello,

I'm currently investigating problems during accessing /dev/mmcblk1boot0 and
/dev/mmcblk0 simultaneously. Currenty I'm running a 3.6.2 kernel and enter the
following command directly after bootup:
> # dd if=/dev/mmcblk1boot0 of=/dev/null bs=4096 (bs is chosen arbitrary)
and get the following output:
> 64+0 records in
> 64+0 records out
> 262144 bytes (256.0KB) copied, 0.022922 seconds, 10.9MB/s
If I redo this, i get
> # dd if=/dev/mmcblk1boot0 of=/dev/null bs=4096
> 64+0 records in
> 64+0 records out
> 262144 bytes (256.0KB) copied, 0.719781 seconds, 355.7KB/s

And the following 2 lines in dmesg:
> [   39.794510] mmcblk1boot0: error -110 transferring data, sector 0, nr 32, cmd response 0x900, card status 0xb00
> [   39.805648] mmcblk1boot0: retrying using single block read

It seems the first read was successful and pretty fast and the 2nd one
eventually finished but it seems it got a timeout. The above message are
printed when the request status is MMC_BLK_ECC_ERR which in turn is set
when the following conditions is met:
drivers/mmc/card/block.c 726-728
> if ((status & R1_CARD_ECC_FAILED) ||
>     (brq->stop.resp[0] & R1_CARD_ECC_FAILED) ||
>     (brq->cmd.resp[0] & R1_CARD_ECC_FAILED))

So is this an ECC error or a timeout? Why doesn't it happen the 1st time?
Any hints?

Best regards,
Alexander

PS: Is arbitrary switching bewteen mmcblk1boot0 and mmcblk1 supported/intended?
Once I acces mmcblk1boot0 readin from mmcblk1 results in different errors.


                 reply	other threads:[~2012-10-22 15:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=17562013.0KIQZolflN@ws-stein \
    --to=alexander.stein@systec-electronic.com \
    --cc=linux-mmc@vger.kernel.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 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.