Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1010277lqs; Fri, 14 Jun 2024 11:54:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6ksKhOZ1aR2gZbTAq9vGL3anW5cW+XcrGz589SojR+ZZwiWj33aT2BdhgPs2N8YXtRINjDU+Su5uPFKCZEfyCcUf4agKD5OT6jeWwcA== X-Google-Smtp-Source: AGHT+IE+4LlLCDRiEvV4Cls/3hR/s1Cyfv3OqWIED0GtRuuAcuL9dWuHHGYB5p6CIaLvFTWPJLW4 X-Received: by 2002:a05:620a:2415:b0:795:609e:6633 with SMTP id af79cd13be357-7981017f4abmr1137835985a.30.1718391256103; Fri, 14 Jun 2024 11:54:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718391255; cv=pass; d=google.com; s=arc-20160816; b=R2B/rAl7SFo5HC4xBD6Os+dmvC1zna7boKJxgQrHwpZg7FNiNajnYFcEhPsF096fLy KWdxVi7DKjRLCQxZCUb5L4agW6s84gsfmTXTSjG7GboIZTNJ09OvBNWgm2hUGEJJe7ti JJN1GtFKg2q5E1mjPePqVRguirldiOlIwSqlyVL10/WaYAAfAt8LjDN+F1Bx3eZUGxe7 bbdRhGpXQqq/I81U+fB8BXsYXzo1oAj92W1UdKbt4eaiduXmFCY4Q59sPvYwgmNaHv5h ZPkvErtod2krktch7/oPZWrCidruCNUT7Ozz1quEqw/9HyWmrPvS0XxHmKaU2WmOX1M2 uWiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:cc:subject:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=QENhb9HFgTzguovvznEeWYIHmMFEH/ZbGTpLCqvvbY0=; fh=+HPH0HXwkicrcOi/uYvcLctadRLL5OiM2FQanu6g1lo=; b=f7CVGbdQpbjgbcpyMJqFZTA79unhvKdQSpBVoLSfYGp+T2TBy4CTh+bZ0O05Jg+hXL cyHUNwjJOUI0sT7yy9YBp6L52BwuYVx11aFFUMXZDeZJd7IndchGerXwxzTymbeofiy6 MxTIg1VsbAbR7HJLQUOAZQMzgn/LSRwd7u3OUdkWcfn8Ear/MUZ5fquDLJGpcIkHlP98 5AZbpyjFnG3MF1+ddAd1ojAt43AkjxstBtulROGsQCeNFZWbuVti4dJGSgMqvyrbNrOM Z/YwCp53Q3+FCbEtoZlxFYHFE5Vd6qMqtBDYZyh56DesLR1CynweRIgpPIHm/46h07GQ 1Mfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@folker-schwesinger.de header.s=default2212 header.b=D1SQpY5Q; arc=pass (i=1 spf=pass spfdomain=folker-schwesinger.de dkim=pass dkdomain=folker-schwesinger.de dmarc=pass fromdomain=folker-schwesinger.de); spf=pass (google.com: domain of linux-kernel+bounces-215430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=folker-schwesinger.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798aacc5246si430689085a.169.2024.06.14.11.54.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 11:54:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@folker-schwesinger.de header.s=default2212 header.b=D1SQpY5Q; arc=pass (i=1 spf=pass spfdomain=folker-schwesinger.de dkim=pass dkdomain=folker-schwesinger.de dmarc=pass fromdomain=folker-schwesinger.de); spf=pass (google.com: domain of linux-kernel+bounces-215430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=folker-schwesinger.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B92401C2303A for ; Fri, 14 Jun 2024 18:54:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C87B21A0AFD; Fri, 14 Jun 2024 18:53:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=folker-schwesinger.de header.i=@folker-schwesinger.de header.b="D1SQpY5Q" Received: from www522.your-server.de (www522.your-server.de [195.201.215.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D5B619FA84; Fri, 14 Jun 2024 18:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.201.215.122 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718391233; cv=none; b=DOAJNA+ZleYzPrrThFzs5AtaWs53B/vVL5c9+LUOLws3KnYnI3L8QLo2U+VJn4yzXkmjkIMDHm8bpMJjByLBf2qUI5zDtyWwXfnO84e11TTkQkf1TmLaoletKINU//BK/UQiCYAqFZ4HyV50kgniKCMHETXmFJENN9tLr+6dhrQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718391233; c=relaxed/simple; bh=X4on6X+88uTtA052hLd8IsojhN2ZO9yOasjMNwEvFjo=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:From:To: References:In-Reply-To; b=CHPL8eQeLcuf+xxTbOFsQfEYrv80dh2pS7Bw3rh3Y2U7xelZtsWtQRVj5295cu8/ZCbIQ6fBlj7hwSBzL8DspQyZnvLxIIvTJUdBS/7SnLmE354EtzlXLU+89bRSw8DpRZ44XbFNKQqrh3FcqSk5MElz+1R7thizGpzNDFQYPZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=folker-schwesinger.de; spf=pass smtp.mailfrom=folker-schwesinger.de; dkim=pass (2048-bit key) header.d=folker-schwesinger.de header.i=@folker-schwesinger.de header.b=D1SQpY5Q; arc=none smtp.client-ip=195.201.215.122 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=folker-schwesinger.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=folker-schwesinger.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=folker-schwesinger.de; s=default2212; h=In-Reply-To:References:To:From:Cc: Subject:Message-Id:Date:Content-Type:Content-Transfer-Encoding:Mime-Version: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=QENhb9HFgTzguovvznEeWYIHmMFEH/ZbGTpLCqvvbY0=; b=D1SQpY5Q3iU5y6hS8x3yCA2fCw Xefzm8C0+45Bsx/hdgDkRNbsSx/QEswS5UQ34JGXS6GhfYViD98oyeBpeza3esE6hVmq+sMfSpn8T MJJI+G8UJ9YF3ttwRvN2GliXh7gTihyr1Teipx7qAcKSLC9+xmPwqQ3M4P902G7Q4kAbEikSprWDp e8SrOyC+SUT00xqTD9EEtEC3l5gsMjEhnROTiPfNaL+m4kFPdK9Qw69K0E4pVp5Kbca6f05ZV1gNU Yp3CcMz1SO/a4C5cqCgerfhV3SGCbSYwDnIxP5DmaKdXcDjCMjkPzH9zKrlNe0dUYFb8725cOivwN 3AkQUWVQ==; Received: from sslproxy06.your-server.de ([78.46.172.3]) by www522.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sIBkj-000LiY-5F; Fri, 14 Jun 2024 20:34:21 +0200 Received: from [185.213.155.213] (helo=localhost) by sslproxy06.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sIBkh-000GCY-3A; Fri, 14 Jun 2024 20:34:20 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 14 Jun 2024 18:34:19 +0000 Message-Id: Subject: Re: [PATCH 1/3] phy: rockchip: emmc: Enable pulldown for strobe line Cc: "Vinod Koul" , "Kishon Vijay Abraham I" , "Chris Ruehl" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Christopher Obbard" , "Doug Anderson" , "Brian Norris" , "Jensen Huang" , , , , , From: "Folker Schwesinger" To: "Alban Browaeys" , =?utf-8?q?Heiko_St=C3=BCbner?= , "Conor Dooley" X-Mailer: aerc 0.17.0-152-g73bcb4661460 References: <20240326-rk-default-enable-strobe-pulldown-v1-0-f410c71605c0@folker-schwesinger.de> <313d5a24b6cffa1a9160e624bb6855aa7f66589e.camel@gmail.com> <20240411-mushily-pucker-732583c1d340@spud> <2192003.Icojqenx9y@diego> <2427291970ac0962bf56b2455e5cb26e49d42c51.camel@gmail.com> In-Reply-To: <2427291970ac0962bf56b2455e5cb26e49d42c51.camel@gmail.com> X-Authenticated-Sender: dev@folker-schwesinger.de X-Virus-Scanned: Clear (ClamAV 0.103.10/27306/Fri Jun 14 10:28:44 2024) Hi Alban, thanks for aggregating all the background information about the issue. On Tue Jun 11, 2024 at 9:38 PM CEST, Alban Browaeys wrote: > > Could you test the enable-strobe property on all the dts that disabled > hs400es due to this new default (I lack the hardware to test the > patches). > At least arch/arm64/boot/dts/rockchip/rk3399-khadas-edge.dtsi > arch/arm64/boot/dts/rockchip/rk3399-rock-4c-plus.dts > arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi > and ping the board tester for other boards to test if they require > "rockchip,enable-strobe-pulldown" for EMMC HS400 write support (read is > fine even with the new default). > I tested some of the boards that include rk3399-rock-pi-4.dtsi (see below). > On Tue, 2024-02-27 at 10:11 +0000, Folker Schwesinger wrote: > > with the following applied, the EMMC related errors are gone. dmesg > > only > > shows "Purging ... bytes" during my tests: > >=20 > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi > > b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi > > index f2279aa6ca9e..ae0fb87e1a8b 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi > > @@ -647,8 +647,10 @@ &saradc { > > &sdhci { > > max-frequency =3D <150000000>; > > bus-width =3D <8>; > > - mmc-hs200-1_8v; > > + mmc-hs400-1_8v; > > + mmc-hs400-enhanced-strobe; > > non-removable; > > + rockchip,enable-strobe-pulldown; > > status =3D "okay"; > > }; > >=20 > > For testing I ran dd three times in a row: > >=20 > > dd if=3D/dev/zero of=3D./zero.bin bs=3D1M count=3D5000 > >=20 > > I tested this on both a Rock 4SE board and a Rock Pi 4B+ board with > > the > > same results. > > Folker, are you confident "Rock 4SE board and Rock Pi 4B+" were fixed > with above patch? > Ie the "rockchip,enable-strobe-pulldown;" should be under an > "rockchip,rk3399-emmc-phy" compaible node, that is &emmc_phy in > arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi, not sdhci. > The above diff was just a quick shot at testing the "rockchip,enable-strobe-pulldown" property when I first learned about it. I later realized that the property belongs under the &emmc_phy node as you suggested. That's what I did in the other patchset I sent a bit later, which was accepted and applied: https://lists.infradead.org/pipermail/linux-rockchip/2024-March/045723.html f720dd9b8b6d8b2160beda789429d5489ce8a099 c1b1f340dd7db11f273e426e110697551c9f501f So yes, the Rock 4SE, Rock Pi 4B and Rock Pi 4B+ boards all were fixed with the patch. I regularly have the Rock 4SE and Rock 4B running from EMMC, always with the patch applied since I sent it.