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
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.
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
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
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
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
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
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
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
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
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
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 ++-
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
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
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
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
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
---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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 +--
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
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
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
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
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
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
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
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.
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
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
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
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
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 +++
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
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
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
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
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
59 matches
Mail list logo