From: Andrey Skvortsov <andrej.skvortzov@gmail.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: "Arnaud Ferraris" <arnaud.ferraris@gmail.com>,
"Linus Walleij" <linus.walleij@linaro.org>,
"Avri Altman" <avri.altman@wdc.com>,
"Shawn Lin" <shawn.lin@rock-chips.com>,
"Huijin Park" <huijin.park@samsung.com>,
"Christian Löhle" <CLoehle@hyperstone.com>,
"Yue Hu" <huyue2@yulong.com>,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mmc: core: Wait for command setting 'Power Off Notification' bit to complete
Date: Fri, 21 Jan 2022 19:01:23 +0300 [thread overview]
Message-ID: <YerY0504bDglnA+C@skv.local> (raw)
In-Reply-To: <CAPDyKFp=pn=yvEtur4rbQwweq2VNc8+2VniYV5ZVy8=re7VJXw@mail.gmail.com>
On 22-01-21 15:32, Ulf Hansson wrote:
> On Sat, 15 Jan 2022 at 13:15, Andrey Skvortsov
> <andrej.skvortzov@gmail.com> wrote:
> >
> > SD card is allowed to signal busy on DAT0 up to 1s after the
> > CMD49. According to SD spec (version 6.0 section 5.8.1.3) first host
> > waits until busy of CMD49 is released and only then polls Power
> > Management Status register up to 1s until the card indicates ready to
> > power off.
> >
> > Without waiting for busy before polling status register sometimes card
> > becomes unresponsive and system fails to suspend:
> >
> > [ 205.907459] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
> > [ 206.421274] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> > [ 206.421321] sunxi-mmc 1c0f000.mmc: send stop command failed
> > [ 206.421347] mmc0: error -110 reading status reg of PM func
> > [ 206.421366] PM: dpm_run_callback(): mmc_bus_suspend+0x0/0x74 returns -110
> > [ 206.421402] mmcblk mmc0:aaaa: PM: failed to suspend async: error -110
> > [ 206.437064] PM: Some devices failed to suspend, or early wake event detected
> >
> > Tested with Sandisk Extreme PRO A2 64GB on Allwinner A64 system.
> >
> > Signed-off-by: Andrey Skvortsov <andrej.skvortzov@gmail.com>
>
> I did some tests at my side too, using a Qcom platform and it worked
> fine. However, I also used the same type of card as you, as I didn't
> have any other try with at this moment.
> So, applied for fixes and by adding a fixes/stable tag, thanks!
Thank you very much.
There is one another test report, that this patch fixes suspend with
KLEVV CRAS 128GB (K128GUSD6U3-CA). [1]
1. https://gitlab.com/mobian1/issues/-/issues/389#note_816636364
> I also did a minor amendment to the patch, see below.
>
> Kind regards
> Uffe
--
Best regards,
Andrey Skvortsov
prev parent reply other threads:[~2022-01-21 16:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-15 12:14 [PATCH] mmc: core: Wait for command setting 'Power Off Notification' bit to complete Andrey Skvortsov
2022-01-18 18:48 ` Ulf Hansson
2022-01-19 6:49 ` Andrey Skvortsov
2022-01-21 14:32 ` Ulf Hansson
2022-01-21 16:01 ` Andrey Skvortsov [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=YerY0504bDglnA+C@skv.local \
--to=andrej.skvortzov@gmail.com \
--cc=CLoehle@hyperstone.com \
--cc=arnaud.ferraris@gmail.com \
--cc=avri.altman@wdc.com \
--cc=huijin.park@samsung.com \
--cc=huyue2@yulong.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=shawn.lin@rock-chips.com \
--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