Re: vmsplice bad address

2011-03-07 Thread Benjamin Herrenschmidt
On Thu, 2011-03-03 at 14:01 +0100, Guillaume Dargaud wrote: > Hello all, > I'm trying to use the vmsplice/splice combination to so socket writes in > zero-copy mode since it seems to be the big > bottle neck in my application. > > Here's a simplified code: > > // This buffer is actually outside

Mpc8315erdb openvpn segmentation fault

2011-03-07 Thread Vasanth Ragavendran
i'm facing a problem. i've installed openvpn on mpc8315erdb board and when i give the command openvpn --mktun --dev tap0 i get the error [root@mpc8315erdb /]# openvpn --mktun --dev tap0 Sat Jan 1 01:04:21 2000 OpenVPNUnable to handle kernel paging request for data at address 0x 2.0.

Re: Mpc8315erdb openvpn segmentation fault

2011-03-07 Thread Scott Wood
On Mon, 7 Mar 2011 03:09:27 -0800 Vasanth Ragavendran wrote: > > i'm facing a problem. i've installed openvpn on mpc8315erdb board and when i > give the command > > openvpn --mktun --dev tap0 i get the error > > > > [root@mpc8315erdb /]# openvpn --mktun --dev tap0 > Sat Jan 1 01:04:21 2000

[PATCH,v2 00/28] powerpc: irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
This patch converts powerpc over to the new irq_data based irq_chip functions, as was done earlier for ARM and most other architectures. struct irq_data is described here: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ff7dcd44dd446db2c3e13bdedf2d52b8e0127f16

[PATCH 01/28] powerpc: mpic irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/include/asm/mpic.h |6 +- arch/powerpc/platforms/pasemi/setup.c |4 +- arch/powerpc/sysdev/mpic.c| 131 + arch/powerpc/sysdev/mpic.h|5 +- arch/powerpc/sysdev/mpic_pasemi_m

[PATCH 02/28] powerpc: platforms/512x irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/512x/mpc5121_ads_cpld.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/platforms/512x/mpc5121_ads_cpld.c b/arch/powerpc/platforms/512x/mpc5121_ads_cpld.c index 4ecf4cf..fde0ea5 100644

[PATCH 03/28] powerpc: platforms/52xx irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/52xx/media5200.c | 21 arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 26 +- arch/powerpc/platforms/52xx/mpc52xx_pic.c | 80 ++-- 3 files changed, 64 insertions(+), 63 deletions(-) diff --gi

[PATCH 04/28] powerpc: platforms/82xx irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/82xx/pq2ads-pci-pic.c | 27 - 1 files changed, 13 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c b/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c index 5a55d87..a0cd8ae

[PATCH 05/28] powerpc: platforms/85xx irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/85xx/ksi8560.c |3 +- arch/powerpc/platforms/85xx/mpc85xx_ads.c |3 +- arch/powerpc/platforms/85xx/mpc85xx_ds.c|3 +- arch/powerpc/platforms/85xx/sbc8560.c |3 +- arch/powerpc/platforms/8

[PATCH 06/28] powerpc: platforms/86xx irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/86xx/gef_pic.c | 22 +++--- arch/powerpc/platforms/86xx/pic.c |5 - 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/platforms/86xx/gef_pic.c b/arch/powerpc/platforms/86xx/gef_p

[PATCH 07/28] powerpc: platforms/8xx irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/8xx/m8xx_setup.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/8xx/m8xx_setup.c b/arch/powerpc/platforms/8xx/m8xx_setup.c index 60168c1..fabb108 100644 --- a/arch/powerpc/platfor

[PATCH 08/28] powerpc: platforms/cell irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/cell/axon_msi.c |3 +- arch/powerpc/platforms/cell/beat_interrupt.c | 36 +++--- arch/powerpc/platforms/cell/interrupt.c | 30 ++ arch/powerpc/platforms/cell/setup.c |6 ++-

[PATCH 09/28] powerpc: platforms/chrp irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/chrp/setup.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c index 8553cc4..4c12884 100644 --- a/arch/powerpc/platforms/chrp/setup.c

