Skip to contentSkip to conversation

platform:x86: Add Intel Telemetry Debugfs interfaces

PATCH In review Souvik Kumar Chakravarty 3 participants 7 messages Jan 20, 2016 – Jan 21, 2016 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH v5 4/4 platform:x86: Add Intel Telemetry Debugfs interfaces

This implements debugfs interfaces for reading the telemetry samples from SSRAM and configuring firmware trace verbosity. Interface created under /sys/kernel/debug/telemetry
soc_states: SoC Device and Low Power States
pss_info: Info from the Primary SubSystem
ioss_info: Info from IO SubSusytem
pss_trace_verbosity: Read/Modify PSS F/W trace verbosity
ioss_trace_verbosity: Read/Modify IOSS F/W trace verbosity.

---
Change in v5: Fix warning when compiling with CONFIG_PM_SLEEP underfined

---
 MAINTAINERS                                    |    1 +
 drivers/platform/x86/Makefile                  |    3 +-
 drivers/platform/x86/intel_telemetry_debugfs.c | 1032 ++++++++++++++++++++++++
 3 files changed, 1035 insertions(+), 1 deletion(-)
 create mode 100644 drivers/platform/x86/intel_telemetry_debugfs.c
MAINTAINERS +1 -0
index ed0b031..cb872cb 100644
@@ -5698,6 +5698,7 @@ S:	Maintained
 F:	drivers/platform/x86/intel_telemetry_core.c
 F:	arch/x86/include/asm/intel_telemetry.h
 F:	drivers/platform/x86/intel_telemetry_pltdrv.c
+F:	drivers/platform/x86/intel_telemetry_debugfs.c
 
 IOC3 ETHERNET DRIVER
 M:	Ralf Baechle <[email protected]>
drivers/platform/x86/Makefile +2 -1
index dd3bdaa..17538b0 100644
@@ -64,4 +64,5 @@ 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_pltdrv.o \
+				   intel_telemetry_debugfs.o
drivers/platform/x86/intel_telemetry_debugfs.c new file +1032 -0

1,032 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 9 lines · Souvik Kumar Chakravarty

This implements debugfs interfaces for reading the telemetry samples from SSRAM and configuring firmware trace verbosity. Interface created under /sys/kernel/debug/telemetry
soc_states: SoC Device and Low Power States
pss_info: Info from the Primary SubSystem
ioss_info: Info from IO SubSusytem
pss_trace_verbosity: Read/Modify PSS F/W trace verbosity
ioss_trace_verbosity: Read/Modify IOSS F/W trace verbosity.

Quoted 4 lines

---
Change in v5: Fix warning when compiling with CONFIG_PM_SLEEP underfined

I've just sent the last version to Linus unfortunately. Please send this fix as a separate patch on top of the latest series and I'll include in a follow-up "fixes" series prior to 4.5 release.

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
#2 lore raw
Quoted 23 lines

-----Original Message-----
From: Darren Hart [mailto:[email protected]]
Sent: Wednesday, January 20, 2016 11:39 AM
To: Chakravarty, Souvik K <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [PATCH v5 4/4] platform:x86: Add Intel Telemetry Debugfs interfaces

Quoted 12 lines · Souvik Kumar Chakravarty

This implements debugfs interfaces for reading the telemetry samples from SSRAM and configuring firmware trace verbosity. Interface created under /sys/kernel/debug/telemetry
soc_states: SoC Device and Low Power States
pss_info: Info from the Primary SubSystem
ioss_info: Info from IO SubSusytem
pss_trace_verbosity: Read/Modify PSS F/W trace verbosity
ioss_trace_verbosity: Read/Modify IOSS F/W trace verbosity.

Signed-off-by: Souvik Kumar Chakravarty
<[email protected]>

Quoted 7 lines
Quoted 3 lines

---
Change in v5: Fix warning when compiling with CONFIG_PM_SLEEP underfined

I've just sent the last version to Linus unfortunately. Please send this fix as a separate patch on top of the latest series and I'll include in a follow-up "fixes" series prior to 4.5 release.

OK I will send a fix.

Quoted 4 lines

--
Darren Hart
Intel Open Source Technology Center

#3 lore raw
In reply to Souvik Kumar Chakravarty
Quoted 2 lines · Souvik Kumar Chakravarty

This implements debugfs interfaces for reading the telemetry samples from SSRAM and configuring firmware trace verbosity.

[]

MAINTAINERS

Quoted 1 line
MAINTAINERS +0 -0

[]

