All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tor Krill <tor@openproducts.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc <linux-mmc@vger.kernel.org>
Subject: Re: Unstable mmc operation on armada38x
Date: Tue, 03 May 2016 15:35:50 +0200	[thread overview]
Message-ID: <1462282550.3203.40.camel@openproducts.com> (raw)
In-Reply-To: <CAPDyKFpH2CLxxgf+fWSkkmyAnc1Ge+Eg0zRHykJEiM3zQYTc4Q@mail.gmail.com>

Hi Uffe,

Thank you for your reply!

On mån, 2016-05-02 at 10:59 +0200, Ulf Hansson wrote:
> On 29 April 2016 at 13:48, Tor Krill <tor@openproducts.com> wrote:
> > Hi,
> > 
> > I work on a custom setup using the Solid-run ClearFog Pro that uses
> > the
> > Marvell 88F6828. I use this with a SOM that is equipped with on
> > board
> > eMMC.
> > 
> > When using the provided Marvell based kernel fork operation works
> > nicely.
> > 
> > But when i however try using either stable kernel.org, i.e. 4.5.2,
> > or
> > the latest mmc-next the system malfunctions on the mmc-operation
> > resulting in the root-filesystem remount read only and the system
> > becomes unusable. (I still use the Marvell/Solid-run u-boot to boot
> > the
> > board)
> > 
> > When doing this i get:
> > 
> > mmcblk0: error -110 sending status command, retrying
> > mmcblk0: error -110 sending status command, retrying
> > mmcblk0: error -110 sending status command, aborting
> > 
> > Thus it seems like the mmc doesn't answer the status request?
> > 
> > I have tried debug this further by enable debug on sdhci-pxav3 and
> > mmc_core. When doing so i unfortunately can't reproduce the
> > problem. I
> > do log on a slow serial port which might be the reason for
> > affecting
> > operation since i get a lot of debug messages when doing this.
> 
> We recently added mmc specific TRACE support to the MMC core. That
> allows you to trace each command/request being send to the card, if
> you don't want to affect the timing etc. I suggest you give it a try.

Thank you for that pointer. I now at least can get some capture on what
is happening. (Unfortunately i'm no expert on sd/mmc protocol)

I have created a new paste with an excerpt of the end off my
transaction:

http://pastebin.com/R32MsLyh

If i interpret it somewhat it seems like it does a write and then try
poll status of the device, which then does not respond (at all?).

> You could also try a bisect, as it seems like it might be a
> regression
> and can thus help to pin-point at what commit it broke.

This would be ideal, but since i have two different source trees,
kernel.org and Marvell/SolidRuns bsp that would be difficult. I will
try testing some of the earlier kernel.org kernels that have support
for this platform and se if i can find anything that works and then
bisect from that.

> On the other hand, the problem seems timing related, so it might be
> that the problem been around for a while but was just triggered by an
> unrelated change.

I agree, it somehow seems timing related. The big question here would
then be why it fails three times with the status request? Could it be
that the controller or mmc-chip somehow have "given up"?

Best Regards,

/Tor

      reply	other threads:[~2016-05-03 13:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29 11:48 Unstable mmc operation on armada38x Tor Krill
2016-05-02  8:59 ` Ulf Hansson
2016-05-03 13:35   ` Tor Krill [this message]

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=1462282550.3203.40.camel@openproducts.com \
    --to=tor@openproducts.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ulf.hansson@linaro.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.