2019-05-19 12:07:45 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2018-12-07 06:55:26 +00:00
|
|
|
config INTEL_POWERCLAMP
|
|
|
|
tristate "Intel PowerClamp idle injection driver"
|
|
|
|
depends on X86
|
|
|
|
depends on CPU_SUP_INTEL
|
2023-02-01 18:28:53 +00:00
|
|
|
depends on CPU_IDLE
|
|
|
|
select POWERCAP
|
|
|
|
select IDLE_INJECT
|
2018-12-07 06:55:26 +00:00
|
|
|
help
|
|
|
|
Enable this to enable Intel PowerClamp idle injection driver. This
|
|
|
|
enforce idle time which results in more package C-state residency. The
|
|
|
|
user interface is exposed via generic thermal framework.
|
|
|
|
|
2021-01-07 12:29:05 +00:00
|
|
|
config X86_THERMAL_VECTOR
|
|
|
|
def_bool y
|
|
|
|
depends on X86 && CPU_SUP_INTEL && X86_LOCAL_APIC
|
|
|
|
|
2022-12-19 15:46:15 +00:00
|
|
|
config INTEL_TCC
|
|
|
|
bool
|
|
|
|
depends on X86
|
|
|
|
|
2018-12-07 06:55:26 +00:00
|
|
|
config X86_PKG_TEMP_THERMAL
|
|
|
|
tristate "X86 package temperature thermal driver"
|
|
|
|
depends on X86_THERMAL_VECTOR
|
|
|
|
select THERMAL_GOV_USER_SPACE
|
2022-12-19 15:46:19 +00:00
|
|
|
select INTEL_TCC
|
2018-12-07 06:55:26 +00:00
|
|
|
default m
|
|
|
|
help
|
|
|
|
Enable this to register CPU digital sensor for package temperature as
|
|
|
|
thermal zone. Each package will have its own thermal zone. There are
|
|
|
|
two trip points which can be set by user to get notifications via thermal
|
|
|
|
notification methods.
|
|
|
|
|
|
|
|
config INTEL_SOC_DTS_IOSF_CORE
|
|
|
|
tristate
|
|
|
|
depends on X86 && PCI
|
|
|
|
select IOSF_MBI
|
2022-12-19 15:46:17 +00:00
|
|
|
select INTEL_TCC
|
2018-12-07 06:55:26 +00:00
|
|
|
help
|
|
|
|
This is becoming a common feature for Intel SoCs to expose the additional
|
|
|
|
digital temperature sensors (DTSs) using side band interface (IOSF). This
|
|
|
|
implements the common set of helper functions to register, get temperature
|
|
|
|
and get/set thresholds on DTSs.
|
|
|
|
|
|
|
|
config INTEL_SOC_DTS_THERMAL
|
|
|
|
tristate "Intel SoCs DTS thermal driver"
|
|
|
|
depends on X86 && PCI && ACPI
|
|
|
|
select INTEL_SOC_DTS_IOSF_CORE
|
|
|
|
help
|
|
|
|
Enable this to register Intel SoCs (e.g. Bay Trail) platform digital
|
|
|
|
temperature sensor (DTS). These SoCs have two additional DTSs in
|
|
|
|
addition to DTSs on CPU cores. Each DTS will be registered as a
|
|
|
|
thermal zone. There are two trip points. One of the trip point can
|
|
|
|
be set by user mode programs to get notifications via Linux thermal
|
|
|
|
notification methods.The other trip is a critical trip point, which
|
|
|
|
was set by the driver based on the TJ MAX temperature.
|
|
|
|
|
|
|
|
config INTEL_QUARK_DTS_THERMAL
|
|
|
|
tristate "Intel Quark DTS thermal driver"
|
|
|
|
depends on X86_INTEL_QUARK
|
|
|
|
help
|
|
|
|
Enable this to register Intel Quark SoC (e.g. X1000) platform digital
|
|
|
|
temperature sensor (DTS). For X1000 SoC, it has one on-die DTS.
|
|
|
|
The DTS will be registered as a thermal zone. There are two trip points:
|
|
|
|
hot & critical. The critical trip point default value is set by
|
|
|
|
underlying BIOS/Firmware.
|
|
|
|
|
|
|
|
menu "ACPI INT340X thermal drivers"
|
2018-12-16 23:57:15 +00:00
|
|
|
source "drivers/thermal/intel/int340x_thermal/Kconfig"
|
2018-12-07 06:55:26 +00:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
config INTEL_BXT_PMIC_THERMAL
|
|
|
|
tristate "Intel Broxton PMIC thermal driver"
|
2023-02-26 05:39:52 +00:00
|
|
|
depends on X86 && INTEL_SOC_PMIC_BXTWC
|
|
|
|
select REGMAP
|
2018-12-07 06:55:26 +00:00
|
|
|
help
|
|
|
|
Select this driver for Intel Broxton PMIC with ADC channels monitoring
|
|
|
|
system temperature measurements and alerts.
|
|
|
|
This driver is used for monitoring the ADC channels of PMIC and handles
|
|
|
|
the alert trip point interrupts and notifies the thermal framework with
|
|
|
|
the trip point and temperature details of the zone.
|
|
|
|
|
|
|
|
config INTEL_PCH_THERMAL
|
|
|
|
tristate "Intel PCH Thermal Reporting Driver"
|
|
|
|
depends on X86 && PCI
|
2023-10-17 20:05:23 +00:00
|
|
|
select ACPI_THERMAL_LIB if ACPI
|
2018-12-07 06:55:26 +00:00
|
|
|
help
|
|
|
|
Enable this to support thermal reporting on certain intel PCHs.
|
|
|
|
Thermal reporting device will provide temperature reading,
|
|
|
|
programmable trip points and other information.
|
thermal/drivers/intel: Introduce tcc cooling driver
On Intel processors, the core frequency can be reduced below OS request,
when the current temperature reaches the TCC (Thermal Control Circuit)
activation temperature.
The default TCC activation temperature is specified by
MSR_IA32_TEMPERATURE_TARGET. However, it can be adjusted by specifying an
offset in degrees C, using the TCC Offset bits in the same MSR register.
This patch introduces a cooling devices driver that utilizes the TCC
Offset feature. The bigger the current cooling state is, the lower the
effective TCC activation temperature is, so that the processors can be
throttled earlier before system critical overheats.
Note that, on different platforms, the behavior might be different on
how fast the setting takes effect, and how much the CPU frequency is
reduced.
This patch has been tested on a KabyLake mobile platform from me, and also
on a CometLake platform from Doug.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210412125901.12549-1-rui.zhang@intel.com
2021-04-12 12:59:01 +00:00
|
|
|
|
|
|
|
config INTEL_TCC_COOLING
|
|
|
|
tristate "Intel TCC offset cooling Driver"
|
|
|
|
depends on X86
|
2022-12-19 15:46:18 +00:00
|
|
|
select INTEL_TCC
|
thermal/drivers/intel: Introduce tcc cooling driver
On Intel processors, the core frequency can be reduced below OS request,
when the current temperature reaches the TCC (Thermal Control Circuit)
activation temperature.
The default TCC activation temperature is specified by
MSR_IA32_TEMPERATURE_TARGET. However, it can be adjusted by specifying an
offset in degrees C, using the TCC Offset bits in the same MSR register.
This patch introduces a cooling devices driver that utilizes the TCC
Offset feature. The bigger the current cooling state is, the lower the
effective TCC activation temperature is, so that the processors can be
throttled earlier before system critical overheats.
Note that, on different platforms, the behavior might be different on
how fast the setting takes effect, and how much the CPU frequency is
reduced.
This patch has been tested on a KabyLake mobile platform from me, and also
on a CometLake platform from Doug.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210412125901.12549-1-rui.zhang@intel.com
2021-04-12 12:59:01 +00:00
|
|
|
help
|
|
|
|
Enable this to support system cooling by adjusting the effective TCC
|
|
|
|
activation temperature via the TCC Offset register, which is widely
|
|
|
|
supported on modern Intel platforms.
|
|
|
|
Note that, on different platforms, the behavior might be different
|
|
|
|
on how fast the setting takes effect, and how much the CPU frequency
|
|
|
|
is reduced.
|
2021-08-16 03:53:56 +00:00
|
|
|
|
2022-01-27 19:34:50 +00:00
|
|
|
config INTEL_HFI_THERMAL
|
|
|
|
bool "Intel Hardware Feedback Interface"
|
2022-02-09 00:15:46 +00:00
|
|
|
depends on NET
|
2022-01-27 19:34:50 +00:00
|
|
|
depends on CPU_SUP_INTEL
|
|
|
|
depends on X86_THERMAL_VECTOR
|
thermal: intel: hfi: Notify user space for HFI events
When the hardware issues an HFI event, relay a notification to user space.
This allows user space to respond by reading performance and efficiency of
each CPU and take appropriate action.
For example, when the performance and efficiency of a CPU is 0, user space
can either offline the CPU or inject idle. Also, if user space notices a
downward trend in performance, it may proactively adjust power limits to
avoid future situations in which performance drops to 0.
To avoid excessive notifications, the rate is limited by one HZ per event.
To limit the netlink message size, send parameters for up to 16 CPUs in a
single message. If there are more than 16 CPUs, issue as many messages as
needed to notify the status of all CPUs.
In the HFI specification, both performance and efficiency capabilities are
defined in the [0, 255] range. The existing implementations of HFI hardware
do not scale the maximum values to 255. Since userspace cares about
capability values that are either 0 or show a downward/upward trend, this
fact does not matter much. Relative changes in capabilities are enough. To
comply with the thermal netlink ABI, scale both performance and efficiency
capabilities to the [0, 1023] interval.
Reviewed-by: Len Brown <len.brown@intel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2022-01-27 19:34:54 +00:00
|
|
|
select THERMAL_NETLINK
|
2022-01-27 19:34:50 +00:00
|
|
|
help
|
|
|
|
Select this option to enable the Hardware Feedback Interface. If
|
|
|
|
selected, hardware provides guidance to the operating system on
|
|
|
|
the performance and energy efficiency capabilities of each CPU.
|
|
|
|
These capabilities may change as a result of changes in the operating
|
|
|
|
conditions of the system such power and thermal limits. If selected,
|
|
|
|
the kernel relays updates in CPUs' capabilities to userspace.
|