Quoted 5 lines
MAINTAINERS +0 -0
@@ -5698,6 +5698,7 @@ S:	Maintained

 F: drivers/platform/x86/intel_telemetry_core.c
 F: arch/x86/include/asm/intel_telemetry.h
 F: drivers/platform/x86/intel_telemetry_pltdrv.c
+F: drivers/platform/x86/intel_telemetry_debugfs.c

Maybe most of these should be deleted and
this should be a single entry:

F: drivers/platform/x86/intel_telemetry*

#4 lore raw
Quoted 15 lines · Joe Perches
Quoted 2 lines · Souvik Kumar Chakravarty

This implements debugfs interfaces for reading the telemetry samples from SSRAM and configuring firmware trace verbosity.

[]

MAINTAINERS

Quoted 1 line
MAINTAINERS +0 -0

[]

Quoted 5 lines
MAINTAINERS +0 -0
@@ -5698,6 +5698,7 @@ S:	Maintained

 F: drivers/platform/x86/intel_telemetry_core.c
 F: arch/x86/include/asm/intel_telemetry.h
 F: drivers/platform/x86/intel_telemetry_pltdrv.c
+F: drivers/platform/x86/intel_telemetry_debugfs.c

Maybe most of these should be deleted and
this should be a single entry:

Quoted 1 line

F: drivers/platform/x86/intel_telemetry*

Indeed, thanks for catching that Joe.

Signature · 2 lines
Darren Hart
Intel Open Source Technology Center
#5 lore raw
Quoted 27 lines

-----Original Message-----
From: Darren Hart [mailto:[email protected]]
Sent: Thursday, January 21, 2016 5:05 AM
To: Joe Perches <[email protected]>
Cc: Chakravarty, Souvik K <[email protected]>; platform- [email protected]; [email protected]
Subject: Re: [PATCH v5 4/4] platform:x86: Add Intel Telemetry Debugfs interfaces

Quoted 15 lines · Joe Perches
Quoted 2 lines · Souvik Kumar Chakravarty

This implements debugfs interfaces for reading the telemetry samples from SSRAM and configuring firmware trace verbosity.

[]

MAINTAINERS

Quoted 1 line
MAINTAINERS +0 -0

[]

Quoted 5 lines
MAINTAINERS +0 -0
@@ -5698,6 +5698,7 @@ S:	Maintained

 F: drivers/platform/x86/intel_telemetry_core.c
 F: arch/x86/include/asm/intel_telemetry.h
 F: drivers/platform/x86/intel_telemetry_pltdrv.c
+F: drivers/platform/x86/intel_telemetry_debugfs.c

Maybe most of these should be deleted and this should be a single entry:

Quoted 3 lines
Quoted 1 line

F: drivers/platform/x86/intel_telemetry*

Indeed, thanks for catching that Joe.

Seems fair. I can do a respin.

Quoted 4 lines

--
Darren Hart
Intel Open Source Technology Center

#6 lore raw

Or rather I will send this in as a fix.

Quoted 49 lines

-----Original Message-----
From: [email protected] [mailto:platform-driver- [email protected]] On Behalf Of Chakravarty, Souvik K
Sent: Thursday, January 21, 2016 8:21 AM
To: Darren Hart <[email protected]>; Joe Perches <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [PATCH v5 4/4] platform:x86: Add Intel Telemetry Debugfs interfaces

Quoted 25 lines

-----Original Message-----
From: Darren Hart [mailto:[email protected]]
Sent: Thursday, January 21, 2016 5:05 AM
To: Joe Perches <[email protected]>
Cc: Chakravarty, Souvik K <[email protected]>; platform- [email protected]; [email protected]
Subject: Re: [PATCH v5 4/4] platform:x86: Add Intel Telemetry Debugfs interfaces

Quoted 15 lines · Joe Perches
Quoted 2 lines · Souvik Kumar Chakravarty

This implements debugfs interfaces for reading the telemetry samples from SSRAM and configuring firmware trace verbosity.

[]

MAINTAINERS

Quoted 1 line
MAINTAINERS +0 -0

[]

Quoted 5 lines
MAINTAINERS +0 -0
@@ -5698,6 +5698,7 @@ S:	Maintained

 F: drivers/platform/x86/intel_telemetry_core.c
 F: arch/x86/include/asm/intel_telemetry.h
 F: drivers/platform/x86/intel_telemetry_pltdrv.c
+F: drivers/platform/x86/intel_telemetry_debugfs.c

Maybe most of these should be deleted and this should be a single entry:

Quoted 3 lines
Quoted 1 line

F: drivers/platform/x86/intel_telemetry*

Indeed, thanks for catching that Joe.

Seems fair. I can do a respin.

Quoted 4 lines

--
Darren Hart
Intel Open Source Technology Center

--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html