From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 753BBCCD199 for ; Fri, 17 Oct 2025 15:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Subject:Message-ID:MIME-Version:To:Cc:Date:References:Content-Type: In-Reply-To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5Cy8msbaVQL4RqkL1z4L//TRHjEaBia8aV/EsD4kb2A=; b=2bF/7AeG56YqOMjIiY2/SEhRUu X6jmwKuYLiPnigmzO7WfZgqB+3U6Xc4cNm0VVMtzu6sk1Xri576Ufbd8negfgRoYr1JOA+yb449QL eSgP91eMRFEtZMq/VPu/ugnS3VgcwSZxgLLoW7r6CkfpTCcdeEhfJ5mQHZR+C5gh2000aCTxyjobq q2gJ5Svc3MoghjdGcU/hNgXYI3rt67OvPmf/kvmGukXyvREVy9FaSAPglvIJKI/pFfpl3gSryqcCJ JJPty7GKrtOvsIxmn3w/UzQnsOu9Aj3L0DI5ItkQ6sYWsrmxgYWnLRA7UfZdEMm8m4wqZKorgXM3H 40ALDFbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9mB5-00000008EjJ-2yeu; Fri, 17 Oct 2025 15:15:36 +0000 Received: from mail1.manjaro.org ([142.132.176.110]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9mB2-00000008EhB-2bJQ; Fri, 17 Oct 2025 15:15:34 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPA id 46E9C40AC1; Fri, 17 Oct 2025 17:15:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=dkim; t=1760714127; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=5Cy8msbaVQL4RqkL1z4L//TRHjEaBia8aV/EsD4kb2A=; b=QBsfgZVcnnyvm8L965nE5L4uf2nbBjJxo1rMBktKk9EqMbaBT+Nd/52ep87VJSSJLbVLJg Zd/cCZu9r3jkrZsVvr4sCfmRKU2Dtgggt/bM/dS532i86M+hE1O1jtpk/T/VnD7k6bZki6 uk6M9opYXhYjb0b4dRud5dP5He929uHhe37ACltZ0YA5f6E3DkeEimf0cqWYRL1Rej2I+E Z/7g7zuaWnacdiSFUEO/ONPRNldKpZwNcmSXuuG87h74t/0j4L0KdwpQgysvrkM17y7x3U EZ1jtmirat30ocxN9DUCeardWW5kRyGGxvUequVPmRCNORaUiPm60dDRYP9eUg== From: "Dragan Simic" In-Reply-To: Content-Type: text/plain; charset="utf-8" References: <20251017073954.130710-1-cnsztl@gmail.com> <7f0b1747-87eb-0b0b-6fb0-304811a4be21@manjaro.org> Date: Fri, 17 Oct 2025 17:15:25 +0200 Cc: "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Heiko Stuebner" , "Grzegorz Sterniczuk" , "Jonas Karlman" , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org To: "Tianling Shen" MIME-Version: 1.0 Message-ID: <41154cde-a447-0707-4387-cd3dca90b97d@manjaro.org> Subject: =?utf-8?q?Re=3A?= [PATCH] =?utf-8?q?arm64=3A?==?utf-8?q?_dts=3A?= =?utf-8?q?_rockchip=3A?= fix eMMC corruption on NanoPC-T6 with A3A444 chips User-Agent: SOGoMail 5.12.3 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: None X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251017_081532_886562_AAEF9375 X-CRM114-Status: GOOD ( 23.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Friday, October 17, 2025 14:08 CEST, Tianling Shen wrote: > On 2025/10/17 18:25, Dragan Simic wrote: > > On Friday, October 17, 2025 09:39 CEST, Tianling Shen wrote: > >> From: Grzegorz Sterniczuk > >> > >> Some NanoPC-T6 boards with A3A444 eMMC chips experience I/O errors= and > >> corruption when using HS400 mode. Downgrade to HS200 mode to ensur= e > >> stable operation. > >=20 > > Could you, please, provide more details about the troublesome eMMC > > chip that gets identified as A3A444, i.e. what's the actual brand > > and model? Maybe you could send a picture of it? It might also > > help if you'd send the contents of "/sys/class/block/mmcblkX/device > > /manfid" from your board (where "X" should equal two). >=20 > Unfortunately I don't have this board nor this eMMC chip. > I got the chip model from my friend, it's FORESEE FEMDNN256G-A3A44,=20 > manfid is 0x0000d6. Thanks for responding and providing the details so quickly! > > I'm asking for that because I'd like to research it a bit further, > > if possible, because some other eMMC chips that are also found on > > the NanoPc-T6 seem to work fine in HS400 mode. [1] It may be that > > the A3A444 chip has some issues with the HS400 mode on its own, > > i.e. the observed issues may not be caused by the board. >=20 > Yes, it should be caused by this eMMC chip. I'd suggest that we move forward by "quirking off" the HS400 mode for the FEMDNN256G-A3A44 eMMC chip in the MMC drivers, instead of downgrading the speed of the sdhci interface on the NanoPC-T6. That way, the other similar Foresee eMMC chip that's also found on NanoPC-T6 boards, FEMDNN256G-A3A564, will continue to work in the faster HS400 mode, while the troublesome A3A44 variant will be downgraded to the HS200 globally for everyone's benefit. It's quite unlikely that the A3A44 variant fails to work reliable in HS400 mode on the NanoPC-T6 only, so quirking it off in the MMC drivers should be a sane and safe choice. If you agree with dropping this patch, I'll be more than happy to implement this HS200 quirk in the MMC drivers. As a note, FEMDNN256G-A3A44 is found in the Rockchip Qualified eMMC Support List v1.84, [2] but the evidence says the opposite, so we should react appropriately by adding this quirk. [1] https://github.com/openwrt/openwrt/issues/18844 [2] https://dl.radxa.com/rock5/hw/RKeMMCSupportList%20Ver1.84=5F2024081= 5.pdf > >> Signed-off-by: Grzegorz Sterniczuk > >> Signed-off-by: Tianling Shen > >> --- > >> arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi | 3 +-- > >> 1 file changed, 1 insertion(+), 2 deletions(-) > >> > >> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi b/= arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi > >> index fafeabe9adf9..5f63f38f7326 100644 > >> --- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi > >> +++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi > >> @@ -717,8 +717,7 @@ &sdhci { > >> no-sd; > >> non-removable; > >> max-frequency =3D <200000000>; > >> - mmc-hs400-1=5F8v; > >> - mmc-hs400-enhanced-strobe; > >> + mmc-hs200-1=5F8v; > >> status =3D "okay"; > >> };