Skip to contentSkip to conversation

platform:x86: Makefile/Kconfig/MAINTAINERS changes for Intel Telemetry

PATCH Superseded Souvik Kumar Chakravarty 3 participants 4 messages Dec 23, 2015 – Dec 30, 2015 x86 platform drivers

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 5/5 platform:x86: Makefile/Kconfig/MAINTAINERS changes for Intel Telemetry

Makefile, Kconfig & MAINTAINERS changes for compiling Telemetry. It depends on PUNIT and PMC IPC drivers.

---
Changes in v3:
* Rebased on top of latest files.
---
Changes in v2:
* Change bool to tristate in Kconfig to enable support as module
* Remove PUNIT_IPC specific additions. These will be merged separately by Qipeng's PUNIT_IPC patch.

---
 MAINTAINERS                   |    9 +++++++++
 drivers/platform/x86/Kconfig  |   11 +++++++++++
 drivers/platform/x86/Makefile |    3 +++
 3 files changed, 23 insertions(+)
MAINTAINERS +9 -0
index 0484f70..a05c728 100644
@@ -5693,6 +5693,15 @@ 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:	drivers/platform/x86/intel_telemetry_pltdrv.c
+F:	drivers/platform/x86/intel_telemetry_debugfs.c
+F:	arch/x86/include/asm/intel_telemetry.h
+
 IOC3 ETHERNET DRIVER
 M:	Ralf Baechle <[email protected]>
 L:	[email protected]
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 +3 -0
index 5ee5425..17538b0 100644
@@ -63,3 +63,6 @@ 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 \
+				   intel_telemetry_pltdrv.o \
+				   intel_telemetry_debugfs.o
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · Souvik Kumar Chakravarty

Makefile, Kconfig & MAINTAINERS changes for compiling Telemetry. It depends on PUNIT and PMC IPC drivers.

...

drivers/platform/x86/Kconfig config INTEL_PUNIT_IPC · line 962

Quoted 9 lines
drivers/platform/x86/Kconfig +9 -0
+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

If tools are going to be relying on it, debugfs doesn't seem like the right place for it to me. Would /sys/power be more apt?

Rafael?

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
#2 lore raw
Quoted 19 lines · Darren Hart
Quoted 2 lines · Souvik Kumar Chakravarty

Makefile, Kconfig & MAINTAINERS changes for compiling Telemetry. It depends on PUNIT and PMC IPC drivers.

...

drivers/platform/x86/Kconfig config INTEL_PUNIT_IPC · line 962

Quoted 9 lines
drivers/platform/x86/Kconfig +9 -0
+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

If tools are going to be relying on it, debugfs doesn't seem like the right place for it to me. Would /sys/power be more apt?

Quoted 1 line

Rafael?

Using debugfs for things like these is not unheard of.

It all depends on whether or not the tools in question are intended to work on systems where debugfs is not enabled.

Thanks,
Rafael

#3 lore raw
Quoted 20 lines · Rafael Wysocki
Quoted 19 lines · Darren Hart
Quoted 2 lines · Souvik Kumar Chakravarty

Makefile, Kconfig & MAINTAINERS changes for compiling Telemetry. It depends on PUNIT and PMC IPC drivers.

...

drivers/platform/x86/Kconfig config INTEL_PUNIT_IPC · line 962

Quoted 9 lines
drivers/platform/x86/Kconfig +9 -0
+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

If tools are going to be relying on it, debugfs doesn't seem like the right place for it to me. Would /sys/power be more apt?

Quoted 6 lines
Quoted 1 line

Rafael?

Using debugfs for things like these is not unheard of.

It all depends on whether or not the tools in question are intended to work on systems where debugfs is not enabled.

It was my understanding that debugfs was intended to make it clear that it may change at any time and shouldn't be relied upon. Strictly for debug.

But, I'll defer to Rafael on this point.

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center