summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/hv-gpci.h
diff options
context:
space:
mode:
authorKajol Jain <kjain@linux.ibm.com>2022-11-30 23:15:13 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2022-12-02 20:39:26 +1100
commit03f7c1d2a49acd30e38789cd809d3300721e9b0e (patch)
tree12856b4715c9b38547ad6947b55a221259acc2e3 /arch/powerpc/perf/hv-gpci.h
parent4d0eea415216fe3791da2f65eb41399e70c7bedf (diff)
downloadlinux-03f7c1d2a49acd30e38789cd809d3300721e9b0e.tar.gz
linux-03f7c1d2a49acd30e38789cd809d3300721e9b0e.tar.bz2
linux-03f7c1d2a49acd30e38789cd809d3300721e9b0e.zip
powerpc/hv-gpci: Fix hv_gpci event list
Based on getPerfCountInfo v1.018 documentation, some of the hv_gpci events were deprecated for platform firmware that supports counter_info_version 0x8 or above. Fix the hv_gpci event list by adding a new attribute group called "hv_gpci_event_attrs_v6" and a "ENABLE_EVENTS_COUNTERINFO_V6" macro to enable these events for platform firmware that supports counter_info_version 0x6 or below. And assigning the hv_gpci event list based on output counter info version of underlying plaform. Fixes: 97bf2640184f ("powerpc/perf/hv-gpci: add the remaining gpci requests") Signed-off-by: Kajol Jain <kjain@linux.ibm.com> Reviewed-by: Madhavan Srinivasan <maddy@linux.ibm.com> Reviewed-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20221130174513.87501-1-kjain@linux.ibm.com
Diffstat (limited to 'arch/powerpc/perf/hv-gpci.h')
-rw-r--r--arch/powerpc/perf/hv-gpci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/perf/hv-gpci.h b/arch/powerpc/perf/hv-gpci.h
index 4d108262bed7..c72020912dea 100644
--- a/arch/powerpc/perf/hv-gpci.h
+++ b/arch/powerpc/perf/hv-gpci.h
@@ -26,6 +26,7 @@ enum {
#define REQUEST_FILE "../hv-gpci-requests.h"
#define NAME_LOWER hv_gpci
#define NAME_UPPER HV_GPCI
+#define ENABLE_EVENTS_COUNTERINFO_V6
#include "req-gen/perf.h"
#undef REQUEST_FILE
#undef NAME_LOWER