Message ID | 20231004020222.193445-1-david.e.box@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2469041vqb; Tue, 3 Oct 2023 19:03:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOLErY8iufJvCqpjeasZAk1dWavTJ5myCnkje9OM/3jRiabFRRMGXeEChjKiycxoFO+YyM X-Received: by 2002:a17:902:ce86:b0:1c3:868f:5958 with SMTP id f6-20020a170902ce8600b001c3868f5958mr6315868plg.20.1696384986533; Tue, 03 Oct 2023 19:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696384986; cv=none; d=google.com; s=arc-20160816; b=PqlNhUwDWv4hTFhQgaxIf+jdSuKWn6txdzW38wFpWCoTRUtEF0kBQRjrMuuiTiKEN4 r2Y7Is82NlQuQ97Cso8MWqnp4lP0+e/ndUWUq+GP7xiBU+Tfmlb/qLee5GTknvYIJkCX zb7YVroFWhly3RBlgabEhZ3sClgV2UZ5bT70iTV9nu5oT2DJOpD6ohagW8eQTg+ANSCz 2jeuxC0PdxlxRqVFHw+020ZDYk9khUr87FDO17ojVun337jTKZsoyGjLiKKcGWR6vYe2 kkOQWpPDhiWFH2MbyvAHCmdF8YYuhRIBBz5cQqfJeSzHkMujpPcS+JQ0iPMgIsvmbqDV +XUw== 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=2f4FylxZ9lD0WPRVqvTgMAbVSEASsQNjwHWOLZ/zfcI=; fh=d9G4dsZtlI8UONIvGKwhW94hCYEPGxy6CqYeKEG646A=; b=nfIP/I8IEgs3xA3VVu6cPlENzniHBlnlF0A8kt++GEHrSNQl3ilI4WKUU4KQej6Eas W+H87DcmVESiG54hQIdPMOlpehI1TO0a9jj0+cQzx74a5xeOBIkdRLIt1Uzf/jbpCc63 bO/Knxq5vCPP9e4toambVExjmoAOTbOO8rv5vY/d2bB9SrDxbNN39LYHDemXAkD2w6Ti o4uy1ysckCjVinVAwwvKsCeUZcMFGz/wHbLQrdysJ4xHrihOQJHjd+S0YWpI3l6XVy9c HPv3cM15ecKBdZH/tEvj19Z+kD3eCKgKMCRIs15Bx7go4ZyDjA1WRTCS16sAzx7DyItC Ii+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IRSsg2bR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i125-20020a639d83000000b00563d791d978si2760941pgd.750.2023.10.03.19.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 19:03:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IRSsg2bR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 2BEEA81BDF31; Tue, 3 Oct 2023 19:03:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241091AbjJDCC7 (ORCPT <rfc822;chrisfriedt@gmail.com> + 17 others); Tue, 3 Oct 2023 22:02:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241041AbjJDCCz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 3 Oct 2023 22:02:55 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69BFDCE; Tue, 3 Oct 2023 19:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696384961; x=1727920961; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=C32fXhOHrOdnQibV0Vp/v0wM36M4oPsGHuFMplkjBYo=; b=IRSsg2bRmuvaKkiXZRvx+wQphWnPPViyIbVbT/SAODZTbpqCmK+c5WVE v1+54uKGkTwygz+elB/qEgHJK2Ai2iGWfJFE/t1CSTGfqc3pdIM8Z6u0Y /Xb4ZuKIFVsZEUgkZQTUpnGo9Tg5hBYCaEmWH30T4DLVC2BjE5Ll7hT67 3UKOYlIC3HEuaDMnG6bVXoM69WKRrmNRXxMwU5QLuBzMOVCdB0jTKzrD9 6kBwEuaH+gVJ5i1SzPiBhlfGg1yJEenzHutlCK5zeyY/xCKDxZRcalOoF yRvTzyttK2YlhrHB7xtLz+mP1O8w8d9H0EQHudy3Zfb9SBbczxxRlozd+ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="1625859" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="1625859" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 19:02:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10852"; a="700926284" X-IronPort-AV: E=Sophos;i="6.03,199,1694761200"; d="scan'208";a="700926284" Received: from linux.intel.com ([10.54.29.200]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 19:02:22 -0700 Received: from debox1-desk4.intel.com (unknown [10.209.24.172]) by linux.intel.com (Postfix) with ESMTP id 6280D580C73; Tue, 3 Oct 2023 19:02:22 -0700 (PDT) From: "David E. Box" <david.e.box@linux.intel.com> To: linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, ilpo.jarvinen@linux.intel.com, rajvi.jingar@linux.intel.com Subject: [PATCH V2 00/13] intel_pmc: Add telemetry API to read counters Date: Tue, 3 Oct 2023 19:02:09 -0700 Message-Id: <20231004020222.193445-1-david.e.box@linux.intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 19:03:05 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778788583198833119 X-GMAIL-MSGID: 1778788583198833119 |
Series |
intel_pmc: Add telemetry API to read counters
|
|
Message
David E. Box
Oct. 4, 2023, 2:02 a.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 (8): platform/x86/intel/vsec: Move structures to header platform/x86/intel/vsec: remove platform_info from vsec device structure 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: Call pmc_get_low_power_modes from platform init 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 | 87 +++++- 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, 962 insertions(+), 180 deletions(-) create mode 100644 drivers/platform/x86/intel/pmt/telemetry.h base-commit: acce85a7dd28eac3858d44230f4c65985d0f271c