1
linux/arch/powerpc/platforms/85xx
Peter Tyser d1d47ec6e6 powerpc/85xx: Fix SMP when "cpu-release-addr" is in lowmem
Recent U-Boot commit 5ccd29c3679b3669b0bde5c501c1aa0f325a7acb caused
the "cpu-release-addr" device tree property to contain the physical RAM
location that secondary cores were spinning at.  Previously, the
"cpu-release-addr" property contained a value referencing the boot page
translation address range of 0xfffffxxx, which then indirectly accessed
RAM.

The "cpu-release-addr" is currently ioremapped and the secondary cores
kicked.  However, due to the recent change in "cpu-release-addr", it
sometimes points to a memory location in low memory that cannot be
ioremapped.  For example on a P2020-based board with 512MB of RAM the
following error occurs on bootup:

  <...>
  mpic: requesting IPIs ...
  __ioremap(): phys addr 0x1ffff000 is RAM lr c05df9a0
  Unable to handle kernel paging request for data at address 0x00000014
  Faulting instruction address: 0xc05df9b0
  Oops: Kernel access of bad area, sig: 11 [#1]
  SMP NR_CPUS=2 P2020 RDB
  Modules linked in:
  <... eventual kernel panic>

Adding logic to conditionally ioremap or access memory directly resolves
the issue.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Nate Case <ncase@xes-inc.com>
Reported-by: Dipen Dudhat <B09055@freescale.com>
Tested-by: Dipen Dudhat <B09055@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2010-02-13 14:23:24 -06:00
..
corenet_ds.c powerpc/p4080: Add basic support for p4080ds platform 2009-11-20 16:45:38 -06:00
corenet_ds.h powerpc/p4080: Add basic support for p4080ds platform 2009-11-20 16:45:38 -06:00
Kconfig powerpc/p4080: Add basic support for p4080ds platform 2009-11-20 16:45:38 -06:00
ksi8560.c powerpc/85xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:13 -05:00
Makefile powerpc/p4080: Add basic support for p4080ds platform 2009-11-20 16:45:38 -06:00
mpc85xx_ads.c powerpc/85xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:13 -05:00
mpc85xx_cds.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-cpumask 2009-03-30 18:00:26 -07:00
mpc85xx_ds.c powerpc: Remove swiotlb_pci_dma_ops 2009-08-28 14:24:09 +10:00
mpc85xx_mds.c powerpc/85xx: Fix oops during MSI driver probe on MPC85xxMDS boards 2010-02-13 14:23:22 -06:00
mpc85xx_rdb.c powerpc/85xx: Added P1020RDB Platform support. 2009-11-11 21:43:16 -06:00
mpc8536_ds.c powerpc: Remove swiotlb_pci_dma_ops 2009-08-28 14:24:09 +10:00
p4080_ds.c powerpc/p4080: Add basic support for p4080ds platform 2009-11-20 16:45:38 -06:00
sbc8548.c powerpc/85xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:13 -05:00
sbc8560.c powerpc/85xx: sbc8560 - Fix warm reboot with board specific reset function 2009-08-24 20:48:12 -05:00
smp.c powerpc/85xx: Fix SMP when "cpu-release-addr" is in lowmem 2010-02-13 14:23:24 -06:00
socrates_fpga_pic.c powerpc: Make "intspec" pointers in irq_host->xlate() const 2009-12-09 17:10:37 +11:00
socrates_fpga_pic.h powerpc/85xx: Add support for the "socrates" board (MPC8544). 2009-03-27 06:42:08 -05:00
socrates.c powerpc/85xx: Stop using ppc_md.init on socrates 2009-06-23 08:09:55 -05:00
stx_gp3.c powerpc/85xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:13 -05:00
tqm85xx.c powerpc/85xx: Move gianfar mdio nodes under the ethernet nodes 2009-03-24 08:35:13 -05:00
xes_mpc85xx.c powerpc/85xx: remove duplicated #include 2009-06-23 08:09:59 -05:00