ACPI: DPTF: Move INT340X enumeration from DPTF scan handler to ACPI core
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest2 patches 1 replyIn review
- v36 patches 13 repliesSuperseded
- v26 patches 2 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 12 patches | 5 replies | Superseded |
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ACPI: DPTF: Ignore SoC DTS thermal while scanningdrivers/ drivers/ | +3 | 0 replies | |
| 2/2 | ACPI: DPTF: Remove int340x thermal scan handlerdrivers/ drivers/ drivers/ +1 more | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH v4 0/2] ACPI: DPTF: Move INT340X enumeration from DPTF scan handler to ACPI core
The Intel Dynamic Platform and Thermal Framework (DPTF) relies on the INT340X ACPI device objects. The temperature information and cooling ability are exposed to the userspace via those objects.
Since kernel v3.17 the ACPI bus scan handler is introduced to prevent enumeration of INT340X ACPI device objects on the platform bus unless related thermal drivers are enabled. However, using the IS_ENABLED() macro in the ACPI scan handler forces the kernel to be recompiled when thermal drivers are enabled or disabled, which is a significant limitation of its modularity. The IS_ENABLED() macro is particularly problematic for the Android Generic Kernel Image (GKI) project which uses unified core kernel while SoC/board support is moved to loadable vendor modules.
The DPTF requires thermal drivers to be loaded at runtime, thus ACPI bus scan handler is not needed and acpi_default_enumeration() may create all platform devices, regardless of the actual setting of CONFIG_INT340X_THERMAL.
Link to v1: https://lore.kernel.org/all/[email protected]/
Link to v2: https://lore.kernel.org/all/[email protected]/
Link to v3: https://lore.kernel.org/all/[email protected]/
In v4 the SoC DTS thermal explicitly depends on the X86_64 and NET, so the INT340X driver may safely be selected by the SoC DTS thermal driver. In addition most of previously submitted patches are dropped as they are not necessary, instead the ACPI bus scan handler is simply removed from the kernel, thus all platform devices are enumerated by the acpi_default_enumeration().
Slawomir Rosek (2):
ACPI: DPTF: Ignore SoC DTS thermal while scanning
ACPI: DPTF: Remove int340x thermal scan handler
drivers/acpi/dptf/Makefile | 1 - drivers/acpi/dptf/int340x_thermal.c | 94 ----------------------------- drivers/acpi/internal.h | 1 - drivers/acpi/scan.c | 1 - drivers/thermal/intel/Kconfig | 3 +- 5 files changed, 2 insertions(+), 98 deletions(-) delete mode 100644 drivers/acpi/dptf/int340x_thermal.c
Signature · 1 line
2.51.1.930.gacf6e81ea2-goog