diff mbox series

[3/4] powerpc/perf/hv-gpci: Avoid loading hv-gpci pmu during dump kernel

Message ID 20250216171226.432906-3-maddy@linux.ibm.com (mailing list archive)
State Superseded
Headers show
Series [1/4] powerpc/perf/core-book3s: Avoid loading platform pmu driver during dump kernel | expand

Commit Message

Madhavan Srinivasan Feb. 16, 2025, 5:12 p.m. UTC
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@linux.ibm.com>
---
 arch/powerpc/perf/hv-gpci.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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)) {