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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB3FAC4345F for ; Mon, 15 Apr 2024 07:00:23 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C01028816D; Mon, 15 Apr 2024 09:00:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=manjaro.org header.i=@manjaro.org header.b="ryimga2J"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1A14F8813A; Mon, 15 Apr 2024 09:00:15 +0200 (CEST) Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8E8B687B89 for ; Mon, 15 Apr 2024 09:00:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dsimic@manjaro.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1713164411; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nnMoA6nlTOQ8Y1FJGNXAYhu5Ygd5cEAwohu4KahR6CI=; b=ryimga2Jm9Q0wfTvnO2fx9ph7qnloxCFY0e69ZUfmu5bPzpiYPF/dIuJbv76LBQw+r3mhq vG7XHBnEkrWqfC/ENef2yQKrF9JcX8L+p0i0VMvmMH8EFwez9s98FEcYxT7HZg45LmlBQD ndZVWOqC7I8a4F01Z7JmiyLFTwAHzWMfM3h4a1yaurOSUIvA4YrPThBhsXKAsx4ZXzydEx Lwz0W9MmWJmO3TH5r0ydD2S4dO+qN433jGkKV3h8JzynPwfZfsr89NJSEj8PtwEabkBsjf EPeGXEJ/dF0sDei5L+dMwpKhx7ROQmFWCfjqMFVHl/+BtvZvAhXDgiNdwM4Dgw== Date: Mon, 15 Apr 2024 09:00:10 +0200 From: Dragan Simic To: Jonas Karlman Cc: Kever Yang , Simon Glass , Jagan Teki , Philipp Tomsich , Tom Rini , John Clark , Tom Fitzhenry , Elon Zhang , Quentin Schulz , u-boot@lists.denx.de Subject: Re: [PATCH v2 23/23] rockchip: rk3588: Enable use of eMMC HS200 mode on a few missed boards In-Reply-To: <20240413181425.1384357-24-jonas@kwiboo.se> References: <20240413181425.1384357-1-jonas@kwiboo.se> <20240413181425.1384357-24-jonas@kwiboo.se> Message-ID: <0bfe98a361956a2e1464d5327756ccab@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hello Jonas, Please see my comments below. On 2024-04-13 20:13, Jonas Karlman wrote: > A few RK3588 boards are missing a mmc-hs200 prop to signal that HS200 > mode is supported in addition to HS400, this lead to bad performance > reading FIT in SPL and broken MMC write. > > Add cap-mmc-highspeed and mmc-hs200-1_8v to affected boards to enable > use of eMMC HS200 mode. > > Signed-off-by: Jonas Karlman Shouldn't it be better to follow the Linux kernel's logic in the MMC driver, and enable the HS200 mode when the DT indicates that the HS400 mode is suported? In other words, exactly what you already submitted to the mailing list. [1] That would allow a significant cleanup of the U-Boot dtsi files to be performed. Until that's resolved, the patch is looking good to me. Reviewed-by: Dragan Simic [1] https://lore.kernel.org/u-boot/20240408210619.3749231-1-jonas@kwiboo.se/ > --- > v2: New patch > > All these mmc-hs200 prop overrides may not be needed if the patch "mmc: > Imply HS200 cap with mmc-hs400 prop to match linux" [1] gets applied, > until such time this matches what has been done for all other RK35xx > boards. > > [1] https://patchwork.ozlabs.org/patch/1921039/ > --- > arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi | 5 +++++ > arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi | 5 +++++ > arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi | 5 +++++ > arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi | 5 +++++ > arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi | 5 +++++ > arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi | 5 +++++ > 6 files changed, 30 insertions(+) > > diff --git a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi > b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi > index dd0058262b7f..fc4b13628b30 100644 > --- a/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi > +++ b/arch/arm/dts/rk3588-edgeble-neu6a-io-u-boot.dtsi > @@ -15,6 +15,11 @@ > }; > }; > > +&sdhci { > + cap-mmc-highspeed; > + mmc-hs200-1_8v; > +}; > + > &sdmmc { > bus-width = <4>; > status = "okay"; > diff --git a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi > b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi > index a45b3f5e86ad..a0c62072c34e 100644 > --- a/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi > +++ b/arch/arm/dts/rk3588-edgeble-neu6b-io-u-boot.dtsi > @@ -14,3 +14,8 @@ > u-boot,spl-boot-order = &sdmmc; > }; > }; > + > +&sdhci { > + cap-mmc-highspeed; > + mmc-hs200-1_8v; > +}; > diff --git a/arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi > b/arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi > index e8566785e965..354e4a8d39e3 100644 > --- a/arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi > +++ b/arch/arm/dts/rk3588-evb1-v10-u-boot.dtsi > @@ -10,3 +10,8 @@ > u-boot,spl-boot-order = "same-as-spl", &sdhci; > }; > }; > + > +&sdhci { > + cap-mmc-highspeed; > + mmc-hs200-1_8v; > +}; > diff --git a/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi > b/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi > index 968385622fa5..7948464ac85f 100644 > --- a/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi > +++ b/arch/arm/dts/rk3588-nanopc-t6-u-boot.dtsi > @@ -11,6 +11,11 @@ > bootph-some-ram; > }; > > +&sdhci { > + cap-mmc-highspeed; > + mmc-hs200-1_8v; > +}; > + > &sfc { > pinctrl-names = "default"; > pinctrl-0 = <&fspim1_pins>; > diff --git a/arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi > b/arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi > index 7b937943a53c..d764135ab661 100644 > --- a/arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi > +++ b/arch/arm/dts/rk3588-quartzpro64-u-boot.dtsi > @@ -4,3 +4,8 @@ > */ > > #include "rk3588-u-boot.dtsi" > + > +&sdhci { > + cap-mmc-highspeed; > + mmc-hs200-1_8v; > +}; > diff --git a/arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi > b/arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi > index 1aeb5410e43e..c5c94b421d1e 100644 > --- a/arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi > +++ b/arch/arm/dts/rk3588-toybrick-x0-u-boot.dtsi > @@ -10,3 +10,8 @@ > u-boot,spl-boot-order = "same-as-spl", &sdhci; > }; > }; > + > +&sdhci { > + cap-mmc-highspeed; > + mmc-hs200-1_8v; > +};