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 74FCECD13CF for ; Tue, 11 Nov 2025 23:07:22 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=6LFGjSE+CurZkfMk4kthBgKzNi/opqUlSPmnzb1dg60=; b=T4fX2+NEDptONV 4jxPddyG7Jp6nCJVoBtRV8AH/6lCxqlHpN3Tz+mgQ1fyR1nAdv3R+HXQ6TX8O9UDE/9mU1GreVxY7 4vXmsajdh4Buv9wOP1vYJEMyFGAIHawCGr9Cx2QAIEm1E89OSSRin5NAQKjKkjNttjVWb/bmilzr1 SqEjhs2JDQHDsMYWVzy43ABlKh5RxYS1Y9nhM0GOW7PKJhG5Lxb3qgTh6uJRexkbnOXCAZdlaSn9n U06h1mxnBWHQvdfTUWSegf0sEHmtkTBsLEj8Zu4M2vglPt5+D1570I04ZjmuvsvTXKrUipTW41FVV msbizTBQbl/ZLee35mJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vIxSE-00000007rzd-3qdx; Tue, 11 Nov 2025 23:07:14 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vIxSC-00000007rzQ-4BiC; Tue, 11 Nov 2025 23:07:13 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 10F0760051; Tue, 11 Nov 2025 23:07:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83B1DC4AF09; Tue, 11 Nov 2025 23:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762902431; bh=IWaM6CDGnSAC6qohFfgy7sPG58r65YBIiW+Qqnin45s=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=NIsHRwtM9RtVAveYD7hxhkQk2BIMsIkYUeUZPG2ttP4o2ZHS8gUyQ+ezYo/ROnHNL ZGkfAiVYCouHoUZMCLyzLAPBVaU1V3tfo222E+IVfFEgIGTfqGu1kxwuniBfhj5fF2 T3bPCc7oF1rMZ4X3AqtNc0ahRt5X3OPEjEexkdaLc+BRGnE79Kmk2JQ74xaqJPX9ia JWB3MLuNI635l+qnj9OXSZ8hFS9VdbUX0dLG1eYUVWHnVITxgYHka2GkmjGCTyE3WC ebjeEIpdODruvkyUzuIMbDa11SMUpYR+Zjkr8XxquSvB4Tb7IXP8p9EioT2D0Kx4HJ ZLwMVqRFWlBJw== Date: Tue, 11 Nov 2025 17:07:10 -0600 From: Bjorn Helgaas To: Frank Li Cc: Niklas Cassel , Shawn Lin , Manivannan Sadhasivam , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Heiko Stuebner , Kever Yang , Simon Xue , Damien Le Moal , Dragan Simic , FUKAUMI Naoki , Diederik de Haas , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Fabio Estevam , Conor Dooley , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , Hans Zhang , linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, kernel@pengutronix.de, Bjorn Helgaas Subject: Re: [PATCH 1/4] PCI: dwc: Advertise L1 PM Substates only if driver requests it Message-ID: <20251111230710.GA2210983@bhelgaas> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On Tue, Nov 11, 2025 at 05:48:07PM -0500, Frank Li wrote: > On Tue, Nov 11, 2025 at 04:16:08PM -0600, Bjorn Helgaas wrote: > > From: Bjorn Helgaas > > > > L1 PM Substates require the CLKREF# signal and may also require > > device-specific support. If CLKREF# is not supported or driver support is > > lacking, enabling L1.1 or L1.2 may cause errors when accessing devices, > > e.g., > > > > nvme nvme0: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS=0x10 > > > > If the kernel is built with CONFIG_PCIEASPM_POWER_SUPERSAVE=y or users > > enable L1.x via sysfs, users may trip over these errors even if L1 > > Substates haven't been enabled by firmware or the driver. > > > > To prevent such errors, disable advertising the L1 PM Substates unless the > > driver sets "dw_pcie.l1ss_support" to indicate that it knows CLKREF# is > > present and any device-specific configuration has been done. > > > > Set "dw_pcie.l1ss_support" in tegra194 (if DT includes the > > "supports-clkreq' property) and qcom (for 2.7.0 controllers) so they can > > continue to use L1 Substates. > > > > Based on Niklas's patch: > > https://patch.msgid.link/20251017163252.598812-2-cassel@kernel.org > > > > Signed-off-by: Bjorn Helgaas > > --- > > .../pci/controller/dwc/pcie-designware-ep.c | 2 ++ > > .../pci/controller/dwc/pcie-designware-host.c | 2 ++ > > drivers/pci/controller/dwc/pcie-designware.c | 24 +++++++++++++++++++ > > drivers/pci/controller/dwc/pcie-designware.h | 2 ++ > > drivers/pci/controller/dwc/pcie-qcom.c | 2 ++ > > drivers/pci/controller/dwc/pcie-tegra194.c | 3 +++ > > 6 files changed, 35 insertions(+) > > > ... > > > > +void dw_pcie_config_l1ss(struct dw_pcie *pci) > > +{ > > + u16 l1ss; > > + u32 l1ss_cap; > > + > > + if (!pci->l1ss_support) > > I think when l1ss_support true, need return. > when l1ss_support false, need clean PCI_L1SS_CAP. > > Do your logic reverise? Yes! Thank you, fixed locally. _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip