Skip to content

perf/x86/amd: Fix for LBR Freeze

Sandipan Das linux-perf-users lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesNew
  2. v42 patches 3 repliesSuperseded

Changes in v5 from the cover letter

- Restore previously moved scattered bits and instead create a new Linux-defined feature word for new scattered bits as suggested by Boris and Ingo.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/cpufeatures: Add new word for scattered featuresarch/x86/include/asm/cpufeature.h arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/disabled-features.h +1 more+9 -50 replies
2/2perf/x86/amd/lbr: Use freeze based on availabilityarch/x86/events/amd/core.c arch/x86/events/amd/lbr.c arch/x86/include/asm/cpufeatures.h +1 more+21 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/2] perf/x86/amd: Fix for LBR Freeze

Contains a fix for usage of LBR Freeze.

Previous versions can be found at:
v4: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

Changes in v5:
- Restore previously moved scattered bits and instead create a new Linux-defined feature word for new scattered bits as suggested by Boris and Ingo.

Changes in v4:
- Move scattered feature bits from CPUID 0x80000022[EAX] to a dedicated word as suggested by Ingo.
- Remove patches that have been merged (patch 2 and 3 from v3).

Changes in v3:
- As suggested by Boris, update the commit message of the first patch with the reason behind making the LBR and PMC Freeze feature bit visible in /proc/cpuinfo.

Changes in v2:
- Make the LBR and PMC Freeze feature bit visible in /proc/cpuinfo. As suggested by Stephane, this will be useful to determine if it is feasible to perform kernel FDO on a system.

Sandipan Das (2):
x86/cpufeatures: Add new word for scattered features perf/x86/amd/lbr: Use freeze based on availability

 arch/x86/events/amd/core.c               |  4 ++--
 arch/x86/events/amd/lbr.c                | 16 ++++++++++------
 arch/x86/include/asm/cpufeature.h        |  6 ++++--
 arch/x86/include/asm/cpufeatures.h       | 10 +++++++++-
 arch/x86/include/asm/disabled-features.h |  3 ++-
 arch/x86/include/asm/required-features.h |  3 ++-
 arch/x86/kernel/cpu/scattered.c          |  1 +
 7 files changed, 30 insertions(+), 13 deletions(-)
Signature · 1 line
2.34.1