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 44D41CFD35A for ; Mon, 24 Nov 2025 21:17:50 +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=Yc1S5rmoKqGtXsiXBouSr0xY3ep0fJWRP0mRvSwC+H4=; b=b6N/xWl5TJcOq+ uUyx3YjYfWd3Sjg42AqfNskE5jun0PjMRF3dEFv0SRuW0AlDdewiXZfk83mks0Q0hrzOK3ZmVgRAj Un6PJWES5eg4+tYzxHNITB7WXcpEDqmOn3tm+2Q6MhnnjHSZkR5YN7bteRAByvw/o9CgdRra/3rzf gqaqvOnH1TzOOfRSowz4jwYgjF1ttZ3QoN0wuIuprvjH9JPL1mCD3xPmEUFcNa7b64Us3r3uQ75xb Vg2Fm95ur2WZLP62bTO9pB6VRxza58wkYxd5W6RRmE+qDyNeZJBTIJOs/3sQK6QaZ03USR+a4xClo q/qPNIC+H21b1EvcBx8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vNdwI-0000000CKJo-1Dr5; Mon, 24 Nov 2025 21:17:38 +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 1vNdwG-0000000CKJX-084w; Mon, 24 Nov 2025 21:17:36 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id F00AA6016B; Mon, 24 Nov 2025 21:17:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C776C4CEF1; Mon, 24 Nov 2025 21:17:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764019054; bh=zNscfGKNv8hOqltmXFupMlNTAemel39zeYpn0jPX3vU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=cVxo5EX/R2ICIvKcH/weXjupo/uWy6PvclGfFyub18qbj/qqn+BV+Zhk466UmgpJf SeKSng0Rv1ctPCUzCh6kymHgMU2YrzY6Qojs1MQtPcobL7W/tqqWYVSzaKa68yB28W EJhwdmokiSXpWG6Z/56omkP7MXeLYhhEA6Jm1vOKgdOWkzYzj4kvNok9IigFNPyqhS YtUYlCPYj6kKsMVHprA+65OzaipVnn8PtcuNMzIXFaW6YE8EfdhkHISCY7nNjK3NCT agsMK5BeKtOygvJCO9wlLu+NCSNplvmvG6U6gxyBIrNK4B/b1jwA7JagAxJWlJu0kN /ifcj8YO2ZVQQ== Date: Mon, 24 Nov 2025 15:17:33 -0600 From: Bjorn Helgaas To: Manivannan Sadhasivam Cc: Niklas Cassel , Shawn Lin , 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 , Frank Li , 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: <20251124211733.GA2712491@bhelgaas> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20251118202210.GA2586610@bhelgaas> 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 18, 2025 at 02:22:13PM -0600, Bjorn Helgaas wrote: > On Wed, Nov 12, 2025 at 11:21:07PM +0530, Manivannan Sadhasivam wrote: > > On Wed, Nov 12, 2025 at 09:22:36AM +0100, Niklas Cassel wrote: > > > On Tue, Nov 11, 2025 at 04:16:08PM -0600, Bjorn Helgaas wrote: > > > > --- a/drivers/pci/controller/dwc/pcie-designware-host.c > > > > +++ b/drivers/pci/controller/dwc/pcie-designware-host.c > > > > @@ -1060,6 +1060,8 @@ int dw_pcie_setup_rc(struct dw_pcie_rp *pp) > > > > PCI_COMMAND_MASTER | PCI_COMMAND_SERR; > > > > dw_pcie_writel_dbi(pci, PCI_COMMAND, val); > > > > > > > > + dw_pcie_config_l1ss(pci); > > > > > --- a/drivers/pci/controller/dwc/pcie-qcom.c > > > > +++ b/drivers/pci/controller/dwc/pcie-qcom.c > > > > @@ -1067,6 +1067,8 @@ static int qcom_pcie_init_2_7_0(struct qcom_pcie *pcie) > > > > val &= ~REQ_NOT_ENTR_L1; > > > > writel(val, pcie->parf + PARF_PM_CTRL); > > > > > > > > + pci->l1ss_support = true; > > > > + > > > > val = readl(pcie->parf + PARF_AXI_MSTR_WR_ADDR_HALT_V2); > > > > val |= EN; > > > > writel(val, pcie->parf + PARF_AXI_MSTR_WR_ADDR_HALT_V2); > > > > > > While it seems like ops_2_7_0 is the only type that explicitly does a > > > register write to enable L1ss, other versions might have the register > > > as enabled by default, so it would be nice if Mani could confirm exactly > > > which versions that should set l1ss_support = true. > > > > > > > Yes, on the rest of the platforms, this bit is supposed to be enabled by > > default. AFAIK, all Qcom platforms should support L1SS, atleast the > > non-IPQ/APQ ones. > > > > We should set it for below cfgs: > > > > cfg_fw_managed > > cfg_sc8280xp > > cfg_1_34_0 > > cfg_1_9_0 > > cfg_2_7_0 > > Except for cfg_fw_managed, the above are all covered by > qcom_pcie_init_2_7_0(), either via ops_2_7_0, ops_1_9_0, or > ops_1_21_0. > > cfg_fw_managed is harder because we don't use dw_pcie_host_init() or > dw_pcie_setup_rc(). > > We do allocate a struct dw_pcie (where l1ss_support is) in > qcom_pcie_ecam_host_init(), but only so we can call > dw_pcie_msi_host_init() and dw_pcie_msi_init(). I'm just back from vacation so might be forgetting something, but I think cfg_fw_managed is OK here because in that case we never call dw_pcie_host_init(), so we never call dw_pcie_setup_rc() where dw_pcie_hide_unsupported_l1ss(). So the L1SS cap should remain untouched and presumably advertises the L1SS support we want for cfg_fw_managed. Bjorn _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip