From: Shawn Lin <shawn.lin@rock-chips.com>
To: Francesco Saverio Pavone <pavone.lawyer@gmail.com>,
Shawn Lin <shawn.lin@linux.dev>
Cc: shawn.lin@rock-chips.com, Lee Jones <lee@kernel.org>,
Ulf Hansson <ulfh@kernel.org>,
Jaehoon Chung <jh80.chung@samsung.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
linux-mmc@vger.kernel.org, linux-rockchip@lists.infradead.org,
linux-kernel@vger.kernel.org,
Sebastian Reichel <sebastian.reichel@collabora.com>
Subject: Re: [PATCH 1/4] mmc: dw_mmc: add central watchdog and convert CTO onto it
Date: Tue, 1 Dec 2026 10:22:38 +0800 [thread overview]
Message-ID: <613ac7d8-4bce-4764-9234-7686351200fb@rock-chips.com> (raw)
In-Reply-To: <A31CE74C-6AD3-4884-B0BB-F1D7726B283E@gmail.com>
在 2026/11/30 星期一 19:12, Francesco Saverio Pavone 写道:
> Hi Shawn,
>
>> The CRC error case may come from the abort command which didn't
>> disarm the watchdog. Could you help test the patch below:
>>
>> https://lore.kernel.org/linux-mmc/20261123191703.179283-12-lee@kernel.org/
>
> Tested on the ROCK 5B+: plain v7.4-rc4 against v7.4-rc4 plus that
> patch, five boots each, alternating.
>
> v7.4-rc4 "Data timeout, state 3" once in 5 of 5 boots
> v7.4-rc4 + patch "Data timeout, state 3" once in 5 of 5 boots
>
> Tuning succeeded in all ten (phase 59, 69 or 70), 36 to 70 ms after
> the switch to 198 MHz. The warning comes 0.4 to 2.5 ms before the
> "Successfully tuned" line, and there were no other mmc messages. So
> the patch does not change this warning here.
>
> The message points the same way in all ten boots. dw_mmc prints "Data
> timeout" only when the data events are the ones being watched, and
> state 3 is STATE_DATA_BUSY, so the request is still open and waiting
> for data-over.
drto timeout, 15ms, is safe enough for just one time tuning. So this
matches what you saw here, the requesting was still going, the MINTST
was empty, and watchdog fired out. The same event (a tuning command is
declared "data timeout", DRTO is synthesized, the transfer ends) while
in STATE_DATA_BUSY with an empty MINTSTS already existed before the
central watchdog series.
The old code synthesized DRTO on that branch silently (no print). The
series (strictly speaking, ec0db371236e which moved DTO onto the central
watchdog) only added a dev_warn, so it changed a silent recovery into a
visible warning.
static void dw_mci_dto_timer(struct timer_list *t)
{
...
switch (host->state) {
case STATE_SENDING_DATA:
case STATE_DATA_BUSY:
host->data_status = SDMMC_INT_DRTO;
set_bit(EVENT_DATA_ERROR, &host->pending_events);
set_bit(EVENT_DATA_COMPLETE, &host->pending_events);
queue_work(system_bh_wq, &host->bh_work);
break; /* <- no warning: DRTO synthesized silently */
...
}
So bascilly, I suggest to change this dev_warn to dev_dbg.
> Francesco
>
next prev parent reply other threads:[~2026-12-01 2:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 7:58 [PATCH 0/4] mmc: dw_mmc: replace three fallback timers with a single watchdog Shawn Lin
2026-08-27 7:58 ` [PATCH 1/4] mmc: dw_mmc: add central watchdog and convert CTO onto it Shawn Lin
2026-11-23 15:57 ` Sebastian Reichel
2026-11-24 0:46 ` Shawn Lin
2026-11-27 23:21 ` Sebastian Reichel
2026-11-29 9:41 ` Francesco Saverio Pavone
2026-11-30 0:43 ` Shawn Lin
2026-11-30 11:12 ` Francesco Saverio Pavone
2026-12-01 2:22 ` Shawn Lin [this message]
2026-08-27 7:58 ` [PATCH 2/4] mmc: dw_mmc: convert DTO onto the central watchdog Shawn Lin
2026-08-27 7:58 ` [PATCH 3/4] mmc: dw_mmc: absorb CMD11 timeout into " Shawn Lin
2026-08-27 7:58 ` [PATCH 4/4] mmc: dw_mmc: expose the watchdog state in debugfs Shawn Lin
2026-09-10 16:05 ` [PATCH 0/4] mmc: dw_mmc: replace three fallback timers with a single watchdog Ulf Hansson
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=613ac7d8-4bce-4764-9234-7686351200fb@rock-chips.com \
--to=shawn.lin@rock-chips.com \
--cc=jh80.chung@samsung.com \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=m.szyprowski@samsung.com \
--cc=pavone.lawyer@gmail.com \
--cc=sebastian.reichel@collabora.com \
--cc=shawn.lin@linux.dev \
--cc=ulfh@kernel.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
all inboxes | Powered by JetHome®