Re: [PATCH 1/4] mmc: dw_mmc: add central watchdog and convert CTO onto it
From: Sebastian Reichel
Date: Fri Nov 27 2026 - 18:22:17 EST
Hi,
On Tue, Nov 24, 2026 at 08:46:54AM +0800, Shawn Lin wrote:
> Hi Sebastian
>
> 在 2026/11/23 星期一 23:57, Sebastian Reichel 写道:
> > Hello Shawn,
> >
> > On Thu, Aug 27, 2026 at 03:58:03PM +0800, Shawn Lin wrote:
> > > + if (host->wd_events == DW_MCI_WD_DATA_EVENTS) {
> > > + dev_warn(host->dev,
> > > + "Data timeout, state %d\n", host->state);
> >
> > This new warning is now printed during boot on RK3588 and RK3576
> > (the other message from here are printed at info level):
> >
> > Sige 5 (RK3576):
> > [ 17.801623] mmc_host mmc2: Bus speed = 198000000Hz (req 200000000Hz, actual 198000000HZ div = 0)
> > [ 17.820103] dwmmc_rockchip 2a320000.mmc: Data timeout, state 3
> > [ 17.853679] dwmmc_rockchip 2a320000.mmc: Data timeout, state 3
> > [ 17.854003] dwmmc_rockchip 2a320000.mmc: Successfully tuned phase to 228
> >
> > Rock 5B (RK3588):
> > [ 3.956249] mmc_host mmc1: Bus speed = 198000000Hz (req 200000000Hz, actual 198000000HZ div = 0)
> > [ 4.049033] dwmmc_rockchip fe2c0000.mmc: Data timeout, state 3
> > [ 4.086338] dwmmc_rockchip fe2c0000.mmc: Data timeout, state 3
> > [ 4.093284] dwmmc_rockchip fe2c0000.mmc: Successfully tuned phase to 102
> >
>
> This's a normal case on Rockchip platform that no interrupt happens
> during tuning. Because the driver is seeking valid sample phases,
> however, some phases could make the controller hung. So watchdog fires
> here. Keeping it as dev_warn() only adds noise to every boot.
> Alternatively we could downgrade the message to dev_dbg().
It sounds sensible to downgrade the warning, if timeouts are considered
normal behavior.
Greetings,
-- Sebastian
Attachment:
signature.asc
Description: PGP signature