[PATCH 3/3] platform/x86: Add Audio domain PG status events

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Murthy, Shanth" <shanth.murthy@xxxxxxxxx>

This patch adds events to ioss telemetry to read the power gating status
for the audio domain.

Signed-off-by: Shanth Murthy <shanth.murthy@xxxxxxxxx>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@xxxxxxxxx>
---
 arch/x86/include/asm/intel_telemetry.h        | 2 +-
 drivers/platform/x86/intel_telemetry_pltdrv.c | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/intel_telemetry.h b/arch/x86/include/asm/intel_telemetry.h
index 85029b58d0cd..4eeae0a4f9a2 100644
--- a/arch/x86/include/asm/intel_telemetry.h
+++ b/arch/x86/include/asm/intel_telemetry.h
@@ -17,7 +17,7 @@
 #define INTEL_TELEMETRY_H
 
 #define TELEM_MAX_EVENTS_SRAM		28
-#define TELEM_MAX_OS_ALLOCATED_EVENTS	20
+#define TELEM_MAX_OS_ALLOCATED_EVENTS	25
 
 enum telemetry_unit {
 	TELEM_PSS = 0,
diff --git a/drivers/platform/x86/intel_telemetry_pltdrv.c b/drivers/platform/x86/intel_telemetry_pltdrv.c
index e0424d5a795a..9ec437442deb 100644
--- a/drivers/platform/x86/intel_telemetry_pltdrv.c
+++ b/drivers/platform/x86/intel_telemetry_pltdrv.c
@@ -125,6 +125,12 @@ static struct telemetry_evtmap
 	{"PMC_S0IX_BLOCKING_MISC_IPS_PG",       0x6008},
 	{"PMC_S0IX_BLOCK_IPS_VNN_REQ",          0x6009},
 	{"PMC_S0IX_BLOCK_IPS_CLOCKS",           0x600B},
+	{"AVSPGD1_IP_POWER_GATED_FW_COUNTER",	0x388D},
+	{"AVSPGD2_IP_POWER_GATED_FW_COUNTER",	0x388C},
+	{"AVSPGD3_IP_POWER_GATED_FW_COUNTER",	0x388B},
+	{"AVSPGD4_IP_POWER_GATED_FW_COUNTER",	0x388A},
+	{"AUDIO_VNN_REQ_MISC_COUNTER",		0x182B},
+
 };
 
 
-- 
2.7.4




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux