Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754042AbdGNLyV (ORCPT ); Fri, 14 Jul 2017 07:54:21 -0400 Received: from mga05.intel.com ([192.55.52.43]:33810 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753472AbdGNLyT (ORCPT ); Fri, 14 Jul 2017 07:54:19 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,358,1496127600"; d="scan'208";a="878880678" From: Rajneesh Bhardwaj To: platform-driver-x86@vger.kernel.org Cc: dvhart@infradead.org, andy@infradead.org, linux-kernel@vger.kernel.org, shanth.murthy@intel.com, souvik.k.chakravarty@intel.com, Rajneesh Bhardwaj Subject: [PATCH 3/3] platform/x86: Add Audio domain PG status events Date: Fri, 14 Jul 2017 17:23:48 +0530 Message-Id: <1500033228-634-3-git-send-email-rajneesh.bhardwaj@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500033228-634-1-git-send-email-rajneesh.bhardwaj@intel.com> References: <1500033228-634-1-git-send-email-rajneesh.bhardwaj@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1576 Lines: 44 From: "Murthy, Shanth" This patch adds events to ioss telemetry to read the power gating status for the audio domain. Signed-off-by: Shanth Murthy Signed-off-by: Rajneesh Bhardwaj --- 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