diff mbox

[05/10] asm: Fix setting of LPCR:DPFD

Message ID 20170309004543.16745-5-benh@kernel.crashing.org
State Accepted
Headers show

Commit Message

Benjamin Herrenschmidt March 9, 2017, 12:45 a.m. UTC
We have code to set DPFD to 4 in init_shared_sprs, from the original
commit, based on recommendations from HW.

However, we immediately override this in init_replicated_sprs with
the value 7.

So let's remove the former and update the latter to set the value
to 4.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 asm/head.S | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
diff mbox

Patch

diff --git a/asm/head.S b/asm/head.S
index d7c2821..04eb959 100644
--- a/asm/head.S
+++ b/asm/head.S
@@ -689,13 +689,7 @@  init_shared_sprs:
 	/* TSCR: Recommended value by HW folks */
 	LOAD_IMM32(%r3,0x8ACC6880)
 	mtspr	SPR_TSCR, %r3
-	mfspr	%r3,SPR_LPCR
-	rldicr	%r3,%r3,12,60
-	ori	%r3,%r3,4
-	rldicr	%r3,%r3,52,63
-	mtspr	SPR_LPCR,%r3
-	sync
-	isync
+
 	/* HID0: Clear bit 13 (enable core recovery)
 	 *       Clear bit 19 (HILE)
 	 */
@@ -729,7 +723,7 @@  init_shared_sprs:
 .global init_replicated_sprs
 init_replicated_sprs:
 	/* LPCR: sane value */
-	LOAD_IMM64(%r3,0x0070000000000004)
+	LOAD_IMM64(%r3,0x0040000000000004)
 	mtspr	SPR_LPCR, %r3
 
 	/* XXX TODO: Add more */