2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00
linux-next/arch/powerpc
Benjamin Herrenschmidt c478b58135 powerpc/powermac: Fix occasional SMP boot failure
The PowerMac kernel occasionally fails to bring up the secondary CPUs on
SMP, the trigger factor seem to be fairly random and related to location
of code and data.

This appears to be due to the initial loading of the TOC value by the
secondary processor which now happens before we clear HID4:RM_CI (Real
Mode Cache Invalidate). This bit should really be cleared before we do
any load or store other than fetching code.

This fix works based on the assumption that all SMP 64-bit PowerMacs use
variants of the 970, which fortunately is true, by explicitely clearing
that bit, adding an slbia for good measure as RM_CI mode is known to
create bogus ERAT entries.

I also removed some spurrious debug output that was left enabled by
mistake while at it.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-01-13 14:48:03 +11:00
..
boot Merge commit 'kumar/kumar-next' into next 2009-01-13 13:59:03 +11:00
configs [WATCHDOG] Enable watchdog timer on GE Fanuc's SBC610 2009-01-12 20:08:47 +00:00
include/asm powerpc: Change u64/s64 to a long long integer type 2009-01-13 14:47:59 +11:00
kernel powerpc/powermac: Fix occasional SMP boot failure 2009-01-13 14:48:03 +11:00
kvm KVM: Consolidate userspace memory capability reporting into common code 2008-12-31 16:55:46 +02:00
lib Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2008-12-28 16:54:33 -08:00
math-emu powerpc: Add SPE/EFP math emulation for E500v1/v2 processors. 2008-12-03 08:19:16 -06:00
mm powerpc: Change u64/s64 to a long long integer type 2009-01-13 14:47:59 +11:00
oprofile powerpc: Change u64/s64 to a long long integer type 2009-01-13 14:47:59 +11:00
platforms powerpc/powermac: Fix occasional SMP boot failure 2009-01-13 14:48:03 +11:00
sysdev powerpc: Change u64/s64 to a long long integer type 2009-01-13 14:47:59 +11:00
xmon powerpc: Prepare xmon_save_regs for use with kdump 2008-12-23 15:13:28 +11:00
Kconfig powerpc: enable dynamic ftrace 2009-01-08 16:25:18 +11:00
Kconfig.debug powerpc: Allow the max stack trace depth to be configured 2008-12-03 20:46:35 +11:00
Makefile powerpc: Remove unncessary SPE related compiler flag 2008-12-03 08:19:10 -06:00