Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 45c072f2537ab07b ("perf vendor events amd: Add Zen 5 core events")
Reported-by: Suyash Mahar <smahar@meta.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Sandipan 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: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Sandipan Das and committed by
Arnaldo Carvalho de Melo
76b2cf07 008603bd

+3 -3
+3 -3
tools/perf/pmu-events/arch/x86/amdzen5/load-store.json
··· 70 70 "EventName": "ls_mab_alloc.load_store_allocations", 71 71 "EventCode": "0x41", 72 72 "BriefDescription": "Miss Address Buffer (MAB) entries allocated by a Load-Store (LS) pipe for load-store allocations.", 73 - "UMask": "0x3f" 73 + "UMask": "0x07" 74 74 }, 75 75 { 76 76 "EventName": "ls_mab_alloc.hardware_prefetcher_allocations", 77 77 "EventCode": "0x41", 78 78 "BriefDescription": "Miss Address Buffer (MAB) entries allocated by a Load-Store (LS) pipe for hardware prefetcher allocations.", 79 - "UMask": "0x40" 79 + "UMask": "0x08" 80 80 }, 81 81 { 82 82 "EventName": "ls_mab_alloc.all_allocations", 83 83 "EventCode": "0x41", 84 84 "BriefDescription": "Miss Address Buffer (MAB) entries allocated by a Load-Store (LS) pipe for all types of allocations.", 85 - "UMask": "0x7f" 85 + "UMask": "0x0f" 86 86 }, 87 87 { 88 88 "EventName": "ls_dmnd_fills_from_sys.local_l2",