From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3670D35CB6B; Mon, 9 Feb 2026 14:29:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770647345; cv=none; b=ueqz2NPpLxxBYJ5MqdjkM8saTr/zT4z68dITrGzX/Y3B43uTyALhnwMg0u/BuKIbpIO8xVXuI92sPksAPey455Y7voYeuu1OcMsSITX7sQc1DjMQxb8QGbUs7Y/1BRsmDWZjoloyItw1a35jyBwqSqe5LWXI1QE70lDZV7JZ+Ew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770647345; c=relaxed/simple; bh=3QJjEBmuaV7RfK14C1AaoaeWHCZWtjLG6OKORqnSl3Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I+76PbhZVuApmbOcWy1sctwga32e1jtY9AAzk6HycAvrow7HpHAg/3G5wb8hJm/57ryQavWAdP8eBm+itAnskWjMUczLWLXX/EnTgZoZuw6EXZgzvzpEExZUzp3ZrE7E9js1cfTiONmtROtFiamma9uraND2woSc1wrdvSHNi/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jhyD43Kn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jhyD43Kn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1F3DC116C6; Mon, 9 Feb 2026 14:29:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770647345; bh=3QJjEBmuaV7RfK14C1AaoaeWHCZWtjLG6OKORqnSl3Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jhyD43KnvtEqnUErWkwQ2wq74gIbBigCmNDFyDhSrIs52z6j4n19FHUJycewdNyKR bIPZaiVvUg0GBIzI0sFgLUbSaNTBAwY7ISpiGYCHZ8P3JxOwRgqxjWp4VVr7apMDR2 g1xvZ2/s9Hx3X3cWul3UZlZiayDUODixEgbbZyDY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dmitry Baryshkov , Manivannan Sadhasivam , Manivannan Sadhasivam , Bjorn Helgaas , Konrad Dybcio , Sasha Levin Subject: [PATCH 6.18 072/175] PCI: qcom: Remove ASPM L0s support for MSM8996 SoC Date: Mon, 9 Feb 2026 15:22:25 +0100 Message-ID: <20260209142323.041231648@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260209142320.474120190@linuxfoundation.org> References: <20260209142320.474120190@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Manivannan Sadhasivam [ Upstream commit 0cc13256b60510936c34098ee7b929098eed823b ] Though I couldn't confirm ASPM L0s support with the Qcom hardware team, a bug report from Dmitry suggests that L0s is broken on this legacy SoC. Hence, remove L0s support from the Root Port Link Capabilities in this SoC. Since qcom_pcie_clear_aspm_l0s() is now used by more than one SoC config, call it from qcom_pcie_host_init() instead. Reported-by: Dmitry Baryshkov Closes: https://lore.kernel.org/linux-pci/4cp5pzmlkkht2ni7us6p3edidnk25l45xrp6w3fxguqcvhq2id@wjqqrdpkypkf Signed-off-by: Manivannan Sadhasivam Signed-off-by: Manivannan Sadhasivam Signed-off-by: Bjorn Helgaas Tested-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Link: https://patch.msgid.link/20251126081718.8239-1-mani@kernel.org Signed-off-by: Sasha Levin --- drivers/pci/controller/dwc/pcie-qcom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c index c48a20602d7fa..6e820595ba32a 100644 --- a/drivers/pci/controller/dwc/pcie-qcom.c +++ b/drivers/pci/controller/dwc/pcie-qcom.c @@ -1033,7 +1033,6 @@ static int qcom_pcie_post_init_2_7_0(struct qcom_pcie *pcie) writel(WR_NO_SNOOP_OVERRIDE_EN | RD_NO_SNOOP_OVERRIDE_EN, pcie->parf + PARF_NO_SNOOP_OVERRIDE); - qcom_pcie_clear_aspm_l0s(pcie->pci); qcom_pcie_clear_hpc(pcie->pci); return 0; @@ -1302,6 +1301,8 @@ static int qcom_pcie_host_init(struct dw_pcie_rp *pp) goto err_disable_phy; } + qcom_pcie_clear_aspm_l0s(pcie->pci); + qcom_ep_reset_deassert(pcie); if (pcie->cfg->ops->config_sid) { @@ -1450,6 +1451,7 @@ static const struct qcom_pcie_cfg cfg_2_1_0 = { static const struct qcom_pcie_cfg cfg_2_3_2 = { .ops = &ops_2_3_2, + .no_l0s = true, }; static const struct qcom_pcie_cfg cfg_2_3_3 = { -- 2.51.0