platform:x86: Add Intel Telemetry Core Driver
Subsystems (3)
PATCH v5 1/4 platform:x86: Add Intel Telemetry Core Driver
Intel PM Telemetry is a software mechanism via which various SoC PM and performance related parameters like PM counters, firmware trace verbosity, the status of different devices inside the SoC, etc can be monitored and analyzed. The different samples that may be monitored can be configured at runtime via exported APIs.
This patch adds the telemetry core driver that implements basic exported APIs.
Signed-off-by Souvik Kumar Chakravarty <[email protected]>
--- MAINTAINERS | 7 + arch/x86/include/asm/intel_telemetry.h | 147 +++++++++ drivers/platform/x86/Kconfig | 11 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/intel_telemetry_core.c | 464 +++++++++++++++++++++++++++ 5 files changed, 630 insertions(+) create mode 100644 arch/x86/include/asm/intel_telemetry.h create mode 100644 drivers/platform/x86/intel_telemetry_core.c
MAINTAINERS +7 -0
@@ -5691,6 +5691,13 @@ F: drivers/platform/x86/intel_punit_ipc.c F: arch/x86/include/asm/intel_pmc_ipc.h F: arch/x86/include/asm/intel_punit_ipc.h +INTEL TELEMETRY DRIVER +M: Souvik Kumar Chakravarty <[email protected]> +L: [email protected] +S: Maintained +F: drivers/platform/x86/intel_telemetry_core.c +F: arch/x86/include/asm/intel_telemetry.h + IOC3 ETHERNET DRIVER M: Ralf Baechle <[email protected]> L: [email protected]
arch/x86/include/asm/intel_telemetry.h new file +147 -0
147 lines not on this page · raw message
drivers/platform/x86/Kconfig +11 -0
@@ -950,4 +950,15 @@ config INTEL_PUNIT_IPC ---help--- This driver provides support for Intel P-Unit Mailbox IPC mechanism, which is used to bridge the communications between kernel and P-Unit. + +config INTEL_TELEMETRY + tristate "Intel SoC Telemetry Driver" + default n + depends on INTEL_PMC_IPC && INTEL_PUNIT_IPC && X86_64 + ---help--- + This driver provides interfaces to configure and use + telemetry for INTEL SoC from APL onwards. It is also + used to get various SoC events and parameters + directly via debugfs files. Various tools may use + this interface for SoC state monitoring. endif # X86_PLATFORM_DEVICES
drivers/platform/x86/Makefile +1 -0
@@ -63,3 +63,4 @@ obj-$(CONFIG_ALIENWARE_WMI) += alienware-wmi.o obj-$(CONFIG_INTEL_PMC_IPC) += intel_pmc_ipc.o obj-$(CONFIG_SURFACE_PRO3_BUTTON) += surfacepro3_button.o obj-$(CONFIG_INTEL_PUNIT_IPC) += intel_punit_ipc.o +obj-$(CONFIG_INTEL_TELEMETRY) += intel_telemetry_core.o
drivers/platform/x86/intel_telemetry_core.c new file +464 -0
464 lines not on this page · raw message
Signature · 1 line
1.7.9.5