From: Adrian Hunter <adrian.hunter@intel.com>
To: Avri Altman <Avri.Altman@wdc.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Cc: Ricky WU <ricky_wu@realtek.com>, Shawn Lin <shawn.lin@rock-chips.com>
Subject: Re: [PATCH v4 9/9] mmc: core: Adjust ACMD22 to SDUC
Date: Mon, 26 Aug 2024 10:34:57 +0300 [thread overview]
Message-ID: <21353874-2384-47f7-9a9a-bdaeec1ba13c@intel.com> (raw)
In-Reply-To: <DM6PR04MB6575F070F4F18224617209EAFC8B2@DM6PR04MB6575.namprd04.prod.outlook.com>
On 26/08/24 10:26, Avri Altman wrote:
>>> + /*
>>> + * SD cards, specifically high volume cards, expect to be allowed with the
>>> + * full 500msec busy period post write. Otherwise, they may not indicate
>>> + * correctly the number of bytes written.
>>> + */
>>> + if (mmc_card_ult_capacity(card))
>>> + mmc_delay(500);
>>
>> To get here, it should have had to go through:
>>
>> /* Try to get back to "tran" state */
>> if (!mmc_host_is_spi(mq->card->host) &&
>> (err || !mmc_ready_for_data(status)))
>> err = mmc_blk_fix_state(mq->card, req);
>>
>> which would mean the card is not indicating "busy".
>> Either that is not working, or it seems like an issue with the card, in which case
>> it could be a card quirk perhaps.
> I was getting here on a setup with micro-to-SD adapter - I guess because of phy errors on one of the early card versions.
> On my other setups, the recovery flow wasn't triggered.
> What was happening is:
> mmc_blk_mq_req_done
> mmc_blk_mq_complete_prev_req
> mmc_blk_mq_poll_completion
> CMD13: 0: 00080900 00000000 00000000 00000000 = READY_FOR_DATA + ERROR
> mmc_blk_mq_rw_recovery
> mmc_sd_num_wr_blocks - bytes_xfered = 0
>
> Consulting with our SD system guys, the 500msec must-have write timeout brought up,
> And fixed that.
> Shawn was interested in this as well - see the discussion in V3.
The spec reads like the timeout is for card busy. If the card is
not indicating busy when it is busy, then that is an issue with
the card.
next prev parent reply other threads:[~2024-08-26 7:35 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-25 7:41 [PATCH v4 0/9] Add SDUC Support Avri Altman
2024-08-25 7:41 ` [PATCH v4 1/9] mmc: sd: SDUC Support Recognition Avri Altman
2024-08-25 7:41 ` [PATCH v4 2/9] mmc: sd: Add Extension memory addressing Avri Altman
2024-08-26 6:43 ` Adrian Hunter
2024-08-26 7:05 ` Avri Altman
2024-08-25 7:41 ` [PATCH v4 3/9] mmc: core: Add open-ended Ext " Avri Altman
2024-08-25 7:41 ` [PATCH v4 4/9] mmc: core: Add close-ended " Avri Altman
2024-08-26 5:32 ` Avri Altman
2024-08-26 6:51 ` Adrian Hunter
2024-08-26 7:11 ` Avri Altman
2024-08-25 7:41 ` [PATCH v4 5/9] mmc: host: Always use manual-cmd23 in SDUC Avri Altman
2024-08-25 7:41 ` [PATCH v4 6/9] mmc: host: Add close-ended Ext memory addressing Avri Altman
2024-08-25 13:33 ` Avri Altman
2024-08-26 19:31 ` kernel test robot
2024-08-26 22:28 ` kernel test robot
2024-08-25 7:41 ` [PATCH v4 7/9] mmc: core: Allow mmc erase to carry large addresses Avri Altman
2024-08-25 7:41 ` [PATCH v4 8/9] mmc: core: Add Ext memory addressing for erase Avri Altman
2024-08-25 7:41 ` [PATCH v4 9/9] mmc: core: Adjust ACMD22 to SDUC Avri Altman
2024-08-26 6:34 ` Adrian Hunter
2024-08-26 7:26 ` Avri Altman
2024-08-26 7:34 ` Adrian Hunter [this message]
2024-08-26 7:39 ` Avri Altman
2024-08-26 6:46 ` [PATCH v4 0/9] Add SDUC Support Adrian Hunter
2024-08-26 6:58 ` Avri Altman
2024-08-27 7:45 ` Avri Altman
2024-08-27 7:57 ` Adrian Hunter
2024-08-27 8:45 ` Avri Altman
2024-08-27 10:58 ` Avri Altman
2024-08-27 11:30 ` Adrian Hunter
2024-08-28 14:41 ` Ulf Hansson
2024-08-29 7:10 ` Avri Altman
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=21353874-2384-47f7-9a9a-bdaeec1ba13c@intel.com \
--to=adrian.hunter@intel.com \
--cc=Avri.Altman@wdc.com \
--cc=linux-mmc@vger.kernel.org \
--cc=ricky_wu@realtek.com \
--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