Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1029774rdb; Wed, 6 Dec 2023 06:56:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2dX2VJl/m5czfKRdZWVoiHyJXCL9Dx6oTq8LOsD64giNLZn+eQCspDVt06R+o/+2EowZL X-Received: by 2002:a17:90a:ce02:b0:286:e264:999b with SMTP id f2-20020a17090ace0200b00286e264999bmr721634pju.59.1701874587186; Wed, 06 Dec 2023 06:56:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701874587; cv=none; d=google.com; s=arc-20160816; b=q0rX4RUxcVVOcecprClUAUg4RcnDwVgrgzz9MBoLZZdFePbS0kfQy+0tDFnITy+jsm /6JQfu806Cp8bWcifneEX9Hg6H+ckCizK564+EmPgSsL2OeGsf3qbTlCIngI9G34h0nM DOMCXJLJ8Kg1zAfG5PogxfgZSHPLCSSgNSFk31zb2aXWmS3mVKrl/SiRB8myuxRqxqUq X4Vazj10MiEiRCgAZ8eElPzfi0jTEHbaJaun659KVz5GD2cdEtiTkGZrD6M5rH6hG4lo uh7r3cu5Cya+4vss2XzoF3QldmF7vx32UZiL0SeDdU/QLungxOcYi1c8OkohvN9e3Sz9 kqyw== 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=rkOgl1NyvgIIXKflwzjnGIw2Ub8u7sNekSyAIPA6hqU=; fh=UwobDakLURT4J9oo5co8a1rw+HM7xdGf/OK8nDZBKz4=; b=pQoCk0ijkx3kUxQ3DVnhmCatQLqp2GfngyHKC2+C5HEXKxlheh7O7H8uV68yl34BUn L8hg7VF2TXJpGn5GKrqFlJzf5Nz51PM0rQrNt8KVit8LyATZgK3RXZJdrYBUuQkllSnC CiAkY6frZI0VpzoGEvfOU6YxIixH3nDAoNu0KgoBBFYtqlN57Uvg87sxZQ9I5G1ewU7G PB0ikJDwJ+FKmyniFHN6EWjhPHHx/W7/cNwRlyUvujaunhqDKC3aNlKRaGI5tWVjD1GH Z2gOg58yPdvtddSYHtdW9i3cBpjZQawQDpI7iJDCYVpaZ/ooexH+GqlyKv/a+99TR16X upjA== 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l6-20020a17090a408600b00286ef2fc253si2397497pjg.97.2023.12.06.06.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:56:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 099DC80C7FCD; Wed, 6 Dec 2023 06:56:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442399AbjLFO4A (ORCPT + 99 others); Wed, 6 Dec 2023 09:56:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442161AbjLFOzy (ORCPT ); Wed, 6 Dec 2023 09:55:54 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 121BDD46; Wed, 6 Dec 2023 06:55:58 -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 1rAtJZ-0002pK-BA; Wed, 06 Dec 2023 15:55:53 +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 15:55:52 +0100 Message-ID: <3331042.e9J7NaK4W3@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=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Wed, 06 Dec 2023 06:56:24 -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>; > 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>; also, why are you throwing out the pinctrl for the reset pin. That seems not related to the regular pins and you could instead just do + pinctrl-0 = <&pcie30x4m1_pins>, <&pcie3_reset>; Thanks Heiko > 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>; > }; >