Skip to contentSkip to conversation

arm64: defconfig: Enable Qualcomm LMH driver

PATCH In review Bjorn Andersson 3 participants 4 messages Oct 17, 2021 – Oct 18, 2021 Arm Qualcomm mailing list

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: defconfig: Enable Qualcomm LMH driver

With the introduction of LMH in '36c6581214c4 ("arm64: dts: qcom:
sdm845: Add support for LMh node")' the CPUfreq gained a reference for the two interrupts from the LMh. This means that if the LMh driver isn't enabled CPUfreq will not probe and there's no frequency scaling.

Enable LMh to make CPUfreq functional again on SDM845.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index 86224aa3a74b..0ae6cd2748d2 100644
@@ -577,6 +577,7 @@ CONFIG_TEGRA_BPMP_THERMAL=m
 CONFIG_TEGRA_SOCTHERM=m
 CONFIG_QCOM_TSENS=y
 CONFIG_QCOM_SPMI_TEMP_ALARM=m
+CONFIG_QCOM_LMH=m
 CONFIG_UNIPHIER_THERMAL=y
 CONFIG_WATCHDOG=y
 CONFIG_SL28CPLD_WATCHDOG=m
Signature · 1 line
2.29.2
#1 lore raw

Hi,

Quoted 18 lines · Bjorn Andersson

With the introduction of LMH in '36c6581214c4 ("arm64: dts: qcom:
sdm845: Add support for LMh node")' the CPUfreq gained a reference for the two interrupts from the LMh. This means that if the LMh driver isn't enabled CPUfreq will not probe and there's no frequency scaling.

Enable LMh to make CPUfreq functional again on SDM845.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +0 -0
index 86224aa3a74b..0ae6cd2748d2 100644

arch/arm64/configs/defconfig CONFIG_TEGRA_BPMP_THERMAL=m

Quoted 8 lines
arch/arm64/configs/defconfig +1 -1
@@ -577,6 +577,7 @@ CONFIG_TEGRA_BPMP_THERMAL=m
 CONFIG_TEGRA_SOCTHERM=m
 CONFIG_QCOM_TSENS=y
 CONFIG_QCOM_SPMI_TEMP_ALARM=m
+CONFIG_QCOM_LMH=m
 CONFIG_UNIPHIER_THERMAL=y
 CONFIG_WATCHDOG=y
 CONFIG_SL28CPLD_WATCHDOG=m
--

Tested on SA8155p-ADP board, so:

Regards.

#2 lore raw
Quoted 18 lines · Bhupesh Sharma

Hi,

Quoted 13 lines · Bjorn Andersson

With the introduction of LMH in '36c6581214c4 ("arm64: dts: qcom:
sdm845: Add support for LMh node")' the CPUfreq gained a reference for the two interrupts from the LMh. This means that if the LMh driver isn't enabled CPUfreq will not probe and there's no frequency scaling.

Enable LMh to make CPUfreq functional again on SDM845.

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
Quoted 15 lines

arch/arm64/configs/defconfig CONFIG_TEGRA_BPMP_THERMAL=m

Quoted 13 lines
arch/arm64/configs/defconfig +1 -1
index 86224aa3a74b..0ae6cd2748d2 100644
@@ -577,6 +577,7 @@ CONFIG_TEGRA_BPMP_THERMAL=m
 CONFIG_TEGRA_SOCTHERM=m
 CONFIG_QCOM_TSENS=y
 CONFIG_QCOM_SPMI_TEMP_ALARM=m
+CONFIG_QCOM_LMH=m
 CONFIG_UNIPHIER_THERMAL=y
 CONFIG_WATCHDOG=y
 CONFIG_SL28CPLD_WATCHDOG=m
--

Tested on SA8155p-ADP board, so:

Sorry, a typo here, I meant the patch was tested on the sdm845-mtp board here :)

Quoted 3 lines

Regards.

Tested-by on v1 1/1
#3 lore raw
In reply to Bjorn Andersson
Quoted 17 lines · Bjorn Andersson

With the introduction of LMH in '36c6581214c4 ("arm64: dts: qcom:
sdm845: Add support for LMh node")' the CPUfreq gained a reference for the two interrupts from the LMh. This means that if the LMh driver isn't enabled CPUfreq will not probe and there's no frequency scaling.

Enable LMh to make CPUfreq functional again on SDM845.

---
  arch/arm64/configs/defconfig | 1 +
  1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +0 -0
index 86224aa3a74b..0ae6cd2748d2 100644

arch/arm64/configs/defconfig CONFIG_TEGRA_BPMP_THERMAL=m · line 583

Quoted 7 lines
arch/arm64/configs/defconfig +1 -0
@@ -577,6 +577,7 @@ CONFIG_TEGRA_BPMP_THERMAL=m
  CONFIG_TEGRA_SOCTHERM=m
  CONFIG_QCOM_TSENS=y
  CONFIG_QCOM_SPMI_TEMP_ALARM=m
+CONFIG_QCOM_LMH=m
  CONFIG_UNIPHIER_THERMAL=y
  CONFIG_WATCHDOG=y
  CONFIG_SL28CPLD_WATCHDOG=m

Tested on the Lenovo Yoga C630