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 E21C6CCD199 for ; Fri, 17 Oct 2025 16:35:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=13cAvU3U6r65Fx6RDliCs2bo9f64gaUNmbw2VgefUlI=; b=XWVOoH+kWRWbS5 BH2VGGzsxbCqScbNe82B46BjblPizhpAQd5OAS+WQdpN4D0ID2b6XFhc+704EiSVg2FJQqA8YUjTv VN9ajlN2wmTETNFQQctpbGiKO+glSTMhyYlOFPr0tm/q/pdKIHpMbpvrwCrXNngX8NgIaqfheonWJ B4kVJM71bHEetPxISV1eI5NY3pBLdPinlZLn7If67yd/O9o+/FZgU3WOzL9YbHbYbsVvGQBdNoiMa cwg5MbpNMySss0T0Q+HUXZ7y9g/np7kwyyh5uC4JlvtEJiQHLWWyQ9BL7sVtBN+UNgfC0TQmxrvKP 8FdL62fNJFKeNI9QavBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9nPy-00000008SkY-1p2b; Fri, 17 Oct 2025 16:35:02 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9nPx-00000008Sjt-1c2w for linux-rockchip@bombadil.infradead.org; Fri, 17 Oct 2025 16:35:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=DiU/qRnryf546DyCg24gqS1SHnp8qC1F8SvAGiAg928=; b=NIEi5nsaV/oOjBh4K+wYC4W0Tx fnIXh6VEBa1Y+VWiGGrys75I6y2G7LUV/+yLJPdr3HRyl338uRSXWGLHnyFRqSlGZPGfowPphkBj1 A4KuAvPCbg6gWp6ccdLotndJfLEezAgCKBx5W3jB1IhEkVy2Tg1F/cmUh6EUmP8tRWBxM0gL83iU+ nXcLPcvv+Mro9flFyq/kmAUfE0p+ZOkAXemTN15KnGS+eN+x3hoEXj1AzggR+Pl0L3LRRMhAUqVU6 KEO7DLz9Rdf+RkBfIYzNZkKQtKQ2hDi5ApDf6yc4Q0Fbl9pUNlj+56hRxFxYxHsnwWYJ9rBBpZzmo liVLA63w==; Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1v9nPu-00000007lWm-0e75 for linux-rockchip@lists.infradead.org; Fri, 17 Oct 2025 16:35:00 +0000 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-7a213c3c3f5so2933877b3a.3 for ; Fri, 17 Oct 2025 09:34:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760718895; x=1761323695; darn=lists.infradead.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=DiU/qRnryf546DyCg24gqS1SHnp8qC1F8SvAGiAg928=; b=S4lVLhp+EENCsszo9j/sqLPTMLIYRCDymvoBTf0kTrQ60sBSZ+2gbs4VrOGws5AhHm FCZR/1eIbJcQT5bWUnZfpDGUCxO5YVWqW3GePwbd4ZxX8bNgA2unp3tdxCJiPFrTLUwF 7TrCF19R2BSEcXJBwaMwWFQxmUCK3gc4v0/qI4hO/CK+BLEHQT6zU7NqCh0SYgBDURvQ YmBOkB9iSaEIDfDP5g17jb7OZeYFMe+fmniYaAXNd495aFZSwmiQ26591qLrDGVrorXe 2tK91Dc6d9UoWXkS210ZHIg+orPpu+RbuU7bpnkxhyCdUbktJox6p5gQHxUvLvoe4K31 /9sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760718895; x=1761323695; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=DiU/qRnryf546DyCg24gqS1SHnp8qC1F8SvAGiAg928=; b=dl3eskcz7H2uexcMueESbQQLZrTIbgGty5gktmnOyynl2k3sZRvwK4ro7L16DIYRwU DHjQzshso0elFWHaPRyoR12SDAFvdks6BDC7RSTbJz7ZRF38g71QADDhRwUd9Tox8cou XarvrpWYJc/3GSOCNzXPMnzEU6kFvHCVGd1HqcOlFiMfHKnB5HviCfDXg9xo99/hEd0/ qC6otuLnNnRGTQc4bqvhnKRMzRXETWCqfo4lDXf0mZT/CXnCaiT9x+RZeHdYqbjjuK6+ +9nIWsBxRj80g1mkjxfp9eX25b6UclzBAR0tcTHuTqZ8tXJvnwDSNrgwZf/MJIRZlSxQ scNw== X-Forwarded-Encrypted: i=1; AJvYcCUfDwc23Mbg2RN8Us1BlmMCw440WddqbduHKHTDklhR64e7AZuZVdf8IpLq4MG/Ik9/y/5D1B6H0rA1z8oa5Q==@lists.infradead.org X-Gm-Message-State: AOJu0YwpyT9zjB36BUqQOY91hT3tLa6W+CnGX3qApccKEKfWXBWsgaKY Lz1oo88sb5y4afr94ODCQrFuNyTIFb6qHvQ22s69axzeIKmvcXYKA9Gj X-Gm-Gg: ASbGncuN0eThtNPLn5/8tBVJloDTQTpo8rvpVu41PDvIOONK5yM0k2yRi7CkMMOPi8X IU+TR+YjNN82HjkE+apx6xVPbst0DLyvgJXF8Essh1nwaNQ4trFtViVXNCZlfdzzkoayDfNjDHP wTacJR9DjRLRr1Cw3nhSGxzZikLi2R+DcuvOjtBKE8aCbz/L1+rfjfbahYp2dgAqhTUGK0UFgzI LAAhaZToHKdJ+bTYgAJKpPHZoLtDhb7AyugHhJj6zUdz7jnr1YS/0jj3IrhegSpiyU+WmezpJAu OV94/FNCEw5dbKb8d9MFIJ9t4yDLi0GVe1DLADQSoWPjUhKqHl0xwrNwFpgUMUtqwy3HbVjUJCW cxDMzlVpoPQkh9pxxrvfUrPhyrzX2ckjjftMCz2Ag6q69IuLIrBVghiE27MmFvg== X-Google-Smtp-Source: AGHT+IFJ3+KNPGSuwMfsWk2oP7Mi4HeigQmPSucY0XlswK32zmoftHGchXXTi+JkTmrGrEHybr+mbA== X-Received: by 2002:a05:6a20:e291:b0:307:a015:37ef with SMTP id adf61e73a8af0-334a84da469mr5925151637.20.1760718894441; Fri, 17 Oct 2025 09:34:54 -0700 (PDT) Received: from CNSZTL-PC.lan ([2401:b60:5:2::a]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7a22ff15829sm16810b3a.11.2025.10.17.09.34.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Oct 2025 09:34:54 -0700 (PDT) Message-ID: <601cd8dc-afb5-4a67-af63-567814d755a4@gmail.com> Date: Sat, 18 Oct 2025 00:34:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: rockchip: fix eMMC corruption on NanoPC-T6 with A3A444 chips To: Dragan Simic 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 References: <20251017073954.130710-1-cnsztl@gmail.com> <7f0b1747-87eb-0b0b-6fb0-304811a4be21@manjaro.org> <41154cde-a447-0707-4387-cd3dca90b97d@manjaro.org> From: Tianling Shen In-Reply-To: <41154cde-a447-0707-4387-cd3dca90b97d@manjaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251017_173458_361256_6FBC19B2 X-CRM114-Status: GOOD ( 25.40 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On 2025/10/17 23:15, Dragan Simic wrote: > 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 ensure >>>> stable operation. >>> >>> 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). >> >> Unfortunately I don't have this board nor this eMMC chip. >> I got the chip model from my friend, it's FORESEE FEMDNN256G-A3A44, >> 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. >> >> 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. Yes for sure, thank you ;) The full cid is d6010341334134343411f63ea7208700. Thanks, Tianling. > > 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_20240815.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 = <200000000>; >>>> - mmc-hs400-1_8v; >>>> - mmc-hs400-enhanced-strobe; >>>> + mmc-hs200-1_8v; >>>> status = "okay"; >>>> }; > _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip