Commit 76b2cf07 authored by Sandipan Das's avatar Sandipan Das Committed by Arnaldo Carvalho de Melo
Browse files

perf vendor events amd: Fix Zen 5 MAB allocation events



The unit masks for PMCx041 vary across different generations of Zen
processors.

Fix the Zen 5 events based on PMCx041 as they incorrectly use the same
unit masks as that of Zen 4.

Fixes: 45c072f2 ("perf vendor events amd: Add Zen 5 core events")
Reported-by: default avatarSuyash Mahar <smahar@meta.com>
Reviewed-by: default avatarIan Rogers <irogers@google.com>
Signed-off-by: default avatarSandipan Das <sandipan.das@amd.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ananth Narayan <ananth.narayan@amd.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Cc: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 008603bd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -70,19 +70,19 @@
    "EventName": "ls_mab_alloc.load_store_allocations",
    "EventCode": "0x41",
    "BriefDescription": "Miss Address Buffer (MAB) entries allocated by a Load-Store (LS) pipe for load-store allocations.",
    "UMask": "0x3f"
    "UMask": "0x07"
  },
  {
    "EventName": "ls_mab_alloc.hardware_prefetcher_allocations",
    "EventCode": "0x41",
    "BriefDescription": "Miss Address Buffer (MAB) entries allocated by a Load-Store (LS) pipe for hardware prefetcher allocations.",
    "UMask": "0x40"
    "UMask": "0x08"
  },
  {
    "EventName": "ls_mab_alloc.all_allocations",
    "EventCode": "0x41",
    "BriefDescription": "Miss Address Buffer (MAB) entries allocated by a Load-Store (LS) pipe for all types of allocations.",
    "UMask": "0x7f"
    "UMask": "0x0f"
  },
  {
    "EventName": "ls_dmnd_fills_from_sys.local_l2",