From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 9DD442EB841 for ; Fri, 9 Jan 2026 07:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767943278; cv=none; b=IT1BFUPmwLqjCeM99iCmhnsQAIhsrLWDKFgSD1EcgtTtqjasjDDnRdjgyya/Pi2NWEij+cWG+pSh0tKayjuA+ftr9VApaSYGDg61HgVVXSMrofhHbJICG72NtNgxm6zqhxsMoWrqw6E7IIq9hyy1Mj6+PThDRGQK17fsOZiC7Qk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767943278; c=relaxed/simple; bh=2iLTHGWWp4AzJ7oli8atcmBSsHfhHA2O0yBWHWcnRNs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=QYvobEjgiI6rAly2+L5we9BbLdgWbcGxyr5wgOpOELtcLUOW+89pU2YgzcCnWMVQQhrfwXAyModx3JCmDiTkxewK/PmoxPbmYANs9UzOhxGQ+meNSmQ6SVns/rse5dD8oUtulgccrhhSy2M8fRXnS/V/ntLx7bAY8TYrgH+btwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=BoEBzhfi; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=MsvDWh1i; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="BoEBzhfi"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="MsvDWh1i" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6094HPjE2706811 for ; Fri, 9 Jan 2026 07:21:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=w8/JF4/tv+7RolLNf/bATg nZLPU/tYClxfiouVTfnE8=; b=BoEBzhfiEu9C8OxNDpUZR1L+WlHQxrirT5yAj9 cWij1FcNbWSZPZu2AFk72pzlUpAmaRgyQOUaqzTlDtswEGmPB4aQ61hH49+L1rq9 DCwJyqz+ssfW8Ywi39mERZd0atmz9n6qLbioJwZVyEUAP0NQJhgNF/OiTeO1/lwP 0Zuxs1/6wsFsQbH8HigyMVdqndX/YiqWBrBW6R2NnUA3NZM/l0LEFOEZAgxXoL5e LqwLU13M2WdLeOj2A6oiLta8HjFmAgjzzekVXZSmSQ+XOPmKwIKbMXzuDFb4tJSb caGpJRlIOzYDBnV6f57LR/wGOzolr2AcxYtloEbC7+lKg3CQ== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4bj9hqun4f-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 09 Jan 2026 07:21:15 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2a0fe4ade9eso41661835ad.0 for ; Thu, 08 Jan 2026 23:21:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1767943275; x=1768548075; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=w8/JF4/tv+7RolLNf/bATgnZLPU/tYClxfiouVTfnE8=; b=MsvDWh1iwBcZJYg8oQPk73CpBuH+D1yHfgTxGfDWXjmLoqP+GjEjzUqo5K0cCGc746 s4LbuYSQdAoqCjZeBwfXxm1C4xLVSl9w2ceOairHNVEBWRJlSXQ2lvT+w2GU1Fund7Nl q2/9pGV1QZw1mkLfdcaovRvZND7JMhOe2HR4h6q/OKl+84SFI7w0LLQjC98jhJzwhcAw pWJSmMNddclC9JNR4DyCNLSm1Aa1owmFnRY/+BztGpQiFPdVg2+jhGzBX6YzEdy7sj1b 47g6S3rRFGHbfLBBZcyu7Jd4Nx0KT3KdkEMi7gaQ0xmVjZ3YTbm+Ije2QUG0a5eX0ag9 dm0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767943275; x=1768548075; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=w8/JF4/tv+7RolLNf/bATgnZLPU/tYClxfiouVTfnE8=; b=iaFWj6207VHIH5Pv/e4aZ97SSST6SyaIyPHz6O9gXoe08+YpRvlbQ1Z8z1ik3zJvki o9+PwG79i+qF7SVm1nElxYf7YpSDQ7uCE6Xr2XPtPhaGJIdgfmCpJvK5VLnUN+UYJvtf YchXToIQIBOxPI23Yix3wmg8IlJbu+7JVB+FtnVvXWXR+pU1nC/nP2sfoADHFORCp8si q4UDFoZg2+FIZkzI6G965UjiOsTrVzfoKVZs3qAC5Qhk7MygxRLiRjBd4HmjI4G7caWP DxvgQ7GAYRF+vuT/1BLrf9THS6svj4wuuepJ4e3h9d8gPXBkYnT1owtr2BB0WSsfB7LS oHig== X-Forwarded-Encrypted: i=1; AJvYcCXs+Wi66mFXFiOJFcnQCogUCzLJqVYeGh6JKHZZIr8F78zPeTEiG4Ce06A3u7TBe/g9k3t7umTNUA1Lss8=@vger.kernel.org X-Gm-Message-State: AOJu0Yyg6NyWVJb6dFAIbH9LvH2b/FvQYqVHutXURYjxpbMK8RfKJDwu ZKp3WY6MTcI6FcahD0yAvQ4k4Vi2m4m8CZgdImSVwTW1+JQ2nzPhmJ7gevXiY2vkmqetPkFdcW7 GchuQtDh0aBZ8qAQiYx8L0JenhAg2WpgaCSbxOy7wbJZYfpvEcmaUzKAUBgiAVx8W/ew= X-Gm-Gg: AY/fxX4DfO39+f10vKz2vT7lawoQ+WW/Eg7UWWGnRaKaXFFQRvyTgYNRNEaUoEQ9D5P 5VDhU3FHPpqcJITJiM23ouVALdlnGV8xHVYGZ6R02dJ+KlQ+9/FrE9ro89zUvqRBcIlu0H2sjZF X18Xhh2liJPdskr3kNTJus5t6rhiz7KU5igvdvfOKSmWcd1d6Teo45tyUgKCfmZpbVu45HqUcTn DTZaqOfsKgANx1iFhyZjNAsxy+sCRp2vXyo42o0V2LLnSIfDVdyYuuK15RfiFlZXNMzab08+gun AKnCVk+wFN+taptej4DFi16t2E71a7pXBw7a3lGY0LMmb5xg7bb6zyW4+W9D6cC7OFoyXUYf9wj ULs9Tu/E4UkKAV6hVSCjMsRVE+rudpPEmIQUjLh/S5FHl X-Received: by 2002:a17:903:19c8:b0:2a3:1b33:ae30 with SMTP id d9443c01a7336-2a3ee4a653cmr68656025ad.51.1767943275035; Thu, 08 Jan 2026 23:21:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmX85K7l00KBW1kA6f3TQ3NMAR6fIywTS9QpDPhMAiF3kY9dOi0NzcCSQ3m6cZ6XwkDmcefw== X-Received: by 2002:a17:903:19c8:b0:2a3:1b33:ae30 with SMTP id d9443c01a7336-2a3ee4a653cmr68655745ad.51.1767943274505; Thu, 08 Jan 2026 23:21:14 -0800 (PST) Received: from hu-krichai-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-819bb4c85bfsm9510369b3a.30.2026.01.08.23.21.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 23:21:14 -0800 (PST) From: Krishna Chaitanya Chundru Subject: [PATCH 0/5] PCI: qcom: Add link retention support Date: Fri, 09 Jan 2026 12:51:05 +0530 Message-Id: <20260109-link_retain-v1-0-7e6782230f4b@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGGsYGkC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI1NDAwND3ZzMvOz4otSSxMw83TRDC0NjA3NLE/NUEyWgjoKi1LTMCrBp0bG 1tQDBpc5xXQAAAA== X-Change-ID: 20251001-link_retain-f181307947e4 To: Vinod Koul , Neil Armstrong , Philipp Zabel , Jingoo Han , Manivannan Sadhasivam , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Krishna Chaitanya Chundru X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1767943270; l=2484; i=krishna.chundru@oss.qualcomm.com; s=20230907; h=from:subject:message-id; bh=2iLTHGWWp4AzJ7oli8atcmBSsHfhHA2O0yBWHWcnRNs=; b=ieJv0ul7NIphohRIMQNN6yUm+5gKS7whPVUUZtuXY2TeKz3puKJwi0QVvzHH5JsVCQwJ30t9W nWs5yjR+ZeRBqwJ15FQLxGnQ+FCMeD5fWD3NrNzUS04gRCgUgnsQ7eN X-Developer-Key: i=krishna.chundru@oss.qualcomm.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-Authority-Analysis: v=2.4 cv=GN8F0+NK c=1 sm=1 tr=0 ts=6960ac6b cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=gKsALX6-UOwXnLYYSJMA:9 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-GUID: YTp3bH6ILtoItN1QrtFbHXh6ra-lWqjL X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMTA5MDA1MCBTYWx0ZWRfX29WUls6tdsuB JZHZlRQMBV/wkngRCITYlblGOt8/IyRIPl7W3CcLJDVzCipFbDvhjN93L0o9bh8LhA5kJrF+NNF IhYzIMdR77X2l6CiYDd4vDEXgmhvpyon5f2LtnW++CsHL6j3DQL+xDIYIcokumOTC6AYO44+7qO yB345yESft/LzykgGL1J32hhbDWqQt55aX7tZqweHH1GFs78a3It64wu950pb5MLcFdvLLQ6PMS 7aIcWjozx/Uos10u/s5n6vOoDW3VfxJMz1sRkITZ7HFq+OYJeb7j/0jO28eBHQYBou9dIV6uwDA iAZkkHcPsTL9zES2j830IfHO3b3IsBHNCR06uwgMdfd6jjpEuElvLFkI7QVNZUnXaplgLJjxq32 l/GMPeSDfsJfhJTRZXoBjLzxudN+zbdyjuJt3F/SR0w7Yu0DgmROlpTdtWIDv/MjRnZFhuubtHJ CArP2+rW7pRpevNFWaw== X-Proofpoint-ORIG-GUID: YTp3bH6ILtoItN1QrtFbHXh6ra-lWqjL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2026-01-09_02,2026-01-08_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 clxscore=1015 phishscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 malwarescore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2512120000 definitions=main-2601090050 This patch series introduces support for retaining the PCIe link across bootloader and kernel handoff on Qualcomm platforms, specifically X1E80100. The goal is to reduce boot time and avoid unnecessary link reinitialization when the link is already up. We are not enabling link retantion support for all the targets, as there is no guarantee that the bootloader on all targets has initialized the PCIe link in max supported speed. So we are enabling for hamoa & glymur target only for now based on the config flag. If the link is up and has link_retain is set to true in the ithe driver config data then enable retain logic in the controller. In phy as we already have skip init logic, the phy patch uses same assumption that if there is phy no csr and bootloader has done the init then driver can skip resetting the phy when phy status indicates it is up. Problem:- 1) As part of late init calls of clock & GENPD(for power domains) the framework is disabling all the unvoted resources by that time and also there is no sync state to keep them enabled till the probe is completed. Due to dependencies with regulators and phy, qcom pcie probe is happening after late init which is causing the resources(clocks & power domains) to be off which causes the link to go down. To avoid this we need to use these two kernel command line arguments (clk_ignore_unused & pd_ignore_unused) to skip disabling clocks and gendp power domains as part of late init for initial version. Once it is resolved we can avoid those kernel command line arguments. Signed-off-by: Krishna Chaitanya Chundru --- Krishna Chaitanya Chundru (5): phy: qcom: qmp-pcie: Skip PHY reset if already up PCI: dwc: Add support for retaining link during host init PCI: qcom: Keep PERST# GPIO state as-is during probe PCI: qcom: Add link retention support PCI: qcom: enable Link retain logic for Hamoa drivers/pci/controller/dwc/pcie-designware-host.c | 11 ++-- drivers/pci/controller/dwc/pcie-designware.h | 1 + drivers/pci/controller/dwc/pcie-qcom.c | 62 ++++++++++++++++++++--- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 28 ++++++---- 4 files changed, 83 insertions(+), 19 deletions(-) --- base-commit: fc065cadc7ed048bedbb23cb6b7c4475198f431c change-id: 20251001-link_retain-f181307947e4 Best regards, -- Krishna Chaitanya Chundru