Skip to contentSkip to conversation

powerpc/85xx: Fix writing to spin table 'cpu-release-addr' on ppc64e

PATCH Applied Kumar Gala 2 participants 2 messages Mar 5, 2011 – Mar 15, 2011

Subsystems (2)
lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 powerpc/85xx: Fix writing to spin table 'cpu-release-addr' on ppc64e

From: Kumar Gala <[email protected]>

If the spin table is located in the linear mapping (which can happen if we have 4G or more of memory) we need to access the spin table via a cacheable coherent mapping like we do on ppc32 (and do explicit cache flush).

See the following commit for the ppc32 version of this issue:

commit d1d47ec6e62ab08d2ebb925fd9203abfad3adfbf

Author: Peter Tyser <[email protected]>
Date:   Fri Dec 18 16:50:37 2009 -0600

powerpc/85xx: Fix SMP when "cpu-release-addr" is in lowmem

---
 arch/powerpc/platforms/85xx/smp.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
arch/powerpc/platforms/85xx/smp.c +5 -1
index 5c91a99..0d00ff9 100644
@@ -91,10 +91,14 @@ smp_85xx_kick_cpu(int nr)
 	while ((__secondary_hold_acknowledge != nr) && (++n < 1000))
 		mdelay(1);
 #else
+	smp_generic_kick_cpu(nr);
+
 	out_be64((u64 *)(bptr_vaddr + BOOT_ENTRY_ADDR_UPPER),
 		__pa((u64)*((unsigned long long *) generic_secondary_smp_init)));
 
-	smp_generic_kick_cpu(nr);
+	if (!ioremappable)
+		flush_dcache_range((ulong)bptr_vaddr,
+				(ulong)(bptr_vaddr + SIZE_BOOT_ENTRY));
 #endif
 
 	local_irq_restore(flags);
Signature · 1 line
1.7.2.3
Applied
#1 lore raw
Quoted 13 lines · Kumar Gala

From: Kumar Gala <[email protected]>

If the spin table is located in the linear mapping (which can happen if we have 4G or more of memory) we need to access the spin table via a cacheable coherent mapping like we do on ppc32 (and do explicit cache flush).

See the following commit for the ppc32 version of this issue:

commit d1d47ec6e62ab08d2ebb925fd9203abfad3adfbf

Author: Peter Tyser <[email protected]>
Date:   Fri Dec 18 16:50:37 2009 -0600
Quoted 6 lines

powerpc/85xx: Fix SMP when "cpu-release-addr" is in lowmem

---
arch/powerpc/platforms/85xx/smp.c | 6 +++++-

1 files changed, 5 insertions(+), 1 deletions(-)

applied

- k