]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
tools arch x86: Sync the msr-index.h copy with the kernel sources
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 12 Jun 2025 20:58:05 +0000 (17:58 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Jun 2025 17:05:11 +0000 (14:05 -0300)
To pick up the changes from these csets:

  159013a7ca18c271 ("x86/its: Enumerate Indirect Target Selection (ITS) bug")
  f4138de5e41fae1a ("x86/msr: Standardize on u64 in <asm/msr-index.h>")
  ec980e4facef8110 ("perf/x86/intel: Support auto counter reload")

That cause no changes to tooling as it doesn't include a new MSR to be
captured by the tools/perf/trace/beauty/tracepoints/x86_msr.sh script.

Just silences this perf build warning:

  Warning: Kernel ABI header differences:
    diff -u tools/arch/x86/include/asm/msr-index.h arch/x86/include/asm/msr-index.h

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/aEtAUg83OQGx8Kay@x1
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/arch/x86/include/asm/msr-index.h

index e7d2f460fcc699e48ade18f95f92537d2571a649..b7dded3c811328fae3fbfa2dc43ecceb212f2519 100644 (file)
 #define MSR_HWP_CAPABILITIES           0x00000771
 #define MSR_HWP_REQUEST_PKG            0x00000772
 #define MSR_HWP_INTERRUPT              0x00000773
-#define MSR_HWP_REQUEST                0x00000774
+#define MSR_HWP_REQUEST                        0x00000774
 #define MSR_HWP_STATUS                 0x00000777
 
 /* CPUID.6.EAX */
 #define HWP_LOWEST_PERF(x)             (((x) >> 24) & 0xff)
 
 /* IA32_HWP_REQUEST */
-#define HWP_MIN_PERF(x)                (x & 0xff)
-#define HWP_MAX_PERF(x)                ((x & 0xff) << 8)
+#define HWP_MIN_PERF(x)                        (x & 0xff)
+#define HWP_MAX_PERF(x)                        ((x & 0xff) << 8)
 #define HWP_DESIRED_PERF(x)            ((x & 0xff) << 16)
-#define HWP_ENERGY_PERF_PREFERENCE(x)  (((unsigned long long) x & 0xff) << 24)
+#define HWP_ENERGY_PERF_PREFERENCE(x)  (((u64)x & 0xff) << 24)
 #define HWP_EPP_PERFORMANCE            0x00
 #define HWP_EPP_BALANCE_PERFORMANCE    0x80
 #define HWP_EPP_BALANCE_POWERSAVE      0xC0
 #define HWP_EPP_POWERSAVE              0xFF
-#define HWP_ACTIVITY_WINDOW(x)         ((unsigned long long)(x & 0xff3) << 32)
-#define HWP_PACKAGE_CONTROL(x)         ((unsigned long long)(x & 0x1) << 42)
+#define HWP_ACTIVITY_WINDOW(x)         ((u64)(x & 0xff3) << 32)
+#define HWP_PACKAGE_CONTROL(x)         ((u64)(x & 0x1) << 42)
 
 /* IA32_HWP_STATUS */
 #define HWP_GUARANTEED_CHANGE(x)       (x & 0x1)
 /* V6 PMON MSR range */
 #define MSR_IA32_PMC_V6_GP0_CTR                0x1900
 #define MSR_IA32_PMC_V6_GP0_CFG_A      0x1901
+#define MSR_IA32_PMC_V6_GP0_CFG_B      0x1902
+#define MSR_IA32_PMC_V6_GP0_CFG_C      0x1903
 #define MSR_IA32_PMC_V6_FX0_CTR                0x1980
+#define MSR_IA32_PMC_V6_FX0_CFG_B      0x1982
+#define MSR_IA32_PMC_V6_FX0_CFG_C      0x1983
 #define MSR_IA32_PMC_V6_STEP           4
 
 /* KeyID partitioning between MKTME and TDX */