Srivatsa S. Bhat | 1 Jun 11:15 2012
Picon

[PATCH 24/27] parisc, smpboot: Use generic SMP booting infrastructure

Convert parisc to use the generic framework to boot secondary CPUs.

Notes:
1. The secondary cpu was being set in the cpu_online_mask way too early
when things aren't initialized fully yet. Postpone that.

Cc: "James E.J. Bottomley" <jejb <at> parisc-linux.org>
Cc: Helge Deller <deller <at> gmx.de>
Cc: Thomas Gleixner <tglx <at> linutronix.de>
Cc: Andrew Morton <akpm <at> linux-foundation.org>
Cc: Rusty Russell <rusty <at> rustcorp.com.au>
Cc: Mike Frysinger <vapier <at> gentoo.org>
Cc: David Howells <dhowells <at> redhat.com>
Cc: linux-parisc <at> vger.kernel.org
Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat <at> linux.vnet.ibm.com>
---

 arch/parisc/kernel/smp.c |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/arch/parisc/kernel/smp.c b/arch/parisc/kernel/smp.c
index 6266730..a6199e2 100644
--- a/arch/parisc/kernel/smp.c
+++ b/arch/parisc/kernel/smp.c
 <at>  <at>  -32,6 +32,7  <at>  <at> 
 #include <linux/bitops.h>
 #include <linux/ftrace.h>
 #include <linux/cpu.h>
+#include <linux/smpboot.h>

(Continue reading)

James Bottomley | 5 Jun 06:47 2012

[PATCH 0/3] fix recent parisc build breakages

I was hoping that 3.5-rc1 would allow us to build perfectly.
Unfortunately, there were three compile breakages introduced in the last
few days of the merge window, so these are the three fixes

James Bottomley (3):
      fix missing TAINT_WARN problem
      fix compile break in use of lib/strncopy_from_user.c
      fix code to find libgcc

 arch/parisc/Makefile           |    3 ++-
 arch/parisc/include/asm/Kbuild |    1 +
 arch/parisc/include/asm/bug.h  |    2 ++
 3 files changed, 5 insertions(+), 1 deletions(-)

James

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

James Bottomley | 5 Jun 06:52 2012

[PATCH 1/3] fix missing TAINT_WARN problem

From ad71a7070fd5912420c443b020c6cf796518f3e9 Mon Sep 17 00:00:00 2001
From: James Bottomley <James.Bottomley <at> HansenPartnership.com>
Date: Sun, 3 Jun 2012 01:49:32 -0700
Subject: fix missing TAINT_WARN problem

Al viro broke us with

commit edd63a2763bdae0daa4f0a4d4c5d61d1154352a5
Author: Al Viro <viro <at> zeniv.linux.org.uk>
Date:   Fri Apr 27 13:42:45 2012 -0400

    set_restore_sigmask() is never called without SIGPENDING (and never should be)

Although it's pretty much our fault since parisc's asm/bug.h uses
BUGWARN_TAINT but doesn't include the file that defines it.  Fix that.
---
 arch/parisc/include/asm/bug.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/parisc/include/asm/bug.h b/arch/parisc/include/asm/bug.h
index 72cfdb0..62a3333 100644
--- a/arch/parisc/include/asm/bug.h
+++ b/arch/parisc/include/asm/bug.h
 <at>  <at>  -1,6 +1,8  <at>  <at> 
 #ifndef _PARISC_BUG_H
 #define _PARISC_BUG_H