[PATCH 10/28] powerpc: platforms/embedded6xx irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/embedded6xx/flipper-pic.c | 32 arch/powerpc/platforms/embedded6xx/hlwd-pic.c| 41 +++-- 2 files changed, 37 insertions(+), 36 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/flipper

[PATCH 11/28] powerpc: platforms/iseries irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/iseries/irq.c | 43 +++--- 1 files changed, 24 insertions(+), 19 deletions(-) diff --git a/arch/powerpc/platforms/iseries/irq.c b/arch/powerpc/platforms/iseries/irq.c index ba446bf..4fb96f0 100644 --- a/ar

[PATCH 12/28] powerpc: platforms/powermac irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/powermac/pic.c | 48 +--- 1 files changed, 25 insertions(+), 23 deletions(-) diff --git a/arch/powerpc/platforms/powermac/pic.c b/arch/powerpc/platforms/powermac/pic.c index 890d5f7..c55812b 100644 --- a/a

[PATCH 13/28] powerpc: platforms/ps3 irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/ps3/interrupt.c | 40 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/powerpc/platforms/ps3/interrupt.c b/arch/powerpc/platforms/ps3/interrupt.c index 92290ff..bc8b59b 100644 ---

[PATCH 14/28] powerpc: platforms/pseries irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/platforms/pseries/setup.c |5 ++- arch/powerpc/platforms/pseries/xics.c | 89 +--- 2 files changed, 51 insertions(+), 43 deletions(-) diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms

[PATCH 15/28] powerpc: sysdev/cpm1 irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/cpm1.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/sysdev/cpm1.c b/arch/powerpc/sysdev/cpm1.c index 0085212..0476bcc 100644 --- a/arch/powerpc/sysdev/cpm1.c +++ b/arch/powerpc/sysde

[PATCH 16/28] powerpc: sysdev/cpm2_pic irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/cpm2_pic.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/sysdev/cpm2_pic.c b/arch/powerpc/sysdev/cpm2_pic.c index fcea4ff..4730325 100644 --- a/arch/powerpc/sysdev/cpm

[PATCH 17/28] powerpc: sysdev/fsl_msi irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/fsl_msi.c | 19 ++- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index 108d76f..f6051d7 100644 --- a/arch/powerpc/sysdev/fsl_msi.c +++ b/arch

[PATCH 18/28] powerpc: sysdev/i8259 irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/i8259.c | 42 +- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git a/arch/powerpc/sysdev/i8259.c b/arch/powerpc/sysdev/i8259.c index 6323e70..aeda4c8 100644 --- a/arch/powerpc/sysdev/i8

[PATCH 19/28] powerpc: sysdev/ipic irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/ipic.c | 54 ++-- 1 files changed, 27 insertions(+), 27 deletions(-) diff --git a/arch/powerpc/sysdev/ipic.c b/arch/powerpc/sysdev/ipic.c index d7b9b9c..497047d 100644 --- a/arch/powerpc/sysdev/ipi

[PATCH 20/28] powerpc: sysdev/mpc8xx_pic irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/mpc8xx_pic.c | 32 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/sysdev/mpc8xx_pic.c b/arch/powerpc/sysdev/mpc8xx_pic.c index 8c27d26..1a75a7f 100644 --- a/arch/powerpc/sysd

[PATCH 21/28] powerpc: sysdev/mpc8xxx_gpio irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/mpc8xxx_gpio.c | 42 ++-- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git a/arch/powerpc/sysdev/mpc8xxx_gpio.c b/arch/powerpc/sysdev/mpc8xxx_gpio.c index c48cd81..519a877 100644 --- a/arch/p

[PATCH 22/28] powerpc: sysdev/mv64x60_pic irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/mv64x60_pic.c | 46 ++-- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/arch/powerpc/sysdev/mv64x60_pic.c b/arch/powerpc/sysdev/mv64x60_pic.c index 485b924..bc61ebb 100644 --- a/arch/powe

[PATCH 23/28] powerpc: sysdev/qe_lib/qe_ic irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/include/asm/qe_ic.h | 19 +++ arch/powerpc/sysdev/qe_lib/qe_ic.c | 20 ++-- 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/arch/powerpc/include/asm/qe_ic.h b/arch/powerpc/include/asm/qe_ic.h

