linux/arch/powerpc
Michael Ellerman 466921c5a4 powerpc: Set paca->data_offset = 0 for boot cpu
In commit 407821a we assigned a poison value to the paca->data_offset.

Unfortunately with CONFIG_LOCK_STAT=y lockdep will read & write to percpu
data very early in boot, prior to us initialising the percpu areas,
leading to a crash.

We have been getting away with this because the data_offset was previously
set to zero. This causes lockdep to read & write to the initial copy of
the percpu variables, which are discarded later in boot.

Although that is "fishy", it does work, and for lock statistics it is no
big deal to discard the counts from early boot.

So set the paca->data_offset = 0 for the boot cpu paca only.

Reported-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Tested-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2012-09-27 12:51:06 +10:00
..
boot Merge remote-tracking branch 'agust/next' into next 2012-09-27 12:47:17 +10:00
configs powerpc/85xx: Enable USB support in p1023rds_defconfig 2012-09-19 08:38:16 -05:00
include/asm powerpc/perf: Sample only if SIAR-Valid bit is set in P7+ 2012-09-27 12:51:05 +10:00
kernel powerpc: Set paca->data_offset = 0 for boot cpu 2012-09-27 12:51:06 +10:00
kvm powerpc/mm: Convert virtual address to vpn 2012-09-17 16:31:49 +10:00
lib powerpc/kprobe: Don't emulate store when kprobe stwu r1 2012-09-18 15:32:45 +10:00
math-emu powerpc/math_emu/efp: Look for errata handler when type mismatches 2011-10-06 23:36:47 -05:00
mm Merge remote-tracking branch 'kumar/next' into next 2012-09-18 16:04:33 +10:00
net powerpc: Start using ___PPC_RA/B/S/T where necessary 2012-07-10 19:18:25 +10:00
oprofile powerpc/oprofile: Fix marked events support on Power7+ not set. 2012-09-07 11:10:54 +10:00
perf powerpc/perf: Sample only if SIAR-Valid bit is set in P7+ 2012-09-27 12:51:05 +10:00
platforms Merge remote-tracking branch 'agust/next' into next 2012-09-27 12:47:17 +10:00
sysdev powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled 2012-09-19 08:41:46 -05:00
xmon powerpc: Add an xmon command to dump one or all pacas 2012-09-18 15:02:36 +10:00
Kconfig Merge remote-tracking branch 'kumar/next' into next 2012-09-18 16:04:33 +10:00
Kconfig.debug powerpc: IOMMU fault injection 2012-07-10 19:18:59 +10:00
Makefile crypto: nx - move nx build to driver/crypto Makefile 2012-06-27 14:42:00 +08:00
relocs_check.pl powerpc: Process dynamic relocations for kernel 2011-12-20 10:21:08 -05:00