mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
Add an ACPI-based PMC PWRM telemetry driver for Nova Lake S. The driver locates PMT discovery data in _DSD under the Intel VSEC UUID, parses it, and registers telemetry regions with the PMT/VSEC framework so PMC telemetry is exposed via existing PMT interfaces. Export pmc_parse_telem_dsd() and pmc_find_telem_guid() to support ACPI discovery in other PMC drivers (e.g., ssram_telemetry) without duplicating ACPI parsing logic. Also export acpi_disc_t typedef from core.h for callers to properly declare discovery table arrays. Selected by INTEL_PMC_CORE. Existing PCI functionality is preserved. Assisted-by: GitHub-Copilot:claude-opus-4.7 Signed-off-by: David E. Box <david.e.box@linux.intel.com> Link: https://patch.msgid.link/09b8211d8a5a79fa019ee2397137a6a43cf19430.1781294741.git.david.e.box@linux.intel.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Intel x86 Platform-Specific Drivers
|
|
#
|
|
|
|
config INTEL_PMC_CORE
|
|
tristate "Intel PMC Core driver"
|
|
depends on PCI
|
|
depends on ACPI
|
|
depends on INTEL_PMT_TELEMETRY
|
|
select INTEL_PMC_SSRAM_TELEMETRY
|
|
select INTEL_PMC_PWRM_TELEMETRY
|
|
help
|
|
The Intel Platform Controller Hub for Intel Core SoCs provides access
|
|
to Power Management Controller registers via various interfaces. This
|
|
driver can utilize debugging capabilities and supported features as
|
|
exposed by the Power Management Controller. It also may perform some
|
|
tasks in the PMC in order to enable transition into the SLPS0 state.
|
|
It should be selected on all Intel platforms supported by the driver.
|
|
|
|
Supported features:
|
|
- SLP_S0_RESIDENCY counter
|
|
- PCH IP Power Gating status
|
|
- LTR Ignore / LTR Show
|
|
- MPHY/PLL gating status (Sunrisepoint PCH only)
|
|
- SLPS0 Debug registers (Cannonlake/Icelake PCH)
|
|
- Low Power Mode registers (Tigerlake and beyond)
|
|
- PMC quirks as needed to enable SLPS0/S0ix
|
|
|
|
config INTEL_PMC_SSRAM_TELEMETRY
|
|
tristate
|
|
help
|
|
This driver discovers PMC SSRAM telemetry regions through the PMC's
|
|
MMIO interface (PCI) or ACPI _DSD properties and registers them with
|
|
the Intel VSEC framework as Intel PMT telemetry devices.
|
|
|
|
It probes the PMC SSRAM device, extracts DVSEC information from MMIO,
|
|
reads device IDs and base addresses for multiple PMCs (main, IOE, PCH),
|
|
and exposes the discovered telemetry through Intel PMT interfaces
|
|
(including sysfs).
|
|
|
|
This option is selected by INTEL_PMC_CORE.
|
|
|
|
config INTEL_PMC_PWRM_TELEMETRY
|
|
tristate
|
|
help
|
|
This driver discovers PMC PWRM telemetry regions described in ACPI
|
|
_DSD and registers them with the Intel VSEC framework as Intel PMT
|
|
telemetry devices.
|
|
|
|
It validates the ACPI discovery data and publishes the discovered
|
|
regions so they can be accessed through the Intel PMT telemetry
|
|
interfaces (including sysfs).
|
|
|
|
This option is selected by INTEL_PMC_CORE.
|