From: Tony Lindgren <tony@atomide.com>
To: Adam Ford <aford173@gmail.com>
Cc: Romain Naour <romain.naour@smile.fr>,
Linux-OMAP <linux-omap@vger.kernel.org>,
Nishanth Menon <nm@ti.com>,
linux-mmc@vger.kernel.org, Ulf Hansson <ulf.hansson@linaro.org>,
Adrian Hunter <adrian.hunter@intel.com>
Subject: Re: sdhci-omap: issues with PM features since 5.16
Date: Tue, 13 Feb 2024 08:03:02 +0200 [thread overview]
Message-ID: <20240213060302.GD52537@atomide.com> (raw)
In-Reply-To: <CAHCN7xJZXVXxiwBXgGKhGmBQhCAFfa4Tn=tJcGLX3N==tgvFzQ@mail.gmail.com>
* Adam Ford <aford173@gmail.com> [240212 13:24]:
> On Mon, Feb 12, 2024 at 1:28 AM Tony Lindgren <tony@atomide.com> wrote:
> >
> > * Adam Ford <aford173@gmail.com> [240208 12:57]:
> > > I was testing the newer MMC driver on an AM3517 a few months ago, and
> > > I noticed that SD cards were returning weird or empty data after some
> > > indeterminate amount of time. If I read the IOS file immediately
> > > after boot, it worked. If I forced some sort of file IO, it might
> > > work, but after it went idle, it appeared to have strange data. I
> > > don't think this bug is limited to one platform.
> >
> > OK interesting. So the zero values for ios are expected when the card
> > is idle. What do you mean by weird values when idle?
>
> I meant zero-values when I said weird. It's weird to me, because
> other platforms don't return zero.
> If tha's normal, I'll likely submit an update to omap3.dtsi to migrate
> the MMC driver to the newer one.
> I'd been meaning to do that for a while, but this threw me off, then i
> forgot about it until I saw this thread.
Yes I'd like to enable sdhci-omap and deprecate omap_hsmmc too.
Assuming no issues and if the hs200 issue is a separate issue, maybe
post the patches and then let's get some Tested-by for them before we
put them into Linux next.
> > Can you please try catch the weird values or a failure maybe with
> > something like:
> >
> > while true; do
> > cat /sys/kernel/debug/mmc0/ios
> > fdisk -l /dev/mmcblk0
> > cat /sys/kernel/debug/mmc0/ios
> > sleep 20
> > done
>
> It appears the first time, that runs after fdisk, the values seems
> reasonable, but subsequent iterations, the values are zero again:
Seems expected to me. Before fdisk -l the mmc controller may have
autoidled showing mostly zero values, and after any access to the mmc
card the card is enabled and the values are the normal enabled values.
If, however, fdisk -l does not work, or the values right after fdisk -l
are mostly zero, then that would indicate a problem. I guess leaving
out the reading of ios before fdisk -l would make it easier to see.
Regards,
Tony
next prev parent reply other threads:[~2024-02-13 6:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-26 20:53 sdhci-omap: issues with PM features since 5.16 Romain Naour
2024-01-27 4:48 ` Tony Lindgren
2024-01-29 10:11 ` Romain Naour
2024-01-29 11:17 ` Tony Lindgren
2024-01-29 17:42 ` Romain Naour
2024-01-30 11:14 ` Romain Naour
2024-01-31 10:30 ` Tony Lindgren
2024-02-01 9:04 ` Romain Naour
2024-02-02 4:36 ` Tony Lindgren
2024-02-08 11:29 ` Romain Naour
2024-02-08 12:57 ` Adam Ford
2024-02-12 7:27 ` Tony Lindgren
2024-02-12 13:24 ` Adam Ford
2024-02-13 6:03 ` Tony Lindgren [this message]
2024-02-13 12:43 ` Adam Ford
2024-02-13 12:58 ` Tony Lindgren
2024-03-15 23:49 ` Romain Naour
2024-03-21 9:48 ` Tony Lindgren
2024-01-30 11:15 ` Tony Lindgren
2024-01-30 11:22 ` Romain Naour
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=20240213060302.GD52537@atomide.com \
--to=tony@atomide.com \
--cc=adrian.hunter@intel.com \
--cc=aford173@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=nm@ti.com \
--cc=romain.naour@smile.fr \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox