Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp195895lqp; Thu, 4 Apr 2024 10:22:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzcsAiaPIh3SeXk/ttOrIwkZ8oIxbG2T2CXeP9Txkyq09sMvaI6A7jzCJMN3WV8hqg1NIfqjJdaiJ+CfehtelyZuNtgtlCqLMtOZTV/w== X-Google-Smtp-Source: AGHT+IHtagba4anx0WTWrOhWgOH7Zf9EoekF5LsyZvbB8Jth+N/XxmN3gDzl+so8U/0qWsuGjOSk X-Received: by 2002:a05:620a:2291:b0:78a:22c9:2292 with SMTP id o17-20020a05620a229100b0078a22c92292mr245700qkh.39.1712251377275; Thu, 04 Apr 2024 10:22:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712251377; cv=pass; d=google.com; s=arc-20160816; b=V92JYvDnyzWLBHxsLoCFB9U7MOJZ9M4JoPbGqcChvSorhbcR+uOx9dwN9XDWyVMhHb /Zb8rqDN5f2N6DKTMsIvjunRXY0TSnVDw8aj9QwZzek8bVsUIxjqa03JZxGPvzBcVqfX 749e8xtG7FiCG40Elb41SiKdisWhDWKqbyDuTTSJ0YQ6B9gjblVsHxUfL3mZaruETfLo rlE1drC/dXyo2ThI2151Y4duQwQpWpdfUQHHFtAKyz/mPARBJF8DTgDTCXXfhojuKMJh hsYUk+KfauTxyR8mBo8PZ772M6XFGsN2EgnNQ+ObD+Zs45YoLAc/JoCrbdP0FjjeGjxY qpVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=7ctHebMnjF6GnFeKkVU3arGkkMGYULs476i/w/HJlqk=; fh=JXROtR/v77zDyJnKXsQ1uL/Od6ef5T6BdmyrNcniUwA=; b=ByK5QuAIE1EH2F3X6ndZDxa4ydGsogdylhh2q/huRTLKsTKQZleDzOsBE6KETCbap6 aK5im4p/Qniy80NQZx7L7RFIpSb+HlsHftvR3eqlUzUSKWG/QZ9zW2EOZM3kxDWnRJ8J R3UDG26JPJGSn9a1RDmoaHZogZJ2cdx1xdsB42LcyIA1vjMKzabvXFXk73ABZXrhnJeC lqRpH0wedZ+U5YT76JW3RlEEpXa3QTDsCF0H6BXmwLK5fGcoXf4jCpFpdsiDwLkCs/pt yykxrmp28x2gvLiDl3/YDb71kT/IAkOqTsdWASG68+jLvJcsLomhjynnBhyq9pd/6BHG 5cLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FtRsklA3; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-131585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n19-20020ae9c313000000b00787b85281e7si16363289qkg.714.2024.04.04.10.22.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:22:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FtRsklA3; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-131585-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131585-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3EAAD1C290BB for ; Thu, 4 Apr 2024 14:18:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3974E129A75; Thu, 4 Apr 2024 14:18:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FtRsklA3" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03625823D0 for ; Thu, 4 Apr 2024 14:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712240289; cv=none; b=OHVKQ3ardpcNMn3zPWFMB0YakFOIbQ9chor1C4SX13vIjKrjoYiZBzXnmYxorT+C1S434ZEDnPZ7GbL082v1Y63nqCSCIrKPhtmMbTvNTC6XGUDm3PQIosOgx6mIU/JmaRqOHNerIoquQFVn0jZUtObpsAvQd8Zpuy1sOT9xAuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712240289; c=relaxed/simple; bh=0R4kNPXFRWw5JZlP3UgRfrZbUP2J4I3eJItlMeBUI54=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=mHSomdDZt7FDXURcuMCNihgVtdcD/6YwMZAIeOX0wndzwbzL50X1T+G0AST7u9UZGXTumQH+Va8rp7thyJgpdtYpC6FB4NrGtB/ETqIsByrQBJNDs2epCnQd8U5oU1Yx1A0O1aYC/FMXAN0ZkWWUiqfIDVSoWNqetlQEChlhzUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FtRsklA3; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712240289; x=1743776289; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=0R4kNPXFRWw5JZlP3UgRfrZbUP2J4I3eJItlMeBUI54=; b=FtRsklA3iFHhtyTprZdCoWoftLtPcqArtYG/OtYTlYgL4M8VmCmMNVlP fs7BNRKggLiKcbp+A9MGxEolsuUyLnXfNCjW5fno3RH0epvWxc4FT6ben 9GzPkiXcH8jru0VcI4e3N5pBQu2fVqngKbpGKtaPtJH/Wo5UpIun6AVPi od4wrqIfcUOcL7CAm/FsQCoAAd2SGQS2FyIbVFcRQT1BJHkW2rx8JmPbt 4/vZbDHPFltOYfkFo8o71/5xg83PWe2eEf5GfnXwBDLY330NsnsmSSCnb c19tAmt0uoTafyJMoBcgP3kQMPoq4EfiWl/oFwR+KFg2zZnsNde5m/oEg g==; X-CSE-ConnectionGUID: O/D9YR5ZQ/SRcZZ0b944rw== X-CSE-MsgGUID: owIfIx8kRlaLIVENRj13VQ== X-IronPort-AV: E=McAfee;i="6600,9927,11034"; a="7632414" X-IronPort-AV: E=Sophos;i="6.07,179,1708416000"; d="scan'208";a="7632414" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 07:18:08 -0700 X-CSE-ConnectionGUID: mXBcMkSqRjSDQR28vfsnzQ== X-CSE-MsgGUID: 63qsQRvuSXyxPOpNAeB14Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,179,1708416000"; d="scan'208";a="23448344" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by fmviesa004.fm.intel.com with ESMTP; 04 Apr 2024 07:18:06 -0700 From: kan.liang@linux.intel.com To: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, irogers@google.com, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, linux-kernel@vger.kernel.org Cc: ak@linux.intel.com, Kan Liang Subject: [PATCH 0/4] Support Lunar Lake and Arrow Lake uncore PMU Date: Thu, 4 Apr 2024 07:17:02 -0700 Message-Id: <20240404141706.1235531-1-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.35.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Kan Liang From the uncore PMU's perspective, the Lunar Lake and Arrow Lake are the same, which are similar to the previous generation Meteor Lake. The uncore PerfMon registers are located at both MSR and MMIO space. The patch set is to enable the uncore PMUs for the Lunar Lake and Arrow Lake. Kan Liang (2): perf/x86/intel/uncore: Factor out common MMIO init and ops functions perf/x86/intel/uncore: Add Lunar Lake and Arrow Lake support Zhenyu Wang (2): perf/x86/intel/uncore: Add LNL uncore iMC freerunning support perf/x86/intel/uncore: Use D0:F0 as a default device arch/x86/events/intel/uncore.c | 7 ++ arch/x86/events/intel/uncore.h | 2 + arch/x86/events/intel/uncore_snb.c | 169 ++++++++++++++++++++++++++--- 3 files changed, 161 insertions(+), 17 deletions(-) -- 2.35.1