Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp854661rdb; Wed, 6 Dec 2023 01:36:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaZQx0jjZ8l5ptfuxxnI9Q4OfjjW2rRSX3qZgFyPDymTmUnwztGV3CiHk7Zb7T3SQzmlLd X-Received: by 2002:a05:6358:33a3:b0:16e:2898:5e02 with SMTP id i35-20020a05635833a300b0016e28985e02mr866300rwd.32.1701855403730; Wed, 06 Dec 2023 01:36:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701855403; cv=none; d=google.com; s=arc-20160816; b=tG7Mo6j1Sz8wmAQbgjNYBFz1qS16v4Ri+CenapQ/Ut+CvTYIUfI0bn1np/KxPk1imy sT7tlkrtj7dpw7z/ax4zlQiIAaFFuXJXmKW9uGA5/u451y2ol6FnbPHokERLBQp7Ckkt j4Vxj2gwiDD7PftIqp6huYOj7jyzEkpCX56rllS9vnqJ3JCxRZIvzLMR94Ecq4RCIJtR 1pLiwjwPmzE1osgYD+yduRah8M+LeH35gTY+VFYwjf7njvJQ49Rw6/hqby5mvA5VR/nA d45BWuzVD6eDm6cH0+3DU6srq20vFnGMF5usFBHUN5ly41LBqqw2NNrNFCGeKmM/o0Le 8nlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=UzGQT28LxcWfJmsXPWFwzhtNjbRL1FztguevbFS4tHs=; fh=UwobDakLURT4J9oo5co8a1rw+HM7xdGf/OK8nDZBKz4=; b=CWsgJOi1HOEiWzsGP4uYmdY8+b2aFsEEF0c3kci5Uwe+gl4Hq25gR1Lt2+HXDSZq0+ t1f40crifdkdqLGDZBQAeD/y0zcvyYUFRMtNWsoR/tooeoEconzlcHWIwW6RoQpAXeFM KvG29SSg4YOVD+tPap34DdS+HwN9/cjnZwEgPSGbuR56B+we65UMmSjKP5p698T8LNNP MVLlNHhE2e6spyRfqN+Sw/pCcETSOWkD4C29u1DYYt/SSO9XB2aeXuANM2lxXQeoaScE UHiiPtfkq95hnbOp2LL3Z964S+3YjFtt18CZ4SJjkhJCMCGJTx0/dXqmnl9Ft+boFheQ /nVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id f27-20020a631f1b000000b005b9519d9e3esi5638292pgf.242.2023.12.06.01.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 01:36:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6A77B808577E; Wed, 6 Dec 2023 01:36:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377200AbjLFJf6 (ORCPT + 99 others); Wed, 6 Dec 2023 04:35:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377310AbjLFJfu (ORCPT ); Wed, 6 Dec 2023 04:35:50 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83F12BA; Wed, 6 Dec 2023 01:35:54 -0800 (PST) Received: from i53875b61.versanet.de ([83.135.91.97] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAoJp-0008S0-Tl; Wed, 06 Dec 2023 10:35:49 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Rob Herring , Sam Edwards Cc: linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Daniel =?utf-8?B?S3VraWXFgmE=?= , Sven Rademakers , Joshua Riek , Sam Edwards Subject: Re: [RESEND PATCH] arm64: dts: rockchip: Add PCIe pinctrls to Turing RK1 Date: Wed, 06 Dec 2023 10:35:48 +0100 Message-ID: <2724771.ElGaqSPkdT@diego> In-Reply-To: <20231205202900.4617-1-CFSworks@gmail.com> References: <20231205202900.4617-1-CFSworks@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 06 Dec 2023 01:36:10 -0800 (PST) Am Dienstag, 5. Dezember 2023, 21:28:59 CET schrieb Sam Edwards: > The RK3588 PCIe 3.0 controller seems to have unpredictable behavior when > no CLKREQ/PERST/WAKE pins are configured in the pinmux. In particular, it > will sometimes (varying between specific RK3588 chips, not over time) shut > off the DBI block, and reads to this range will instead stall > indefinitely. > > When this happens, it will prevent Linux from booting altogether. The > PCIe driver will stall the CPU core once it attempts to read the version > information from the DBI range. > > Fix this boot hang by adding the correct pinctrl configuration to the > PCIe 3.0 device node, which is the proper thing to do anyway. While > we're at it, also add the necessary configuration to the PCIe 2.0 node, > which may or may not fix the equivalent problem over there -- but is the > proper thing to do anyway. :) > > Fixes: 2806a69f3fef6 ("arm64: dts: rockchip: Add Turing RK1 SoM support") > Signed-off-by: Sam Edwards > --- > .../arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi | 14 ++------------ > 1 file changed, 2 insertions(+), 12 deletions(-) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi > index 9570b34aca2e..129f14dbd42f 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3588-turing-rk1.dtsi > @@ -214,7 +214,7 @@ rgmii_phy: ethernet-phy@1 { > &pcie2x1l1 { > linux,pci-domain = <1>; > pinctrl-names = "default"; > - pinctrl-0 = <&pcie2_reset>; > + pinctrl-0 = <&pcie30x1m1_pins>; This really throws me for a loop here - in the original submission too already. Because somehow those pins are named pcie30x1... for the pcie2 controller ;-) . > reset-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; > status = "okay"; > }; > @@ -226,7 +226,7 @@ &pcie30phy { > &pcie3x4 { > linux,pci-domain = <0>; > pinctrl-names = "default"; > - pinctrl-0 = <&pcie3_reset>; > + pinctrl-0 = <&pcie30x4m1_pins>; > reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; > vpcie3v3-supply = <&vcc3v3_pcie30>; > status = "okay"; > @@ -245,17 +245,7 @@ hym8563_int: hym8563-int { > }; > }; > > - pcie2 { > - pcie2_reset: pcie2-reset { > - rockchip,pins = <4 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; > - }; > - }; > - > pcie3 { > - pcie3_reset: pcie3-reset { > - rockchip,pins = <4 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; > - }; > - > vcc3v3_pcie30_en: pcie3-reg { > rockchip,pins = <2 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>; > }; >