[PATCH 24/28] powerpc: sysdev/tsi108_pci irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/tsi108_pci.c | 41 + 1 files changed, 19 insertions(+), 22 deletions(-) diff --git a/arch/powerpc/sysdev/tsi108_pci.c b/arch/powerpc/sysdev/tsi108_pci.c index 0ab9281..02c91db 100644 --- a/arch/powerpc

[PATCH 25/28] powerpc: sysdev/uic irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/uic.c | 59 +++-- 1 files changed, 30 insertions(+), 29 deletions(-) diff --git a/arch/powerpc/sysdev/uic.c b/arch/powerpc/sysdev/uic.c index 0038fb7..861fb99 100644 --- a/arch/powerpc/sysdev/uic.c

[PATCH 26/28] powerpc: sysdev/xilinx_intc irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/sysdev/xilinx_intc.c | 48 +++- 1 files changed, 25 insertions(+), 23 deletions(-) diff --git a/arch/powerpc/sysdev/xilinx_intc.c b/arch/powerpc/sysdev/xilinx_intc.c index 1e0ccfa..0512f58 100644 --- a/arch/powe

[PATCH 27/28] powerpc: core irq_data conversion.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/kernel/irq.c | 23 --- arch/powerpc/kernel/machine_kexec.c | 21 - 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index c

[PATCH 28/28] powerpc: Enable GENERIC_HARDIRQS_NO_DEPRECATED.

2011-03-07 Thread Lennert Buytenhek
Signed-off-by: Lennert Buytenhek --- arch/powerpc/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 7d69e9b..71ba047 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -134,6 +134,7 @@ config PPC

[PATCH][v2] driver/FSL SATA:Fix wrong Device Error Register usage

2011-03-07 Thread Prabhakar Kushwaha
When a single device error is detected, the device under the error is indicated by the error bit set in the DER. There is a one to one mapping between register bit and devices on Port multiplier(PMP) i.e. bit 0 represents PMP device 0 and bit 1 represents PMP device 1 etc. Current implementation t

Re: [PATCH] of_mmc_spi: add card detect irq support

2011-03-07 Thread Grant Likely
On Tue, Dec 28, 2010 at 07:05:26PM +0300, Anton Vorontsov wrote: > On Mon, Aug 30, 2010 at 11:49:08AM -0600, Grant Likely wrote: > > On Mon, Aug 30, 2010 at 10:38 AM, David Brownell > > wrote: > > > Since I don't do OpenFirmware, let's hear from > > > Grant on this one. > > > > Looks good to me.

Re: [PATCH 01/28] powerpc: mpic irq_data conversion.

2011-03-07 Thread Grant Likely
On Tue, Mar 08, 2011 at 12:59:02AM +0100, Lennert Buytenhek wrote: > Signed-off-by: Lennert Buytenhek Hi Lennert, I'm taking a look over now and running some build testing. However, this needs a wider audience for review before it gets merged. Can you please repost and cc: benh, sfr, tglx, and

Re: [PATCH 28/28] powerpc: Enable GENERIC_HARDIRQS_NO_DEPRECATED.

2011-03-07 Thread Grant Likely
On Tue, Mar 08, 2011 at 01:00:23AM +0100, Lennert Buytenhek wrote: > Signed-off-by: Lennert Buytenhek All 28 look good to me, it compiles with all the defconfigs I tried, and it boots on mpc5200. Feel free to add: Acked-by: Grant Likely Ben, I've got this series applied against 2.6.38-rc7 in

Re: [PATCH 28/28] powerpc: Enable GENERIC_HARDIRQS_NO_DEPRECATED.

2011-03-07 Thread Benjamin Herrenschmidt
On Mon, 2011-03-07 at 21:38 -0700, Grant Likely wrote: > > All 28 look good to me, it compiles with all the defconfigs I tried, > and it boots on mpc5200. Feel free to add: > > Acked-by: Grant Likely > > Ben, I've got this series applied against 2.6.38-rc7 in a branch on my > private repo. If

Re: [PATCH 01/28] powerpc: mpic irq_data conversion.

