perf/x86/amd/uncore: Add PerfMonV2 RDPMC assignments
authorSandipan Das <sandipan.das@amd.com>
Thu, 19 May 2022 10:03:34 +0000 (15:33 +0530)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 13 Jun 2022 08:15:14 +0000 (10:15 +0200)
commitf0fe9f3c7abcc946a676dfb295478c50312523c2
tree351b8fae0b663ec1b3b86e8e2916f3887b9d4634
parentc390241a93260b377c84ad9e7cd5242adf667aac
perf/x86/amd/uncore: Add PerfMonV2 RDPMC assignments

The current RDPMC assignment scheme maps four DF PMCs and
six L3 PMCs from index 6 to 15.

If AMD Performance Monitoring Version 2 (PerfMonV2) is
supported, there may be additional DF counters available
which are mapped starting from index 16 i.e. just after
the L3 counters. Update the RDPMC assignments accordingly.

Signed-off-by: Sandipan Das <sandipan.das@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/1359379ef34da760f108b075ac138ab082caa3ba.1652954372.git.sandipan.das@amd.com
arch/x86/events/amd/uncore.c