Skip to contentSkip to conversation

thermal: kconfig: select THERMAL_WRITABLE_TRIPS for x86 thermal

PATCH New Srinivas Pandruvada 1 participant 3 messages Aug 3, 2015 – Oct 5, 2015 Thermal

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: kconfig: select THERMAL_WRITABLE_TRIPS for x86 thermal

v1
Amended commit message to be clear that RW trips are required for the user space thermal tools for x86.

v0
base version

Srinivas Pandruvada (1):
thermal: kconfig: select THERMAL_WRITABLE_TRIPS for x86 thermal

 drivers/thermal/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
Signature · 1 line
2.4.3
#1 lore raw

PATCH 1/1 thermal: kconfig: select THERMAL_WRITABLE_TRIPS for x86 thermal

After the commit "thermal: core: Add Kconfig option to enable writable trips", by default the trips are read only. This cause user space thermal controllers to poll for temperature as they can't set temperature thresholds for getting a notification via uevents. These programs use RW trip in a zone to register thresholds. Since we need to enable the new config introduced by above commit to allow writable trips, selecting CONFIG_THERMAL_WRITABLE_TRIP for x86 thermal drivers.

---
 drivers/thermal/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
drivers/thermal/Kconfig +3 -0
index 118938e..0e3b576 100644
@@ -275,6 +275,7 @@ config X86_PKG_TEMP_THERMAL
 	tristate "X86 package temperature thermal driver"
 	depends on X86_THERMAL_VECTOR
 	select THERMAL_GOV_USER_SPACE
+	select THERMAL_WRITABLE_TRIPS
 	default m
 	help
 	  Enable this to register CPU digital sensor for package temperature as
@@ -296,6 +297,7 @@ config INTEL_SOC_DTS_THERMAL
 	tristate "Intel SoCs DTS thermal driver"
 	depends on X86
 	select INTEL_SOC_DTS_IOSF_CORE
+	select THERMAL_WRITABLE_TRIPS
 	help
 	  Enable this to register Intel SoCs (e.g. Bay Trail) platform digital
 	  temperature sensor (DTS). These SoCs have two additional DTSs in
@@ -322,6 +324,7 @@ config INT340X_THERMAL
 	select ACPI_THERMAL_REL
 	select ACPI_FAN
 	select INTEL_SOC_DTS_IOSF_CORE
+	select THERMAL_WRITABLE_TRIPS
 	help
 	  Newer laptops and tablets that use ACPI may have thermal sensors and
 	  other devices with thermal control capabilities outside the core
Signature · 1 line
2.4.3
#2 lore raw

Hi,

Can we take this patch? Changing config for some customers is a big deal. Also distros didn't add this config, so it broke async support.

Thanks,
Srinivas

Quoted 41 lines · Srinivas Pandruvada

After the commit "thermal: core: Add Kconfig option to enable writable trips", by default the trips are read only. This cause user space thermal controllers to poll for temperature as they can't set temperature thresholds for getting a notification via uevents. These programs use RW trip in a zone to register thresholds. Since we need to enable the new config introduced by above commit to allow writable trips, selecting CONFIG_THERMAL_WRITABLE_TRIP for x86 thermal drivers.

---
 drivers/thermal/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
drivers/thermal/Kconfig +3 -0
index 118938e..0e3b576 100644
@@ -275,6 +275,7 @@ config X86_PKG_TEMP_THERMAL
 	tristate "X86 package temperature thermal driver"
 	depends on X86_THERMAL_VECTOR
 	select THERMAL_GOV_USER_SPACE
+	select THERMAL_WRITABLE_TRIPS
 	default m
 	help
 	  Enable this to register CPU digital sensor for package temperature as
@@ -296,6 +297,7 @@ config INTEL_SOC_DTS_THERMAL
 	tristate "Intel SoCs DTS thermal driver"
 	depends on X86
 	select INTEL_SOC_DTS_IOSF_CORE
+	select THERMAL_WRITABLE_TRIPS
 	help
 	  Enable this to register Intel SoCs (e.g. Bay Trail) platform digital
 	  temperature sensor (DTS). These SoCs have two additional DTSs in
@@ -322,6 +324,7 @@ config INT340X_THERMAL
 	select ACPI_THERMAL_REL
 	select ACPI_FAN
 	select INTEL_SOC_DTS_IOSF_CORE
+	select THERMAL_WRITABLE_TRIPS
 	help
 	  Newer laptops and tablets that use ACPI may have thermal sensors and
 	  other devices with thermal control capabilities outside the core