2011-03-07 Thread Benjamin Herrenschmidt
On Mon, 2011-03-07 at 21:13 -0700, Grant Likely wrote: > On Tue, Mar 08, 2011 at 12:59:02AM +0100, Lennert Buytenhek wrote: > > Signed-off-by: Lennert Buytenhek > > Hi Lennert, > > I'm taking a look over now and running some build testing. > > However, this needs a wider audience for review bef

Re: [PATCH] powerpc: disable MSI using new interface if possible

2011-03-07 Thread Nishanth Aravamudan
On 03.03.2011 [23:24:44 -0800], Nishanth Aravamudan wrote: > On 04.03.2011 [14:01:24 +1100], Michael Ellerman wrote: > > On Thu, 2011-03-03 at 17:41 -0800, Nishanth Aravamudan wrote: > > > On 04.03.2011 [12:05:29 +1100], Michael Ellerman wrote: > > > > On Thu, 2011-03-03 at 11:39 -0800, Nishanth Ar

[PATCH 03/18] powerpc/smp: Fix generic_mach_cpu_die()

2011-03-07 Thread Benjamin Herrenschmidt
This is used by some "soft" hotplug implementations. I needs to call idle_task_exit() when the CPU is going away, and we remove the now no-longer needed set_cpu_online() and local_irq_enable() which are handled by the return to start_secondary Signed-off-by: Benjamin Herrenschmidt --- arch/power

[PATCH 08/18] powerpc/pmac/smp: Fixup smp_core99_cpu_disable() and use it on 64-bit

2011-03-07 Thread Benjamin Herrenschmidt
Use the generic code, just add the MPIC priority setting, I don't see any use in mucking around with the decrementer, as 32-bit will have EE off all along, and 64-bit will be able to deal with it. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powermac/smp.c | 17 +--

[PATCH 05/18] powerpc/smp: Remove unused smp_ops->cpu_enable()

2011-03-07 Thread Benjamin Herrenschmidt
Remove the last remnants of cpu_enable(), everybody uses the normal __cpu_up() path now Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/machdep.h|1 - arch/powerpc/kernel/smp.c | 10 -- arch/powerpc/platforms/powermac/smp.c |2 -- 3 files chan

[PATCH 04/18] powerpc/smp: Remove unused generic_cpu_enable()

2011-03-07 Thread Benjamin Herrenschmidt
Nobody uses it, besides we should always use the normal __cpu_up path anyways Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/smp.h |1 - arch/powerpc/kernel/smp.c | 22 -- 2 files changed, 0 insertions(+), 23 deletions(-) diff --git a/arch/powe

[PATCH 01/18] powerpc: Make decrementer interrupt robust against offlined CPUs

2011-03-07 Thread Benjamin Herrenschmidt
With some implementations, it is possible that a timer interrupt occurs every few seconds on an offline CPU. In this case, just re-arm the decrementer and return immediately Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/time.c | 15 +++ 1 files changed, 11 insertion

[PATCH 09/18] powerpc/pmac/smp: Consolidate 32-bit and 64-bit PowerMac cpu_die in one file

2011-03-07 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powermac/pmac.h |1 - arch/powerpc/platforms/powermac/setup.c | 56 - arch/powerpc/platforms/powermac/smp.c | 58 +-- 3 files changed, 55 insertions(+), 60 deletions

[PATCH 06/18] powerpc/pmac/smp: Fix 32-bit PowerMac cpu_die

2011-03-07 Thread Benjamin Herrenschmidt
Use generic cpu_state, call idle_task_exit() properly, and remove smp_core99_cpu_die() which isn't useful, the generic function does the job just fine. --- arch/powerpc/include/asm/smp.h|1 + arch/powerpc/platforms/powermac/smp.c | 25 + 2 files changed, 6 ins

[PATCH 07/18] powerpc/pmac/smp: Rename fixup_irqs() to migrate_irqs() and use it on ppc32

2011-03-07 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/smp.h |2 +- arch/powerpc/kernel/irq.c |3 ++- arch/powerpc/kernel/smp.c |2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/smp.h b/arch/powerpc/include/asm/smp.h i

