Re: SDHCI: timeout during data transfer

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pierre Ossman
Date: Saturday, October 18, 2008 - 1:46 pm

On Tue, 14 Oct 2008 23:13:39 +0200
"Luca Tettamanti" <kronos.it@gmail.com> wrote:


It seems to be a transfer error at least as it is in a completely
different area of the card compared to the first mail you sent.


Looking at the dump, the controller seems to be doing the correct
thing. The timeout mandated by the SD specification is 250 ms, and that
time has passed if you look at the timestamps. If you look at some
other writes further down, the card takes around 220 ms for the writes.
IOW, it would seem that this card is cutting it a bit close and
sometimes goes over the alloted time.


Since it is the card that's the problem here, not the controller, we'd
need to fix this in the core. Unfortunately the sdhci hardware is a bit
inflexible so any change I make will result in a doubling of the
timeout.

Could you try modifying line 283 of drivers/mmc/core/core.c where it
says "limit_us = 250000;" to 300000 instead?


Windows doesn't do proper handling of timeouts. It just sets the
maximum timeout and hopes for the best.


What's the vendor and model of the failing card?

-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  rdesktop, core developer          http://www.rdesktop.org

  WARNING: This correspondence is being monitored by the
  Swedish government. Make sure your server uses encryption
  for SMTP traffic and consider using PGP for end-to-end
  encryption.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SDHCI: timeout during data transfer, Luca Tettamanti, (Tue Sep 23, 2:24 pm)
Re: SDHCI: timeout during data transfer, Pierre Ossman, (Thu Oct 2, 1:17 am)
Re: SDHCI: timeout during data transfer, Luca Tettamanti, (Thu Oct 2, 2:11 am)
Re: SDHCI: timeout during data transfer, Luca Tettamanti, (Fri Oct 3, 4:27 am)
Re: SDHCI: timeout during data transfer, Pierre Ossman, (Sun Oct 12, 1:52 am)
Re: SDHCI: timeout during data transfer, Luca Tettamanti, (Tue Oct 14, 2:34 am)
Re: SDHCI: timeout during data transfer, Luca Tettamanti, (Tue Oct 14, 2:13 pm)
Re: SDHCI: timeout during data transfer, Luca Tettamanti, (Tue Oct 14, 2:21 pm)
Re: SDHCI: timeout during data transfer, Pierre Ossman, (Sat Oct 18, 1:46 pm)
Re: SDHCI: timeout during data transfer, Luca Tettamanti, (Mon Oct 20, 5:20 am)
Re: SDHCI: timeout during data transfer, Pierre Ossman, (Sun Oct 26, 4:35 am)