Message ID | 20230922213032.1770590-1-david.e.box@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:910f:0:b0:403:3b70:6f57 with SMTP id r15csp10910vqg; Fri, 22 Sep 2023 17:51:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeOM2hdG2c94QcSNbxjaS+Se53AuPzESILuztbt43xhnX+v8LhN+9MzDr0hgORHUMZAq4A X-Received: by 2002:a17:902:8646:b0:1bf:7dfd:5043 with SMTP id y6-20020a170902864600b001bf7dfd5043mr810990plt.2.1695430285167; Fri, 22 Sep 2023 17:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695430285; cv=none; d=google.com; s=arc-20160816; b=wEfB7ONjc29J6VjKRteo0yI0diE7Kr+L12mDLZyv94V6tPnhv51LOcgsmvuuxsiGjt WLbSx67TzFXCo32rG/MR63qZq1r0i16JJfZE6+3qZFHrxNZBL9deKNbAtSy/uXonIogE Kwf3ZKkqpF7M5DRAZlUBEJwbaUxjP6aOTCy5UQpbkArh/Ia+ta1+LrH5S1+xKqvjj+6C MgHG/yO/B7mcAjoc/op0e27RF1v4dyAEb9SFDbskE0EMpqMzWkhBOBUDCYiUELQ46so0 bdBHTEE7/X89WSSijTR4cds3qo3jw+6wu9PoFKf9aSJacuKYArGYDR93j2GR5TPdlwVn pgfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=NWuswDO81SCRRgKtsNWudwq6nfKFUfwwmWotQDWDokY=; fh=WoyaDCqoIurK3gigUbTB/Xr+1NkeBdRjn5eZTIYeUNs=; b=t3B6qohTUAJP7kHU0VwxUKLUJ/vWezrIeWfAblRSl1xOw95yQF+fdtxfVOeFftJDY3 P8XY/fo6+YXq7EEfl5i7ibxyE4nF5g2hko76Q0TyQmtcWhAjs+rKnafwDbLohkuv3OrV TW40SuBMYN5bz9HbsauN3TbvLty1u1D7bmoHrkovS3tzYcfWn7lsVhV0jAU55kMz7UKC iPZaAGZbz+55MilP7syUwmYkGwcjQL12GfPWnDZML0n5hwPoQJdX9OHdJJ1IMPkeEQGx /FlKLJ/222/Lz7YBzAV9yMyHBVg+oTuuYJcl1mZxsBsJBxiVjxhbJ0x++DI6qcVX+HNf o8cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iEuFH0Co; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id kn3-20020a170903078300b001bc6e60699dsi4431151plb.27.2023.09.22.17.51.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 17:51:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iEuFH0Co; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 27CBE80FCE0C; Fri, 22 Sep 2023 14:30:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229916AbjIVVak (ORCPT <rfc822;pwkd43@gmail.com> + 28 others); Fri, 22 Sep 2023 17:30:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjIVVaj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 22 Sep 2023 17:30:39 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1651BC1; Fri, 22 Sep 2023 14:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695418233; x=1726954233; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=RtVlxEmwkcaWODCTa9GTXfNYnDKymctU0EiDfOU8ZfY=; b=iEuFH0CoxGp4HB0R/gH9QxACf0N6QoMBBJo+Vwdyk1VcF6jXzhFBEI8B RIj1YKf8GhxnThjGZ/GQ9jrbBzp+EfJr4sqkdVTXxfs0XbfNAFxV8KsGj JaxPFJSG/dRpqBxWhCNB731WHYSV4IumG7JPmhev1sy5o58ABX6pNk1tO zQ+qnxrfKcBqDgkEmzKjcMlCksaEzMjVOcAtNlefobJilayyoj2FVeTPS I+mNFYcf1QOstxxebvxnYRv9aksm6Ew8L6gF6a3GkHeMMdRd+lK8fwgAz TPZHiiqqUHF4N4AJawXcmqrLhVoCmUENewnCH0nalQu6VoX4hv2OZHBkj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="371264685" X-IronPort-AV: E=Sophos;i="6.03,169,1694761200"; d="scan'208";a="371264685" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 14:30:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="747685305" X-IronPort-AV: E=Sophos;i="6.03,169,1694761200"; d="scan'208";a="747685305" Received: from linux.intel.com ([10.54.29.200]) by orsmga002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 14:30:32 -0700 Received: from debox1-desk4.intel.com (unknown [10.212.188.234]) by linux.intel.com (Postfix) with ESMTP id 797F2580BBE; Fri, 22 Sep 2023 14:30:32 -0700 (PDT) From: "David E. Box" <david.e.box@linux.intel.com> To: linux-kernel@vger.kernel.org, david.e.box@linux.intel.com, platform-driver-x86@vger.kernel.org, ilpo.jarvinen@linux.intel.com, rajvi.jingar@linux.intel.com Subject: [PATCH 00/11] intel_pmc: Add telemetry API to read counters Date: Fri, 22 Sep 2023 14:30:21 -0700 Message-Id: <20230922213032.1770590-1-david.e.box@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 22 Sep 2023 14:30:48 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777787506824337775 X-GMAIL-MSGID: 1777787506824337775 |
Series |
intel_pmc: Add telemetry API to read counters
|
|
Message
David E. Box
Sept. 22, 2023, 9:30 p.m. UTC
On newer Intel silicon, more IP counters are being added in Intel Platform Monitoring Technology (PMT) telemetry spaces hosted in MMIO. There is a need for the intel_pmc_core driver and other drivers to access PMT hosted telemetry in the kernel using an API. This patchset adds driver APIs to allow registering and reading telemetry entries. It makes changes to the intel_pmc_core driver to use these interfaces to access the low power mode counters that are now exclusively available from PMT. David E. Box (6): platform/x86/intel/vsec: Add base address field platform/x86/intel/pmt: Add header to struct intel_pmt_entry platform/x86/intel/pmt: telemetry: Export API to read telemetry platform/x86/intel/pmc: Split pmc_core_ssram_get_pmc() platform/x86/intel/pmc: Find and register PMC telemetry entries platform/x86/intel/pmc: Add debug attribute for Die C6 counter Gayatri Kammela (1): platform/x86/intel/vsec: Add intel_vsec_register Rajvi Jingar (1): platform/x86/intel/pmc: Display LPM requirements for multiple PMCs Xi Pardee (3): platform/x86:intel/pmc: Move get_low_power_modes function platform/x86/intel/pmc: Retrieve LPM information using Intel PMT platform/x86/intel/pmc: Read low power mode requirements for MTL-M and MTL-P drivers/platform/x86/intel/pmc/Kconfig | 1 + drivers/platform/x86/intel/pmc/adl.c | 2 + drivers/platform/x86/intel/pmc/cnp.c | 2 + drivers/platform/x86/intel/pmc/core.c | 191 ++++++++---- drivers/platform/x86/intel/pmc/core.h | 10 +- drivers/platform/x86/intel/pmc/core_ssram.c | 312 +++++++++++++++++--- drivers/platform/x86/intel/pmc/icl.c | 10 +- drivers/platform/x86/intel/pmc/mtl.c | 85 +++++- drivers/platform/x86/intel/pmc/spt.c | 10 +- drivers/platform/x86/intel/pmc/tgl.c | 1 + drivers/platform/x86/intel/pmt/class.c | 43 ++- drivers/platform/x86/intel/pmt/class.h | 30 +- drivers/platform/x86/intel/pmt/crashlog.c | 2 +- drivers/platform/x86/intel/pmt/telemetry.c | 200 ++++++++++++- drivers/platform/x86/intel/pmt/telemetry.h | 129 ++++++++ drivers/platform/x86/intel/vsec.c | 68 ++--- drivers/platform/x86/intel/vsec.h | 44 ++- 17 files changed, 961 insertions(+), 179 deletions(-) create mode 100644 drivers/platform/x86/intel/pmt/telemetry.h base-commit: acce85a7dd28eac3858d44230f4c65985d0f271c