hv-gpci pmu driver is intended to get powervm hypervisor system-wide metrics and these are built-in. hv-gpci pmu not have commandline option to disable them. Add check for kdump and fadump kernel to avoids loading them.
Signed-off-by: Madhavan Srinivasan <ma...@linux.ibm.com> --- Changelog v1: - Added more details to commmit message arch/powerpc/perf/hv-gpci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/perf/hv-gpci.c b/arch/powerpc/perf/hv-gpci.c index 241551d1282f..e0c3df0a048f 100644 --- a/arch/powerpc/perf/hv-gpci.c +++ b/arch/powerpc/perf/hv-gpci.c @@ -989,6 +989,9 @@ static int hv_gpci_init(void) struct hv_perf_caps caps; struct hv_gpci_request_buffer *arg; + if (is_kdump_kernel() || is_fadump_active()) + return 0; + hv_gpci_assert_offsets_correct(); if (!firmware_has_feature(FW_FEATURE_LPAR)) { -- 2.47.0