Skip to contentSkip to conversation

platform:x86: Add Intel Telemetry Core Driver

PATCH Superseded Souvik Kumar Chakravarty 1 participant 1 message Jan 12, 2016

Subsystems (3)

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 9e61f7d..b9697d2 100644
@@ -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
index 148ff88..4c1d55d 100644
@@ -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
index 5ee5425..e01a42a 100644
@@ -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