From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.224.83.233 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796091776; b=y/mBe34LpZ6QPTscPHnR0J9wln0qTcHNFtqM2rhdy3tJ87illF3EylIzkIY+fCsRQ6pi 6c3nUXLgbN/ZXof1woHIKAQ6eP8c26Zw2Xak3RScVoaOaLyZKzHxGhsdIqAL40aSD+aRU 7PBwmCUFi+Fx0Q/2FvKSew4fg0VUpV3v2jqJgPVOFYcUnglyEI0PSXMu2dktybkVWknYK qAkQlFhu3Dp4OMvU7CfPbBuyNSA5bKhYAT6C0boaXCbO42cTXIr8g9GJHzIMbB6ghy6Nr 9S6aieJpUMQIFznLp/cxTeWufgCHhvFXRDSBy0sah7wAvBeFXeblVzIduyCBwEi8zRg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796091776; h=DMARC-Filter:Received:Message-ID:Date:MIME-Version:User-Agent:Cc: Subject:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-HM-Tid:X-HM-MType:X-HM-Spam-Status: DKIM-Signature; bh=iMKBLCO0Puc5KY5+I2XTsJFQ+PMurd6+Zp9Cl8fFxvQ=; b=WmDZHnHoMTV4qQwccs1+66Ydx2Hz8fUMd2gUFr+ssT63ta8KCWpPwN07vI5QPMfEtDmo oh+23H/Qf47KAb56xXY3KEoi8au6aYkRkmBiEmGSQLigLPNySb3zN7o4HnSHIvNFlAVSN OcqqnMrc6YRXc3k56Y3arAozxamiG82tLQAyageaLsnTXrQ83Ie6bBmjXrT0QpDTSsYIS Pz/KFfepw9jVWt/M8rbzYU0Vn3dHzmUtMYfNHh0vD986X0tfSXVr0pgSZ8ahqaWHbp1Vp MM4Io1S9xTEGjEi3EpdSdKLZ7F2GfKQBwxoJ3DV+LfuM569wKU2C9M1BGf4HOMUpqtw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=rock-chips.com; spf=pass smtp.mailfrom=rock-chips.com; dkim=pass header.d=rock-chips.com header.i=@rock-chips.com header.a=rsa-sha256 header.s=default header.b=d02eCT3p; arc=none smtp.remote-ip=156.224.83.233 Received: from mail-m83233.xmail.ntesmail.com (mail-m83233.xmail.ntesmail.com [156.224.83.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D084606A31A; Tue, 1 Dec 2026 02:22:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3D084606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.a=rsa-sha256 header.s=default header.b=d02eCT3p Received: from [172.16.12.48] (unknown [61.154.14.86]) by smtp.qiye.163.com (Hmail) with ESMTP id 5698bc2bc; Tue, 1 Dec 2026 10:22:42 +0800 (GMT+08:00) Message-ID: <613ac7d8-4bce-4764-9234-7686351200fb@rock-chips.com> Date: Tue, 1 Dec 2026 10:22:38 +0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: shawn.lin@rock-chips.com, Lee Jones , Ulf Hansson , Jaehoon Chung , Marek Szyprowski , linux-mmc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Sebastian Reichel Subject: Re: [PATCH 1/4] mmc: dw_mmc: add central watchdog and convert CTO onto it To: Francesco Saverio Pavone , Shawn Lin References: <1787817486-137277-1-git-send-email-shawn.lin@rock-chips.com> <1787817486-137277-2-git-send-email-shawn.lin@rock-chips.com> <5b7318ff-b41e-45f6-8127-d42eab0dcb67@linux.dev> <80B31457-E1F0-4FED-B0A6-AF331889D274@gmail.com> From: Shawn Lin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Tid: 0aa22f69587503a4kunm0b6b78fcfb3f89 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVkZSEtJVksaQkMZSEJDGUlKH1YVFA kWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlNSlVKTk9VSk9VQ01ZV1kWGg8SFR0UWUFZT0tIVUpLSE pKQkxVSktLVUpCS0tZBg++ DKIM-Signature: a=rsa-sha256; b=d02eCT3p25LbBkTj7NFaRInbqqoU4s5QvHcMad8FzIsuOec4uiqZw+WBY2Gd7CXJcC9SukeG1gYFfeJzn4WxPENNAd1Mmrccr3VwwIfVJnFiUXZZFY0wrPLMsOPxCTEL770gtI0XGCvEaxNuCHVrpfmIuXHMbe/IoGrO/rR/Yas=; s=default; c=relaxed/relaxed; d=rock-chips.com; v=1; bh=iMKBLCO0Puc5KY5+I2XTsJFQ+PMurd6+Zp9Cl8fFxvQ=; h=date:mime-version:subject:message-id:from; 在 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 >