linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Fix alignment of secondary cpu spin vars
@ 2013-12-28 21:01 Olof Johansson
  2013-12-28 21:05 ` Olof Johansson
  0 siblings, 1 reply; 10+ messages in thread
From: Olof Johansson @ 2013-12-28 21:01 UTC (permalink / raw)
  To: benh; +Cc: Olof Johansson, linuxppc-dev, linux-kernel, anton

Commit 5c0484e25ec0 ('powerpc: Endian safe trampoline') resulted in
losing proper alignment of the spinlock variables used when booting
secondary CPUs, causing some quite odd issues with failing to boot on
PA Semi-based systems.

This showed itself on ppc64_defconfig, but not on pasemi_defconfig,
so it had gone unnoticed when I initially tested the LE patch set.

Fix is to add explicit alignment instead of relying on good luck. :)

Fixes: 5c0484e25ec0 ('powerpc: Endian safe trampoline')
Reported-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=67811
Signed-off-by: Olof Johansson <olof@lixom.net>
---
 arch/powerpc/kernel/head_64.S |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S
index 2ae41ab..4d94477 100644
--- a/arch/powerpc/kernel/head_64.S
+++ b/arch/powerpc/kernel/head_64.S
@@ -80,6 +80,7 @@ END_FTR_SECTION(0, 1)
 	 * of the function that the cpu should jump to to continue
 	 * initialization.
 	 */
+	.balign 8
 	.globl  __secondary_hold_spinloop
 __secondary_hold_spinloop:
 	.llong	0x0
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-05-23 21:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-28 21:01 [PATCH] powerpc: Fix alignment of secondary cpu spin vars Olof Johansson
2013-12-28 21:05 ` Olof Johansson
2014-01-03  7:56   ` Olof Johansson
2014-01-03  8:12     ` Olof Johansson
2014-01-08  4:09       ` Michael Ellerman
2014-01-08  4:18         ` Benjamin Herrenschmidt
2014-01-08 17:48           ` Olof Johansson
2014-01-09  1:36             ` Benjamin Herrenschmidt
     [not found]             ` <52CDC12F.5030407@xenosoft.de>
     [not found]               ` <52D6E829.1050504@xenosoft.de>
     [not found]                 ` <52D6E89C.7010407@xenosoft.de>
     [not found]                   ` <52D6E928.7050307@xenosoft.de>
2014-01-22 10:18                     ` [Bug 67811] PASEMI: Kernel 3.13.0 doesn't boot with a PA6T cpu Christian Zigotzky
2014-05-23 21:29                       ` PASEMI: Kernel 3.15.0-rc6 " Christian Zigotzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).