[PATCH 02/18] powerpc/smp: soft-replugged CPUs must go back to start_secondary

2011-03-07 Thread Benjamin Herrenschmidt
Various thing are torn down when a CPU is hot-unplugged. That CPU is expected to go back to start_secondary when re-plugged to re initialize everything, such as clock sources, maps, ... Some implementations just return from cpu_die() callback in the idle loop when the CPU is "re-plugged". This is

[PATCH 15/18] powerpc/smp: Don't expose per-cpu "cpu_state" array

2011-03-07 Thread Benjamin Herrenschmidt
Instead, keep it static, expose an accessor and use that from the PowerMac code. Avoids easy namespace collisions and will make it easier to consolidate with other implementations. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/smp.h|2 +- arch/powerpc/kernel/smp.

[PATCHES] powerpc: Cleanup and fix CPU hotplug

2011-03-07 Thread Benjamin Herrenschmidt
This series contain a number of cleanups and fixes to our CPU hotplug code, including fixing crashes on G5 machines, properly re-initializing idle threads etc... Tested on PowerMac G5 and pSeries machines. ___ Linuxppc-dev mailing list Linuxppc-dev@list

[PATCH 13/18] powerpc/smp: Add a smp_ops->bringup_up() done callback

2011-03-07 Thread Benjamin Herrenschmidt
This allows us to stop abusing smp_ops->setup_cpu() for cleanup tasks that have to take place after the initial boot time CPU bringup. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/machdep.h |1 + arch/powerpc/kernel/smp.c |4 2 files changed, 5 inserti

[PATCH 10/18] powerpc/pmac/smp: Remove HMT changes for PowerMac offline code

2011-03-07 Thread Benjamin Herrenschmidt
Those instructions do nothing on non-threaded processors such as 970's used on those machines. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powermac/smp.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch

[PATCH 18/18] powerpc/pmac/smp: Remove no-longer needed preempt workaround

2011-03-07 Thread Benjamin Herrenschmidt
The generic code properly re-initializes the preempt count in the idle thread now Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powermac/smp.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/p

[PATCH 16/18] powerpc/smp: Create idle threads on demand and properly reset them

2011-03-07 Thread Benjamin Herrenschmidt
Instead of creating idle threads at boot for all possible CPUs, we create them on demand, like x86 or ARM, and we properly call init_idle to re-initialize an idle thread when a CPU was unplugged and is now re-plugged. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/smp.c | 100 +++

[PATCH 17/18] powerpc/smp: Increase vdso_data->processorCount, not just decrease it

2011-03-07 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/smp.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index e337073..6023395 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -5

[PATCH 12/18] powerpc/pmac: Rename cpu_state in therm_pm72 to avoid collision

2011-03-07 Thread Benjamin Herrenschmidt
This collides with the cpu_state in our SMP code, use processor_state instead. Signed-off-by: Benjamin Herrenschmidt --- drivers/macintosh/therm_pm72.c | 60 1 files changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/macintosh/therm_pm72.c

[PATCH 14/18] powerpc/pmac/smp: Fix CPU hotplug crashes on some machines

2011-03-07 Thread Benjamin Herrenschmidt
On some machines that use i2c to synchronize the timebases (such as PowerMac7,2/7,3 G5 machines), hotplug CPU would crash when putting back a new CPU online due to the underlying i2c bus being closed. This uses the newly added bringup_done() callback to move the close along with other housekeeping

[PATCH 11/18] powerpc/pmac/smp: Properly NAP offlined CPU on G5

2011-03-07 Thread Benjamin Herrenschmidt
The current code soft-disables, and then goes to NAP mode which turns interrupts on. That means that if an interrupt occurs, we will hit the masked interrupt code path which isn't what we want, as it will return with EE off, which will either get us out of NAP mode, or fail to enter it (according t

Re: Mpc8315erdb openvpn segmentation fault

2011-03-07 Thread Vasanth Ragavendran
Thanks a ton Scott. Actually i was working with the same version of the kernel on both the boards. it was 2.6.29.6. neither i changed the u-boot. it was the same in both. however i recompiled the kernel and i installed on both the boards and it worked fine! :) thanks again for responding. however