From patchwork Fri Jul 14 11:53:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajneesh Bhardwaj X-Patchwork-Id: 9840699 X-Patchwork-Delegate: andy.shevchenko@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 65F3360393 for ; Fri, 14 Jul 2017 11:54:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A6F728755 for ; Fri, 14 Jul 2017 11:54:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F29928779; Fri, 14 Jul 2017 11:54:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06B672876A for ; Fri, 14 Jul 2017 11:54:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754018AbdGNLyU (ORCPT ); Fri, 14 Jul 2017 07:54:20 -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 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP; 14 Jul 2017 04:54:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,358,1496127600"; d="scan'208";a="878880678" Received: from raj-desk2.iind.intel.com ([10.223.107.9]) by FMSMGA003.fm.intel.com with ESMTP; 14 Jul 2017 04:54:12 -0700 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: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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}, + };