All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: Shawn Lin <shawn.lin@rock-chips.com>, linux-mmc@vger.kernel.org
Subject: Re: Write errors on Cherrytrail eMMC
Date: Sun, 11 Oct 2015 19:45:10 +0200	[thread overview]
Message-ID: <1444585510.28661.68.camel@hadess.net> (raw)
In-Reply-To: <56186468.80805@rock-chips.com>

On Sat, 2015-10-10 at 09:05 +0800, Shawn Lin wrote:
> 
<snip>
> No, sdhci finally complete the tansfer. So, you can try to augment
> the 
> timeout [here, mod_timer(&host->timer, timeout)] to see how the
> things 
> going.

I applied this patch to get some more debug, and increase the default
timeout. I'm not certain this was actually used for all the codepaths,
but I certainly saw that it was getting applied at least in some cases.

What would those errors be this time?

Cheers

Oct 11 12:12:53 localhost kernel: mmc0: starting CMD25 arg 06ec2808 flags 000000b5
Oct 11 12:12:53 localhost kernel: mmc0:     blksz 512 blocks 1024 flags 00000100 tsac 1200 ms nsac 8000
Oct 11 12:12:53 localhost kernel: mmc0:     CMD12 arg 00000000 flags 0000049d
Oct 11 12:12:53 localhost kernel: mmc0: SDHCI controller on ACPI[80860F14:00], timeout is 10000, increasing to 100000 
Oct 11 12:12:53 localhost kernel: sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00000001
Oct 11 12:14:33 localhost kernel: mmc0: Timeout waiting for hardware interrupt.
Oct 11 12:14:33 localhost kernel: sdhci: =========== REGISTER DUMP (mmc0)===========
Oct 11 12:14:33 localhost kernel: sdhci: Sys addr: 0x00000400 | Version:  0x00001002
Oct 11 12:14:33 localhost kernel: sdhci: Blk size: 0x00007200 | Blk cnt:  0x000003f8
Oct 11 12:14:33 localhost kernel: sdhci: Argument: 0x06ec2808 | Trn mode: 0x0000002b
Oct 11 12:14:33 localhost kernel: sdhci: Present:  0x1fff0106 | Host ctl: 0x00000035
Oct 11 12:14:33 localhost kernel: sdhci: Power:    0x0000000b | Blk gap:  0x00000080
Oct 11 12:14:33 localhost kernel: sdhci: Wake-up:  0x00000000 | Clock:    0x00000007
Oct 11 12:14:33 localhost kernel: sdhci: Timeout:  0x00000008 | Int stat: 0x00000000
Oct 11 12:14:33 localhost kernel: sdhci: Int enab: 0x02ff000b | Sig enab: 0x02ff000b
Oct 11 12:14:33 localhost kernel: sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
Oct 11 12:14:33 localhost kernel: sdhci: Caps:     0x446cc8b2 | Caps_1:   0x00000007
Oct 11 12:14:33 localhost kernel: sdhci: Cmd:      0x0000193a | Max curr: 0x00000000
Oct 11 12:14:33 localhost kernel: sdhci: Host ctl2: 0x0000008b
Oct 11 12:14:33 localhost kernel: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x3fa28008
Oct 11 12:14:33 localhost kernel: sdhci: ===========================================
Oct 11 12:14:33 localhost kernel: mmc0: SDHCI controller on ACPI[80860F14:00], timeout is 10000, increasing to 100000 
Oct 11 12:14:33 localhost kernel: sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00000003
Oct 11 12:14:33 localhost kernel: mmc0: req done <CMD23>: 0: 00000000 00000000 00000000 00000000
Oct 11 12:14:33 localhost kernel: mmc0: req done (CMD25): 0: 00000900 00000000 00000000 00000000
Oct 11 12:14:33 localhost kernel: mmc0:     0 bytes transferred: -110
Oct 11 12:14:33 localhost kernel: mmc0:     (CMD12): 0: 00000d00 00000000 00000000 00000000
Oct 11 12:14:33 localhost kernel: mmc0: starting CMD13 arg 00010000 flags 00000195
Oct 11 12:14:33 localhost kernel: mmc0: SDHCI controller on ACPI[80860F14:00], timeout is 10000, increasing to 100000 
Oct 11 12:14:33 localhost kernel: sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00000001
Oct 11 12:14:33 localhost kernel: mmc0: req done (CMD13): 0: 00000900 00000000 00000000 00000000
Oct 11 12:14:33 localhost kernel: mmc0: starting CMD13 arg 00010000 flags 00000195
Oct 11 12:14:33 localhost kernel: mmc0: SDHCI controller on ACPI[80860F14:00], timeout is 10000, increasing to 100000 
Oct 11 12:14:33 localhost kernel: sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00000001
Oct 11 12:14:33 localhost kernel: mmc0: req done (CMD13): 0: 00000900 00000000 00000000 00000000
Oct 11 12:14:33 localhost kernel: mmcblk0: error -110 transferring data, sector 116140040, nr 1024, cmd response 0x900, card status 0xd00
Oct 11 12:14:33 localhost kernel: blk_update_request: I/O error, dev mmcblk0, sector 116140040
Oct 11 12:14:33 localhost kernel: Buffer I/O error on dev mmcblk0p6, logical block 2676993, lost async page write
Oct 11 12:14:33 localhost kernel: blk_update_request: I/O error, dev mmcblk0, sector 116140048
Oct 11 12:14:33 localhost kernel: Buffer I/O error on dev mmcblk0p6, logical block 2676994, lost async page write
Oct 11 12:14:33 localhost kernel: blk_update_request: I/O error, dev mmcblk0, sector 116140056

  reply	other threads:[~2015-10-11 17:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-10  0:19 Write errors on Cherrytrail eMMC Bastien Nocera
2015-10-10  1:05 ` Shawn Lin
2015-10-11 17:45   ` Bastien Nocera [this message]
2015-10-16 10:08     ` Bastien Nocera
2015-10-16 14:41       ` Bastien Nocera
2015-10-20  9:44         ` Bastien Nocera

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=1444585510.28661.68.camel@hadess.net \
    --to=hadess@hadess.net \
    --cc=linux-mmc@vger.kernel.org \
    --cc=shawn.lin@rock-chips.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 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.