Thread (6 messages) flat view 6 messages, 2 authors, 2016-06-17

Re: [1/4] powerpc/perf: Initialise PMU related regs on POWER9

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-06-17 13:18:22

On Sat, 2016-11-06 at 07:18:12 UTC, Madhavan Srinivasan wrote:
quoted hunk ↗ jump to hunk
diff --git a/arch/powerpc/kernel/cpu_setup_power.S b/arch/powerpc/kernel/cpu_setup_power.S
index 584e119fa8b0..a2080fde0cc5 100644
--- a/arch/powerpc/kernel/cpu_setup_power.S
+++ b/arch/powerpc/kernel/cpu_setup_power.S
@@ -219,3 +223,16 @@ __init_PMU:
 	mtspr	SPRN_MMCR1,r5
 	mtspr	SPRN_MMCR2,r5
 	blr
+
+__init_PMU_HV_300:
+	li	r5,0
+	mtspr	SPRN_MMCRC,r5
+	blr
+
+__init_PMU_300:
+	li	r5,0
+	mtspr	SPRN_MMCRA,r5
+	mtspr	SPRN_MMCR0,r5
+	mtspr	SPRN_MMCR1,r5
+	mtspr	SPRN_MMCR2,r5
+	blr
With the exception of MMCRS, these are the same as the Power8 code. So there
should be able to be some common code.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help