[PATCH V2 0/3] perf/x86/intel/cstate: Update for latest client platforms

From: Zhang Rui
Date: Thu Jun 27 2024 - 23:18:36 EST


There are a couple of cstate changes on latest Intel client platforms.

Alderlake platform, followed by Raptorlake, Meteorlake and Arrowlake,
doesn't have PC7/PC9.
Lunarlake platform doesn't have PC7/PC8/PC9.

Fix current code and update support for new platforms.

Patch 1/3 fixes Alderlake/Raptorlake/Meteorlake by removing PC7/PC9
support.
Patch 2/3 adds Arrowlake support, which behaves the same as Alderlake.
Patch 3/3 adds Lunarlake support, which behaves similar to Alderlake,
but with PC8 removed.

Patch V1 has been posted at
https://lore.kernel.org/all/20240419071019.1103953-1-rui.zhang@xxxxxxxxx/

Changes since V1:
- Add Reviewed-by tag from Liang, Kan.
- Rebase on top of new CPU model macros from Tony.
- Improve changelog.

----------------------------------------------------------------
Zhang Rui (3):
perf/x86/intel/cstate: Fix Alderlake/Raptorlake/Meteorlake
perf/x86/intel/cstate: Add Arrowlake support
perf/x86/intel/cstate: Add Lunarlake support

arch/x86/events/intel/cstate.c | 39 ++++++++++++++++++++++++++-------------
1 file changed, 26 insertions(+), 13 deletions(-)