From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795945300; b=zhuyrGr8gNgLV6IYTpeIJ/n9TssI7GjvrZ1osgedK65fYLIBYcj5mzNC8hvtpk1vNlZX vxdAby3OVhdhbuYtj7N70Q88KuHyUnbeErAl8H/oTQ5ZUMjCV54X5rcnE80Ly6qwaKMCa rFrKI0EcGWkGwzHPeaa5qVf6anVGM8hEpHHbmQZuxt1z4Rncgg6rYDPZh01gvDmHgjS/P 7LoXr5NF65UKDIOjfqUHEU62x2Pc4NzjlhwZ5aHcrrDNQglAwolTrijdix5JPyyMauBx0 Gs+l9I57iikdBMgHYJG/Y/FGxqZYF1hsSjB3VDiB2jUrQAthaP8+JTed5IVXef4qZSw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795945300; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; bh=cG6LJVatfNOd4PX7RWnwjHUX5ETG8sr0Jccz864y30g=; b=CqfA6QZF3p7awFcuMbTWQ+rEwf/hDUiv/MFWe7o39YubDJUwhaWyzoHabbBggart617/ y/aXPbsvkW4kSQPAesGLTOO+FVoFo8WU4IYhIAeYUg5puYZ2/M3EVH7hRhXyXhSM6qBeL qUfHULYoaHnKjvnUPFCWK4O6vF9ra+2e/OTcWiUwZbIwRHjYEExvTjrZ7ly8MXROPhisY /BQsekDcyjBMar3P7gv7hfZnMWWJJZvW5jDBYg/h8ty5+QQRlWx44yNCDNWtJzLVKm2q4 9yVbCk6Jbv1y+7y9+RL435tmjIhQhXA/zs8vLlRpAOB1W42kZziqWf9BHer7Drw0nNg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dnN4jGSh; arc=none smtp.remote-ip=209.85.221.42 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 40D65606A323 for ; Sun, 29 Nov 2026 09:41:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 40D65606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=dnN4jGSh Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-490c3ae81d3so5917644f8f.2 for ; Sun, 29 Nov 2026 01:41:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795945298; x=1796550098; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:from:to:cc :subject:date:message-id:reply-to:content-type; bh=cG6LJVatfNOd4PX7RWnwjHUX5ETG8sr0Jccz864y30g=; b=dnN4jGShJ6+h7rx5U9ofJf4wEC3EYn/F7x+q/SobrknwkKa1EJUWCQx70iaC/JYq1g 0Yw50pS67QSVmf9xn5Ze1Do9m98gWIZjmF28vSRObDhJn+O5Y1iCN8bEc7t72f0FCFk7 627muAFz+IKqN5yuB2vtPMPRHNt+IY/HOFgQ8aGGX2hDqy60rn0dia3Q0Cg105hk8BnW YzjNH6mFpcJWriA/PnS1kviuEkkyme7LpctSict2BPKlx4NAxERB2uaIxpsbJhNUzrDh f5wcSgN9OPzso9A1ocfhbhvV9w0jfd5uHotYbs9p6FdU2JoCR0an1LVShmLg+dYBZPHW Rnfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795945298; x=1796550098; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=cG6LJVatfNOd4PX7RWnwjHUX5ETG8sr0Jccz864y30g=; b=LGa9zdSZUbQrLlYdi8+oe/iTlbQHEVUpip7LojXIrava4e9NNqZ4chgux3drQCd3ob WbfUIyTRlLORl9zDPmBixjnYqf5+66uX2LXmHdPmuLr43gfpH/LxmskolayZw8EwDzFJ 3XF31M1htD2jh2gINJmbaJ1E6sfZOFC7hnWtZ9tV8RWKxy8fonCSzW8DOh4upvobv7yi D7ZjfqXG4BoxB7t1Q6ptEuo6vYFIwcyzzjZtmqLCFOqIgLLUmfz7G+xNn77bi0XBj394 rI6EDyKX/ozCHBY9HaEFmvscxxYGKyr8lzIRJXbQFDnLBElQDHrYvvw30cCBd5RemIRS SZ+w== X-Forwarded-Encrypted: i=1; AL+hErEU8jykECY4GB6Ch/Q5TQq5hLP6Qr62+f97wVdLK3hHMIb3kxv5BuNNGRVeA79z43vTZR487BYGfqAW39o=@vger.kernel.org X-Gm-Message-State: APuU4Z/ERCxhXx/9DtY7DfznO46BDD/YbiSPCLqLubiBtkORW56kAnyL T3eOTTcziv9U8MAcCVL2NOslWQmBui6xFfSwu+7GhZYUdcb34WmXqFc= X-Gm-Gg: AZFdTZe6sh903q9e68WH51+Jr5cEhUQbF/9yrkxbUd3dPAu7Ds86WXwWcU1kLUvC8Gy qJ+lS53sYDXUAhZjbJP0Rk5zk1/AuPRJF1MXZjSIrQk+AEU7rdxefBfERdkmNqqHXOZshvL07uI ovl9GYxz0ze/yQo3daD1YKKSaWmf4yV4EMHjVCF1EXZW3CTmA+d+UbOknzFGqvTgAWfpdEjzRY7 WRz1+3l0NlCIwCYzRXX40wZMM5ZW3PYl/SXynyIssgbPftH09W/VX9tT1/jBMErxGj388/DyTos 8D+kqiwlKooHGa0QsfeDb1KIq4cz6LFp2pbNDFMguzKvDkLgOnw1FZ0YAiXV4OsqkyX0Bx3Y+zl +k2krATMpDfRXn9KpFBKT5xXYhQYgii7xsWcGmgbD1L5u2tKC5hckoscOPhqfJ/SAPcoKNDUCVm mMUnDsFMInUZkzVULrQZpYE6GNa5qBTw2EF4W9WW+PbzJSHQ4MT/pIel1fntYCYeVBMTriA+UlA wGcbtj0ua2WUkjAZb5oSd6jxnv8s+rqHk895pHB+LmgX88HSjFsPrVTBDlON36wuR7ATU6ovtOR pC+wd5GBbueET3d7wUTC9jmZVHOYW4/J2/NWyip6qR5b3wsQOeubXUpyVxW9eNwg9F0DvWEem+g YOdHL X-Received: by 2002:a05:6000:481c:b0:4a5:ebcc:2260 with SMTP id ffacd0b85a97d-4abb2dda518mr57786137f8f.29.1795945298519; Sun, 29 Nov 2026 01:41:38 -0800 (PST) Received: from smtpclient.apple ([151.35.243.10]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b1ed8b6a05sm35658944f8f.43.2026.11.29.01.41.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Nov 2026 01:41:38 -0800 (PST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3901.200.71.1.16\)) Subject: Re: [PATCH 1/4] mmc: dw_mmc: add central watchdog and convert CTO onto it From: Francesco Saverio Pavone In-Reply-To: <5b7318ff-b41e-45f6-8127-d42eab0dcb67@linux.dev> Date: Sun, 29 Nov 2026 10:41:25 +0100 Cc: Shawn Lin , Ulf Hansson , Jaehoon Chung , Marek Szyprowski , linux-mmc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <80B31457-E1F0-4FED-B0A6-AF331889D274@gmail.com> 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> To: Shawn Lin , Sebastian Reichel X-Mailer: Apple Mail (2.3901.200.71.1.16) 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. 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