+#include <linux/kernel.h>	/* for BUGFLAG_TAINT */
+
 /*
(Continue reading)

James Bottomley | 5 Jun 06:53 2012

[PATCH 2/3] fix compile break in use of lib/strncopy_from_user.c

Linus broke us with

commit 36126f8f2ed8168eb13aa0662b9b9585cba100a9
Author: Linus Torvalds <torvalds <at> linux-foundation.org>
Date:   Sat May 26 10:43:17 2012 -0700

    word-at-a-time: make the interfaces truly generic

By moving functions defined in strncopy_from_user.c into the asm-geneic
version word-at-a-time.h.  Spark and OpenRisc were fixed to use this, but
not parisc.  Fix by adding to generic-y in asm/Kbuild
---
 arch/parisc/include/asm/Kbuild |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/parisc/include/asm/Kbuild b/arch/parisc/include/asm/Kbuild
index 19a434f..4383707 100644
--- a/arch/parisc/include/asm/Kbuild
+++ b/arch/parisc/include/asm/Kbuild
 <at>  <at>  -1,3 +1,4  <at>  <at> 
 include include/asm-generic/Kbuild.asm

 header-y += pdc.h
+generic-y += word-at-a-time.h
--

-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
(Continue reading)

James Bottomley | 5 Jun 06:54 2012

[PATCH 3/3] fix code to find libgcc

Sam broke this with

commit 1f2bfbd00e466ff3489b2ca5cc75b1cccd14c123
Author: Sam Ravnborg <sam <at> ravnborg.org>
Date:   Sat May 5 10:18:41 2012 +0200

    kbuild: link of vmlinux moved to a script

But we should be deriving the location of libgcc in the same way as all
the other archs, so fix by adding a LIBGCC variable which is evaluated
in the makefile
---
 arch/parisc/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
index dbc3850..5707f1a 100644
--- a/arch/parisc/Makefile
+++ b/arch/parisc/Makefile
 <at>  <at>  -21,6 +21,7  <at>  <at>  KBUILD_DEFCONFIG := default_defconfig

 NM		= sh $(srctree)/arch/parisc/nm
 CHECKFLAGS	+= -D__hppa__=1
+LIBGCC		= $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)

 MACHINE		:= $(shell uname -m)
 ifeq ($(MACHINE),parisc*)
 <at>  <at>  -79,7 +80,7  <at>  <at>  kernel-y			:= mm/ kernel/ math-emu/
 kernel-$(CONFIG_HPUX)		+= hpux/

(Continue reading)

Sam Ravnborg | 5 Jun 08:55 2012

Re: [PATCH 3/3] fix code to find libgcc

On Tue, Jun 05, 2012 at 01:54:09PM +0900, James Bottomley wrote:
> Sam broke this with
Soory!
> 
> commit 1f2bfbd00e466ff3489b2ca5cc75b1cccd14c123
> Author: Sam Ravnborg <sam <at> ravnborg.org>
> Date:   Sat May 5 10:18:41 2012 +0200
> 
>     kbuild: link of vmlinux moved to a script
> 
> But we should be deriving the location of libgcc in the same way as all
> the other archs, so fix by adding a LIBGCC variable which is evaluated
> in the makefile
It actually took me some time to realise why the formar approach was wrong.
It is still morning here..

Thanks for fixing this!

Acked-by: Sam Ravnborg <sam <at> ravnborg.org>

	Sam
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Rolf Eike Beer | 6 Jun 14:55 2012
Picon

3.4.1 fails to boot on Apollo 705 in paging_init

Linux version 3.4.1 (root <at> voyager) (gcc version 4.5.3 (Gentoo 4.5.3-r2
p1.5, pie-0.4.7) ) #1 Wed Jun 6 14:15:43 CEST 2012
unwind_init: start = 0x1044e000, end = 0x1047faf0, entries = 12719
FP[0] enabled: Rev 3 Model 0
The 32-bit Kernel has started...
bootconsole [ttyB0] enabled
Initialized PDC Console for debugging.
Determining PDC firmware type: Snake.
model 00003020 00000481 00000000 00000000 77aac223 ffffffff 00000004
0000000d 00000000
vers  00000003
model 9000/705
Total Memory: 64 MB
      _______________________________
     < Your System ate a SPARC! Gah! >
      -------------------------------
             \   ^__^
                 (__)\       )\/\
                  U  ||----w |
                     ||     ||
swapper (pid 0): Protection id trap (code 7)

     YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000001000000000000001110 Not tainted
r00-03  0004000e 0004000e 1050104c 00000000
r04-07  00000001 104841cc 1048e000 104917b8
r08-11  104917d4 1048e024 00000000 00100000
r12-15  00004000 00000000 00537fff 104b58c8
r16-19  104ec800 00004000 1048e000 0000000e
r20-23  00000000 00000000 00000000 00000000
(Continue reading)


Gmane