Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Fix setting FSCR for HV=0 and on secondary CPUs

Currently we only set the FSCR (Facility Status and Control Register) when HV=1
but this feature is available when HV=0 also. This patch sets FSCR when HV=0.

Also, we currently only set the FSCR on the master CPU. This patch also sets
the FSCR on secondary CPUs.

Signed-off-by: Michael Neuling <mikey@neuling.org>
cc: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Michael Neuling and committed by
Benjamin Herrenschmidt
57d23167 8170a83f

+2 -1
+2 -1
arch/powerpc/kernel/cpu_setup_power.S
··· 48 48 49 49 _GLOBAL(__setup_cpu_power8) 50 50 mflr r11 51 + bl __init_FSCR 51 52 bl __init_hvmode_206 52 53 mtlr r11 53 54 beqlr ··· 57 56 mfspr r3,SPRN_LPCR 58 57 oris r3, r3, LPCR_AIL_3@h 59 58 bl __init_LPCR 60 - bl __init_FSCR 61 59 bl __init_TLB 62 60 mtlr r11 63 61 blr 64 62 65 63 _GLOBAL(__restore_cpu_power8) 66 64 mflr r11 65 + bl __init_FSCR 67 66 mfmsr r3 68 67 rldicl. r0,r3,4,63 69 68 beqlr