* Re: [PATCH 4/4] arm64: dts: qcom: glymur: Describe the PCIe thermal inputs
@ 2026-12-05 9:55 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2026-12-05 9:55 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp
::::::
:::::: Manual check reason: "linux-review patch is more than 7 days old, verify it wasn't already superseded"
::::::
BCC: lkp@intel.com
CC: llvm@lists.linux.dev
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20261125-glymur-thermal-fix-v1-4-b93a9feae156@oss.qualcomm.com>
References: <20261125-glymur-thermal-fix-v1-4-b93a9feae156@oss.qualcomm.com>
TO: Manivannan Sadhasivam via B4 Relay <devnull+manivannan.sadhasivam.oss.qualcomm.com@kernel.org>
TO: "Rafael J. Wysocki" <rafael@kernel.org>
TO: Daniel Lezcano <daniel.lezcano@kernel.org>
TO: Zhang Rui <rui.zhang@intel.com>
TO: Lukasz Luba <lukasz.luba@arm.com>
TO: Manivannan Sadhasivam <mani@kernel.org>
TO: Lorenzo Pieralisi <lpieralisi@kernel.org>
TO: "Krzysztof Wilczyński" <kwilczynski@kernel.org>
TO: Rob Herring <robh@kernel.org>
TO: Bjorn Helgaas <helgaas@kernel.org>
TO: Krzysztof Kozlowski <krzk@kernel.org>
TO: Conor Dooley <conor+dt@kernel.org>
TO: Bjorn Andersson <andersson@kernel.org>
TO: Konrad Dybcio <konradybcio@kernel.org>
TO: Abel Vesa <abelvesa@kernel.org>
CC: linux-pm@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: linux-arm-msm@vger.kernel.org
CC: linux-pci@vger.kernel.org
CC: devicetree@vger.kernel.org
Hi Manivannan,
kernel test robot noticed the following build errors:
[auto build test ERROR on 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4]
url: https://github.com/intel-lab-lkp/linux/commits/Manivannan-Sadhasivam-via-B4-Relay/thermal-of-Add-thermal_zone_get_zone_by_node-API/20261125-111741
base: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
patch link: https://lore.kernel.org/r/20261125-glymur-thermal-fix-v1-4-b93a9feae156%40oss.qualcomm.com
patch subject: [PATCH 4/4] arm64: dts: qcom: glymur: Describe the PCIe thermal inputs
:::::: branch date: 9 days ago
:::::: commit date: 9 days ago
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20261205/20261205044836.jXBGV1wt-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 63b30c97f6082ebf34b31bdd81bb50df7672b67b)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261205/20261205044836.jXBGV1wt-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/20261205044836.jXBGV1wt-lkp@intel.com/
All errors (new ones prefixed by >>):
also defined at arch/arm64/boot/dts/qcom/glymur-crd.dtsi:791.8-798.3
>> ERROR: Input tree has errors, aborting (use -f to force output)
--
also defined at arch/arm64/boot/dts/qcom/mahua-lenovo-thinkpad-t14s-gen7-lcd.dts:841.8-848.3
>> ERROR: Input tree has errors, aborting (use -f to force output)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 0/4] PCI: qcom: Recalibrate the PHY on temperature drift
@ 2026-11-25 10:17 Manivannan Sadhasivam
2026-11-25 10:17 ` Manivannan Sadhasivam via B4 Relay
0 siblings, 1 reply; 4+ messages in thread
From: Manivannan Sadhasivam @ 2026-11-25 10:17 UTC (permalink / raw)
To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
Manivannan Sadhasivam, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio,
Abel Vesa
Cc: linux-pm, linux-kernel, linux-arm-msm, linux-pci, devicetree,
Manivannan Sadhasivam
Problem Statement
=================
Some PCIe PHY instances on SoCs like Glymur benefit from periodic
recalibration to compensate for temperature-related drift and maintain
stable link operation. Otherwise there is a potential for a link drop.
The PHY gets calibrated when the link trains and it cannot recalibrate
itself while the link is up, so the recalibration has to be driven by
software.
Proposal
========
The PCIe controller driver triggers the recalibration with a PCIe link
speed switch once the temperature change on a polled sensor exceeds the
defined threshold. For this purpose, the driver needs to know which
sensors track the PHY temperature and the drift temperature. Both of them
vary per platform, so they come from DT.
Once a zone has drifted far enough, the driver performs the link speed
switching by scaling down the Target Link Speed to 2.5 GT/s and then
restoring the original Target Link Speed. This forces the link to run
Equalization again, which recalibrates the PHY against the current
temperature, thereby maintaining stable link operation. Equalization only
runs on a speed change to 8.0 GT/s or above.
Patch 1 adds a lookup from a DT node to its thermal zone, which the driver
needs for resolving the phandles it is handed. Patch 2 adds the new DT
binding property to specify the tuples of thermal zones and their drift
temperature. Patch 3 adds support for reading those zones on an interval
and recalibrating the PHY once one of them has drifted far enough.
Finally, patch 4 wires up the two Glymur PCIe controllers that use this,
pointing each one at the sensor that tracks the temperature of the PHY it
feeds.
Testing
=======
Tested on the Glymur CRD, on the two controllers patch 4 describes.
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
---
Manivannan Sadhasivam (4):
thermal/of: Add thermal_zone_get_zone_by_node() API
dt-bindings: PCI: qcom,pcie-x1e80100: Add qcom,pcie-recalibration-thermal-zones
PCI: qcom: Recalibrate the PHY on temperature drift
arm64: dts: qcom: glymur: Describe the PCIe thermal inputs
.../bindings/pci/qcom,pcie-x1e80100.yaml | 31 +++
arch/arm64/boot/dts/qcom/glymur.dtsi | 4 +
drivers/pci/controller/dwc/pcie-qcom.c | 224 +++++++++++++++++++++
drivers/thermal/thermal_of.c | 21 ++
include/linux/thermal.h | 8 +
5 files changed, 288 insertions(+)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261013-glymur-thermal-fix-17fdc3a0a762
Best regards,
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 4/4] arm64: dts: qcom: glymur: Describe the PCIe thermal inputs
2026-11-25 10:17 [PATCH 0/4] PCI: qcom: Recalibrate the PHY on temperature drift Manivannan Sadhasivam
@ 2026-11-25 10:17 ` Manivannan Sadhasivam via B4 Relay
0 siblings, 0 replies; 4+ messages in thread
From: Manivannan Sadhasivam @ 2026-11-25 10:17 UTC (permalink / raw)
To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
Manivannan Sadhasivam, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio,
Abel Vesa
Cc: linux-pm, linux-kernel, linux-arm-msm, linux-pci, devicetree,
Manivannan Sadhasivam
Some PCIe PHY instances on Glymur benefit from periodic recalibration to
compensate for temperature-related drift and maintain stable link
operation. The controller driver triggers the recalibration with a link
speed switch once the temperature change on a polled sensor exceeds the
defined threshold, but for that it needs to know which sensors track the
PHY temperature and the drift temperature.
So add a property to identify the relevant temperature sensors,
'qcom,pcie-recalibration-thermal-zones', to PCIe domain 5 pointing at the
aoss-6 zone and to PCIe domain 7 pointing at the nsphmx-0 zone, as those
are the zones whose sensors track the respective PHY temperature. Both
zones are allowed a drift temperature of 25 degC.
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/glymur.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
index 65a398c0a992..6fb254abf81a 100644
--- a/arch/arm64/boot/dts/qcom/glymur.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
@@ -3127,6 +3127,8 @@ pcie5: pcie@1b40000 {
operating-points-v2 = <&pcie5_opp_table>;
+ qcom,pcie-recalibration-thermal-zones = <&thermal_aoss_6 25000>;
+
msi-map = <0x0 &gic_its 0xd0000 0x10000>;
iommu-map = <0x0 &pcie_smmu 0x50000 0x10000>;
@@ -3615,6 +3617,8 @@ pcie3b: pcie@1b80000 {
operating-points-v2 = <&pcie3b_opp_table>;
+ qcom,pcie-recalibration-thermal-zones = <&thermal_nsphmx_0 25000>;
+
msi-map = <0x0 &gic_its 0xf0000 0x10000>;
iommu-map = <0x0 &pcie_smmu 0x70000 0x10000>;
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 4/4] arm64: dts: qcom: glymur: Describe the PCIe thermal inputs
@ 2026-11-25 10:17 ` Manivannan Sadhasivam via B4 Relay
0 siblings, 0 replies; 4+ messages in thread
From: Manivannan Sadhasivam via B4 Relay @ 2026-11-25 10:17 UTC (permalink / raw)
To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
Manivannan Sadhasivam, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio,
Abel Vesa
Cc: linux-pm, linux-kernel, linux-arm-msm, linux-pci, devicetree,
Manivannan Sadhasivam
From: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Some PCIe PHY instances on Glymur benefit from periodic recalibration to
compensate for temperature-related drift and maintain stable link
operation. The controller driver triggers the recalibration with a link
speed switch once the temperature change on a polled sensor exceeds the
defined threshold, but for that it needs to know which sensors track the
PHY temperature and the drift temperature.
So add a property to identify the relevant temperature sensors,
'qcom,pcie-recalibration-thermal-zones', to PCIe domain 5 pointing at the
aoss-6 zone and to PCIe domain 7 pointing at the nsphmx-0 zone, as those
are the zones whose sensors track the respective PHY temperature. Both
zones are allowed a drift temperature of 25 degC.
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/glymur.dtsi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi
index 65a398c0a992..6fb254abf81a 100644
--- a/arch/arm64/boot/dts/qcom/glymur.dtsi
+++ b/arch/arm64/boot/dts/qcom/glymur.dtsi
@@ -3127,6 +3127,8 @@ pcie5: pcie@1b40000 {
operating-points-v2 = <&pcie5_opp_table>;
+ qcom,pcie-recalibration-thermal-zones = <&thermal_aoss_6 25000>;
+
msi-map = <0x0 &gic_its 0xd0000 0x10000>;
iommu-map = <0x0 &pcie_smmu 0x50000 0x10000>;
@@ -3615,6 +3617,8 @@ pcie3b: pcie@1b80000 {
operating-points-v2 = <&pcie3b_opp_table>;
+ qcom,pcie-recalibration-thermal-zones = <&thermal_nsphmx_0 25000>;
+
msi-map = <0x0 &gic_its 0xf0000 0x10000>;
iommu-map = <0x0 &pcie_smmu 0x70000 0x10000>;
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 4/4] arm64: dts: qcom: glymur: Describe the PCIe thermal inputs
2026-11-25 10:17 ` Manivannan Sadhasivam via B4 Relay
(?)
@ 2026-11-25 10:33 ` Konrad Dybcio
-1 siblings, 0 replies; 4+ messages in thread
From: Konrad Dybcio @ 2026-11-25 10:33 UTC (permalink / raw)
To: manivannan.sadhasivam, Rafael J. Wysocki, Daniel Lezcano,
Zhang Rui, Lukasz Luba, Manivannan Sadhasivam, Lorenzo Pieralisi,
Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas,
Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson, Konrad Dybcio,
Abel Vesa
Cc: linux-pm, linux-kernel, linux-arm-msm, linux-pci, devicetree
On 11/25/26 11:17 AM, Manivannan Sadhasivam via B4 Relay wrote:
> From: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
>
> Some PCIe PHY instances on Glymur benefit from periodic recalibration to
> compensate for temperature-related drift and maintain stable link
> operation. The controller driver triggers the recalibration with a link
> speed switch once the temperature change on a polled sensor exceeds the
> defined threshold, but for that it needs to know which sensors track the
> PHY temperature and the drift temperature.
>
> So add a property to identify the relevant temperature sensors,
> 'qcom,pcie-recalibration-thermal-zones', to PCIe domain 5 pointing at the
> aoss-6 zone and to PCIe domain 7 pointing at the nsphmx-0 zone, as those
> are the zones whose sensors track the respective PHY temperature. Both
> zones are allowed a drift temperature of 25 degC.
>
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-12-05 9:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 9:55 [PATCH 4/4] arm64: dts: qcom: glymur: Describe the PCIe thermal inputs kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-11-25 10:17 [PATCH 0/4] PCI: qcom: Recalibrate the PHY on temperature drift Manivannan Sadhasivam
2026-11-25 10:17 ` [PATCH 4/4] arm64: dts: qcom: glymur: Describe the PCIe thermal inputs Manivannan Sadhasivam
2026-11-25 10:17 ` Manivannan Sadhasivam via B4 Relay
2026-11-25 10:33 ` Konrad Dybcio
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.