From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 C8A0A224EA for ; Wed, 29 Jan 2025 15:48:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738165688; cv=none; b=pwRlD4/kYlwqvS7VTRCO4AJQXJWkUKcYpSZf1s5W1fpVzKtgWH9F+qUBFV9gVXQD6USJS599SoO//9nCB9LyUqaY51mzcKgnvRecIP/vafc3FKwuyNz/zeMoqAxnm5mI961YL2kmPkI5V/Imk0WT5AFcgbj7CG4JeEL0DWb8lhE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738165688; c=relaxed/simple; bh=1lK5Jz8sBX5vuh5ayW4CkzHfKeeMIXFaP/Hk/sYaa+A=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=O2T9i+AdDcx8nJbhg0JxpN/JkZksBw5YeWik1rn9JqnWhZAEHASN0lYiR5Y67+dIPZBiHggmMUkdjtZfHiMIwRX14sZXG1fPeTGibP/amTmk9KcbhAZP8TK1nVhNlbPEfaHfQSEjH1fAyl79C5FwLAhAYKL1DbKkuQFfnQNHjQY= 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=epxwSxE6; arc=none smtp.client-ip=192.198.163.19 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="epxwSxE6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1738165687; x=1769701687; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=1lK5Jz8sBX5vuh5ayW4CkzHfKeeMIXFaP/Hk/sYaa+A=; b=epxwSxE6LAxXKcr3yA0TvYdT/XDWa9+bXj5npg0AUOh2rMHji6IKin+f vx5nDWlfEz0AAT/kcu+9rKiEFEL1Iy9Oe9dBye0ZVthO9otPSkQmqfC0r cq/BzkY+308Pn9QgQQHL5B7ekVlj96EV2t/89DMq82CvSpEeatRtvuBNO LCylPD30jPDjdCINmv03YEsKAb9/bLgxvrRFfTFH10+2e04DdHIO5XvfL FnYLyOqZjfM6sxKRl6LB8f2fNyrxpIFz/UVuwLoH6k/5wAyof6fUqwcuO 8QvHBlr67PZzguJX0/c8IbeBER9ykJt8h3wbWAaY8nrDomcqAjKMheLMo Q==; X-CSE-ConnectionGUID: tqaIXdF1TySiEhSWlEwUkQ== X-CSE-MsgGUID: Vfrk4DxuRTWSpsv0m3LP+g== X-IronPort-AV: E=McAfee;i="6700,10204,11330"; a="37882914" X-IronPort-AV: E=Sophos;i="6.13,243,1732608000"; d="scan'208";a="37882914" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jan 2025 07:48:06 -0800 X-CSE-ConnectionGUID: sMuLU4F2SB+ijhhCfOQEZw== X-CSE-MsgGUID: IMU3a+b0TNeMuWFO2Qww+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="108927424" Received: from kanliang-dev.jf.intel.com ([10.165.154.102]) by orviesa010.jf.intel.com with ESMTP; 29 Jan 2025 07:48:06 -0800 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, ak@linux.intel.com, linux-kernel@vger.kernel.org Cc: dapeng1.mi@linux.intel.com, Kan Liang Subject: [PATCH 0/3] Cleanup for Intel PMU initialization Date: Wed, 29 Jan 2025 07:48:17 -0800 Message-Id: <20250129154820.3755948-1-kan.liang@linux.intel.com> X-Mailer: git-send-email 2.38.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 The patches are to clean up different features. They all touch the initialization code. There are some dependencies. So I put them in a patch set to facilitate the review and merge. Patch 1 is to clear up the PEBS-via-PT on hybrid. The original V1 patch can be found at https://lore.kernel.org/lkml/20250124183432.3565061-1-kan.liang@linux.intel.com/ This is the V2, which only update the comments. Patch 2 is to clean up the 023H enumeration. To close the discussion at https://lore.kernel.org/lkml/20250127212901.GB9557@noisy.programming.kicks-ass.net/ Patch 3 is to clean up the counter information update and check codes. To close the discussion at https://lore.kernel.org/lkml/20250127164406.GN16742@noisy.programming.kicks-ass.net/ Kan Liang (3): perf/x86/intel: Clean up PEBS-via-PT on hybrid perf/x86/intel: Fix ARCH_PERFMON_NUM_COUNTER_LEAF perf/x86/intel: Clean up counter information update and check arch/x86/events/core.c | 10 +-- arch/x86/events/intel/core.c | 134 +++++++++++++++--------------- arch/x86/events/intel/ds.c | 10 ++- arch/x86/events/perf_event.h | 1 + arch/x86/include/asm/perf_event.h | 28 ++++++- 5 files changed, 106 insertions(+), 77 deletions(-) -- 2.38.1