]> git.baikalelectronics.ru Git - kernel.git/commit
x86/msr: Add PerfCntrGlobal* registers
authorSandipan Das <sandipan.das@amd.com>
Thu, 21 Apr 2022 05:46:54 +0000 (11:16 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 4 May 2022 09:18:26 +0000 (11:18 +0200)
commit9ac5730fd4b47c9b3783730e1f4b17763957d0f1
tree41e6522ce7c604e6c3d592239cbb9d3cf87035e5
parent362e69b5c707f48338a58f11580f4d2396498962
x86/msr: Add PerfCntrGlobal* registers

Add MSR definitions that will be used to enable the new AMD
Performance Monitoring Version 2 (PerfMonV2) features. These
include:

  * Performance Counter Global Control (PerfCntrGlobalCtl)
  * Performance Counter Global Status (PerfCntrGlobalStatus)
  * Performance Counter Global Status Clear (PerfCntrGlobalStatusClr)

The new Performance Counter Global Control and Status MSRs
provide an interface for enabling or disabling multiple
counters at the same time and for testing overflow without
probing the individual registers for each PMC.

The availability of these registers is indicated through the
PerfMonV2 feature bit of CPUID leaf 0x80000022 EAX.

Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/cdc0d8f75bd519848731b5c64d924f5a0619a573.1650515382.git.sandipan.das@amd.com
arch/x86/include/asm/msr-index.h