[PATCH 3/4] powerpc/perf/hv-gpci: Avoid loading hv-gpci pmu during dump kernel
Madhavan Srinivasan
maddy at linux.ibm.com
Mon Feb 17 04:12:25 AEDT 2025
hv-gpci pmu driver is intended to get powervm hypervisor
system-wide metrics and this may not be used during the
dump kernel, avoid loading it
Signed-off-by: Madhavan Srinivasan <maddy at linux.ibm.com>
---
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
More information about the Linuxppc-dev
mailing list