From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.178 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795999404; b=vUrz2GyrntuzV6jp6RDbra9EBD5d6vHDeDDiUtQkPzepUWNju0Jl++S4p66FDn0Uijrj 5gMLJQR9idStxoNLLgwHyoKm7IbxDpz0PANOQcE5pc7XwFhcNYIgnpOyiGPXURyHLtvAJ G2SmPXctYLzPABPK5r94APk2tyvA8xw7Ksl15GxcrpddnU95UutO4g/4CZ73UjgzoBQpA BbXrI9QsUId654cSYKqL54jXg1NIKuSSKwDeD5wYmisybdaHIY6Cw2M784QnVplz0gc9p awTHP2I8BKu+wtaCZFebJRr+LTmz1STFcK8BaC8jne0tBX2xo3V0bOiqMSdQQVs7Ypg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795999404; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Cc:Subject:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=AcMoryYGvEVyjFMCGb7YQdY6GGLPYVu5PnNVavKGtcE=; b=m8Brb525vYmiiL8CdP692k0OQsfpitTpXyi/56MnGmpgMaG5nl2WyZJWiJg+ZU/YI6rP Ud/IJ0cB59F3UV5upmTjv77/JX+6brqxFxfeIfkYICs2TPrDRTEVi2lxcmKH8imTS40uG G1f+A1j7guMrX+bkbw0fgOyC4LRFX1qGvd9V96Q5hDrTS4PZCspQnCpj5Ghf8WqSckwrC 0GAidKR1kQOKAJYb6DV8tm7+N7CYDsUIySR5wtURcgZd7f9KkbxIkQo/wp8NExiX8NRaJ 6W0DSPCNHPHxTJ3WcntLBiRoWEDZT3aRjQm53i3YuKXWFBNM/EsxRLF0mfCjjcWE5RA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=rxPBtIs2; arc=none smtp.remote-ip=95.215.58.178 Received: from mta1.migadu.com (out-178.mta1.migadu.com [95.215.58.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36536606A325 for ; Mon, 30 Nov 2026 00:43:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 36536606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=rxPBtIs2 X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=hOVuh+qkizzRy+rRaI/b90rElEWu6+c5TvsCoUaxxWM=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795999400; v=1; x=1796604200; b=rxPBtIs2wFFCmPkcHiycQyAImCWLM0kKW0LUbYMFmAPEBBvt8QXVB0tAeXDGe5NOneG4b249 pjH/KuwjRlAL1fw+QdiWEKZrO2+bMT7qH4ktTrFXPqIH+dVZI75uH3M1fbkss9WABe1lZ1o9fZf mvp5I40dUuUQ1pSiJK7l60Ng= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 0e8d0ca8adc11d5e; Mon, 30 Nov 2026 00:43:19 +0000 X-Mizu-Trace-ID: 0e8d0ca8adc11d5e X-Migadu-Flow: FLOW_OUT Message-ID: Date: Mon, 30 Nov 2026 08:43:03 +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@linux.dev, Shawn Lin , 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 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: <80B31457-E1F0-4FED-B0A6-AF331889D274@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Francesco, 在 2026/11/29 星期日 17:41, Francesco Saverio Pavone 写道: > Hi Shawn, > > Same warning here on a ROCK 5B+ (RK3588, fe2c0000.mmc, SDR104 at > 198 MHz), once or twice per boot, with plain v7.4-rc4 too. > > The rest is from a tree with Collabora's rockchip-devel and local > patches on top; dw_mmc.c there is the mainline file. > > I had a trace on one of these, in case the detail is useful. In the > one boot I traced, the CRC error comes 10 ms after the command, the > watchdog is re-armed and fires 15 ms later with MINTSTS empty, and > data-over shows up a few microseconds after the driver stops the DMA. > So it looks held back until the teardown, not lost. > > As a local experiment I sent CMD19 through PIO instead of IDMAC, tuning > only. In two boots data-over arrived for all 284 tuning commands, > including the four that failed, and the watchdog never fired. PIO > changes the order of events too, so I would not read a cause into it. > > I can test a patch if you send one. > 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/ > LLM agents (OpenAI Codex and Hermes) wrote the trace code and ran the > boots on my board, and Claude helped write this mail. I checked the > numbers against the logs. > > Francesco