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

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Mar 9 11:45:38 AEDT 2017


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 at kernel.crashing.org>
---
 asm/head.S | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

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 */
-- 
2.9.3



More information about the Skiboot mailing list