|
|
Log in / Subscribe / Register

perf/amd/ibs: Add Zen5 support

From:  Ravi Bangoria <ravi.bangoria-AT-amd.com>
To:  <peterz-AT-infradead.org>, <mingo-AT-redhat.com>, <namhyung-AT-kernel.org>
Subject:  [PATCH v2 0/6] perf/amd/ibs: Add Zen5 support
Date:  Wed, 18 Dec 2024 12:14:31 +0000
Message-ID:  <20241218121437.1717-1-ravi.bangoria@amd.com>
Cc:  <ravi.bangoria-AT-amd.com>, <acme-AT-kernel.org>, <eranian-AT-google.com>, <jolsa-AT-kernel.org>, <irogers-AT-google.com>, <kan.liang-AT-linux.intel.com>, <bp-AT-alien8.de>, <x86-AT-kernel.org>, <linux-perf-users-AT-vger.kernel.org>, <linux-kernel-AT-vger.kernel.org>, <santosh.shukla-AT-amd.com>, <ananth.narayan-AT-amd.com>, <sandipan.das-AT-amd.com>
Archive-link:  Article

IBS on Zen5:
- introduced Load Latency filtering capability.
- shows DTLB and page size information differently from prior generations.

Incorporate these changes into IBS kernel driver as well as perf tool.

Patches are prepared on tip/perf/core (02c56362a7d3).

Note: IBS sample period cleanup patches are pre-req for this.
      https://lore.kernel.org/r/20241210093449.1662-1-ravi.bang...

v1: https://lore.kernel.org/r/20241010050815.751-1-ravi.bango...
v1->v2:
 - There were some conflicts with Namhyung's IBS patches[1] which are now
   in the tip tree, so rebase the series on tip/perf/core (02c56362a7d3).
 - v1 covered only Load Latency support. But there are few other IBS
   enhancements in Zen5. So cover all of them in a single series.

[1]: https://lore.kernel.org/r/20241203180441.1634709-1-namhyu...

Ravi Bangoria (6):
  perf/amd/ibs: Add support for OP Load Latency Filtering
  perf/amd/ibs: Update DTLB/PageSize decode logic
  perf amd ibs: Sync arch/x86/include/asm/amd-ibs.h header with the
    kernel
  perf amd ibs: Add Load Latency bits in raw dump
  perf amd ibs: Incorporate Zen5 DTLB and PageSize information
  perf mem/c2c amd: Add ldlat support

 arch/x86/events/amd/ibs.c                  | 116 +++++++++++++++++++--
 arch/x86/include/asm/amd-ibs.h             |   3 +-
 arch/x86/include/asm/perf_event.h          |   4 +
 tools/arch/x86/include/asm/amd-ibs.h       |   3 +-
 tools/perf/Documentation/perf-amd-ibs.txt  |   9 ++
 tools/perf/Documentation/perf-c2c.txt      |  10 +-
 tools/perf/Documentation/perf-mem.txt      |  12 ++-
 tools/perf/arch/x86/util/mem-events.c      |   6 ++
 tools/perf/arch/x86/util/mem-events.h      |   1 +
 tools/perf/arch/x86/util/pmu.c             |  20 +++-
 tools/perf/tests/shell/test_data_symbol.sh |  29 +++++-
 tools/perf/util/amd-sample-raw.c           |  77 +++++++++++---
 tools/perf/util/pmu.c                      |  11 ++
 tools/perf/util/pmu.h                      |   2 +
 14 files changed, 269 insertions(+), 34 deletions(-)

-- 
2.43.0




Copyright © 2024, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds