From 403b82555425a71121f7a62e58d37f57325f78d1 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Thu, 9 Mar 2017 11:45:38 +1100 Subject: asm: Fix setting of LPCR:DPFD 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 Signed-off-by: Stewart Smith --- asm/head.S | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'asm') 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 */ -- cgit v1.1