Re: [PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-08 Thread Michael Ellerman
On Tue, 2011-11-08 at 13:45 -0800, Miche Baker-Harvey wrote: > hvc_init() must only be called once, and no thread should continue with > hvc_alloc() > until after initialization is complete. The original code does not enforce > either > of these requirements. A new mutex limits entry to hvc_ini

Re: [PATCH] powerpc: Export PIR data through sysfs

2011-11-08 Thread Michael Ellerman
On Tue, 2011-11-08 at 10:59 -0600, Scott Wood wrote: > On 11/08/2011 12:58 AM, Ananth N Mavinakayanahalli wrote: > > On Mon, Nov 07, 2011 at 11:18:32AM -0600, Scott Wood wrote: > >> What use does userspace have for this? If you want to return the > >> currently executing CPU (which unless you're p

Re: [PATCH v2 1/5] [ppc] Process dynamic relocations for kernel

2011-11-08 Thread Suzuki Poulose
On Tue, 08 Nov 2011 10:19:05 -0600 Josh Poimboeuf wrote: > On Tue, 2011-11-08 at 12:41 +0530, Suzuki Poulose wrote: > > What I was suggesting is, instead of flushing the cache in > > relocate(), lets do it like: > > > > for e.g, on 440x, (in head_44x.S :) > > > > #ifdef CONFIG_RELOCATABLE > >

Re: [PATCH] powerpc: Export PIR data through sysfs

2011-11-08 Thread Ananth N Mavinakayanahalli
On Tue, Nov 08, 2011 at 10:59:46AM -0600, Scott Wood wrote: > On 11/08/2011 12:58 AM, Ananth N Mavinakayanahalli wrote: > > On Mon, Nov 07, 2011 at 11:18:32AM -0600, Scott Wood wrote: > >> What use does userspace have for this? If you want to return the > >> currently executing CPU (which unless y

Re: [PATCH 0/2] PS3 fixes for 3.2

2011-11-08 Thread Benjamin Herrenschmidt
On Tue, 2011-11-08 at 17:51 -0800, Geoff Levand wrote: > git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git Thanks. Will do after he pulls my current batch. Cheers, Ben. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https:

[PATCH 2/2] powerpc/ps3: Fix SMP lockdep boot warning

2011-11-08 Thread Geoff Levand
Move the PS3 IPI message setup from ps3_smp_setup_cpu() to ps3_smp_probe(). Fixes startup warnings like these: [ cut here ] WARNING: at kernel/lockdep.c:2649 Modules linked in: ... ---[ end trace 31fd0ba7d8756001 ]--- Signed-off-by: Geoff Levand --- arch/power

[PATCH 1/2] powerpc/ps3: Fix lost SMP IPIs

2011-11-08 Thread Geoff Levand
Fixes the PS3 bootup hang introduced in 3.0-rc1 by: commit 317f394160e9beb97d19a84c39b7e5eb3d7815a sched: Move the second half of ttwu() to the remote cpu Move the PS3's LV1 EOI call lv1_end_of_interrupt_ext() from ps3_chip_eoi() to ps3_get_irq() for IPI messages. If lv1_send_event_locally()

[PATCH 0/2] PS3 fixes for 3.2

2011-11-08 Thread Geoff Levand
Ben, Here are two fixes for PS3. Please apply for 3.2. -Geoff The following changes are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git for-powerpc Geoff Levand (2): powerpc/ps3: Fix lost SMP IPIs powerpc/ps3: Fix SMP lockdep boot w

[PATCH v3 3/3] Use separate struct console structure for each hvc_console.

2011-11-08 Thread Miche Baker-Harvey
It is possible to make any virtio_console port be a console by sending VIRITO_CONSOLE_CONSOLE_PORT. But hvc_alloc was using a single struct console hvc_console, which contains both an index and flags which are per-port. This adds a separate struct console for each virtio_console that is CONSOLE_P

[PATCH RFC v3 0/3] Support multiple VirtioConsoles.

2011-11-08 Thread Miche Baker-Harvey
(Amit pointed out that the patches never went out. This was a resend of the series meant to go out on 11/2/2011; Now it's a resend of the mail this morning, with everyone copied on the same mail. So sorry for the spam! This is v3.) This patchset applies to linux-next/next-2002. This series i

[PATCH v3 1/3] virtio_console: Fix locking of vtermno.

2011-11-08 Thread Miche Baker-Harvey
Some modifications of vtermno were not done under the spinlock. Moved assignment from vtermno and increment of vtermno together, putting both under the spinlock. Revert vtermno on failure. Signed-off-by: Miche Baker-Harvey --- drivers/char/virtio_console.c |9 ++--- 1 files changed, 6

[PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-08 Thread Miche Baker-Harvey
hvc_init() must only be called once, and no thread should continue with hvc_alloc() until after initialization is complete. The original code does not enforce either of these requirements. A new mutex limits entry to hvc_init() to a single thread, and blocks all later comers until it has compl

Re: [PATCH 2/7] powerpc/85xx: add HOTPLUG_CPU support

2011-11-08 Thread Scott Wood
On 11/08/2011 04:05 AM, Li Yang-R58472 wrote: >> Subject: Re: [PATCH 2/7] powerpc/85xx: add HOTPLUG_CPU support >> >> On 11/04/2011 07:31 AM, Zhao Chenhui wrote: >>> +static int is_corenet; >>> +static void __cpuinit smp_85xx_setup_cpu(int cpu_nr); >>> + >>> +#if defined(CONFIG_HOTPLUG_CPU) && defi

Re: [PATCH 5/7] fsl_pmc: update device bindings

2011-11-08 Thread Scott Wood
On 11/08/2011 04:56 AM, Li Yang-R58472 wrote: >>> diff --git a/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt >> b/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt >>> index 07256b7..d84b4f8 100644 >>> --- a/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt >>> +++ b/Documentation/d

[PATCH v2 3/3] Use separate struct console structure for each hvc_console.

2011-11-08 Thread Miche Baker-Harvey
It is possible to make any virtio_console port be a console by sending VIRITO_CONSOLE_CONSOLE_PORT. But hvc_alloc was using a single struct console hvc_console, which contains both an index and flags which are per-port. This adds a separate struct console for each virtio_console that is CONSOLE_P

[PATCH v2 2/3] hvc_init(): Enforce one-time initialization.

2011-11-08 Thread Miche Baker-Harvey
hvc_init() must only be called once, and no thread should continue with hvc_alloc() until after initialization is complete. The original code does not enforce either of these requirements. A new mutex limits entry to hvc_init() to a single thread, and blocks all later comers until it has compl

[PATCH v2 1/3] virtio_console: Fix locking of vtermno.

2011-11-08 Thread Miche Baker-Harvey
Some modifications of vtermno were not done under the spinlock. Moved assignment from vtermno and increment of vtermno together, putting both under the spinlock. Revert vtermno on failure. Signed-off-by: Miche Baker-Harvey --- drivers/char/virtio_console.c |9 ++--- 1 files changed, 6

[PATCH RFC v2 0/3] Support multiple VirtioConsoles.

2011-11-08 Thread Miche Baker-Harvey
(Amit pointed out that the patches never went out. This is a resend of the series meant to go out on 11/2/2011; I've marked it "v2".) This patchset applies to linux-next/next-2002. This series implements support for multiple virtio_consoles using KVM. This patchset addresses several issues

Re: [PATCH 3/7] powerpc/85xx: add sleep and deep sleep support

2011-11-08 Thread Scott Wood
On 11/08/2011 04:32 AM, Li Yang-R58472 wrote: >> Subject: Re: [PATCH 3/7] powerpc/85xx: add sleep and deep sleep support >> >> On 11/04/2011 07:33 AM, Zhao Chenhui wrote: >>> static int pmc_suspend_enter(suspend_state_t state) >>> { >>> int ret; >>> + u32 powmgtreq = 0x0050; >> >> Where

Re: [PATCH 1/7] powerpc/85xx: re-enable timebase sync disabled by KEXEC patch

2011-11-08 Thread Scott Wood
On 11/08/2011 03:06 AM, Li Yang-R58472 wrote: > > >> -Original Message- >> From: linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org >> [mailto:linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org] On >> Behalf Of Scott Wood >> Sent: Saturday, November 05, 2011 1:34 AM >> To: Z

[PATCH] KVM: PPC: protect use of kvmppc_h_pr

2011-11-08 Thread Andreas Schwab
kvmppc_h_pr is only available if CONFIG_KVM_BOOK3S_64_PR. Signed-off-by: Andreas Schwab --- arch/powerpc/kvm/book3s_pr.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index bc4d50d..05473b5 100644 --- a/arch/

[PATCH] KVM: PPC: move compute_tlbie_rb to book3s_64 common header

2011-11-08 Thread Andreas Schwab
compute_tlbie_rb is only used on ppc64 and cannot be compiled on ppc32. Signed-off-by: Andreas Schwab --- arch/powerpc/include/asm/kvm_book3s.h| 33 -- arch/powerpc/include/asm/kvm_book3s_64.h | 33 ++ 2 files changed, 33 insertions

Re: [PATCH] powerpc: Export PIR data through sysfs

2011-11-08 Thread Scott Wood
On 11/08/2011 12:58 AM, Ananth N Mavinakayanahalli wrote: > On Mon, Nov 07, 2011 at 11:18:32AM -0600, Scott Wood wrote: >> What use does userspace have for this? If you want to return the >> currently executing CPU (which unless you're pinned could change as soon >> as the value is read...), why n

Re: [PATCH] powerpc/p1023: set IRQ[4:6, 11] to high level sensitive for PCIe

2011-11-08 Thread Scott Wood
On 11/07/2011 11:51 PM, Zang Roy-R61911 wrote: > > >> -Original Message- >> From: Wood Scott-B07421 >> Sent: Tuesday, November 08, 2011 2:44 AM >> To: Zang Roy-R61911 >> Cc: linuxppc-dev@lists.ozlabs.org >> Subject: Re: [PATCH] powerpc/p1023: set IRQ[4:6, 11] to high level sensitive >> f

Re: [PATCH v2 1/5] [ppc] Process dynamic relocations for kernel

2011-11-08 Thread Josh Poimboeuf
On Tue, 2011-11-08 at 12:41 +0530, Suzuki Poulose wrote: > What I was suggesting is, instead of flushing the cache in relocate(), lets > do it > like: > > for e.g, on 440x, (in head_44x.S :) > > #ifdef CONFIG_RELOCATABLE > ... > bl relocate > > #Flush the d-cache and invalidat

[PATCH] powerpc: signal32: fix sigset_t conversion when copying to user

2011-11-08 Thread Will Deacon
On PPC64, put_sigset_t converts a sigset_t to a compat_sigset_t before copying it to userspace. There is a typo in the case that we have 4 words to copy, meaning that we corrupt the compat_sigset_t. It appears that _NSIG_WORDS can't be greater than 2 at the moment so this code is probably always o

Re: [PATCH 7/7] gianfar: add support for wake-on-packet

2011-11-08 Thread Kumar Gala
On Nov 8, 2011, at 5:20 AM, Li Yang-R58472 wrote: > > >> -Original Message- >> From: linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org >> [mailto:linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org] On >> Behalf Of Scott Wood >> Sent: Saturday, November 05, 2011 5:12 AM >>

RE: [PATCH 7/7] gianfar: add support for wake-on-packet

2011-11-08 Thread Li Yang-R58472
>-Original Message- >From: linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org >[mailto:linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org] On >Behalf Of Scott Wood >Sent: Saturday, November 05, 2011 5:12 AM >To: Zhao Chenhui-B35336 >Cc: net...@vger.kernel.org; linuxppc-dev@l

RE: [PATCH 6/7] fsl_pmc: Add API to enable device as wakeup event source

2011-11-08 Thread Li Yang-R58472
>-Original Message- >From: linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org >[mailto:linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org] On >Behalf Of Scott Wood >Sent: Saturday, November 05, 2011 5:14 AM >To: Zhao Chenhui-B35336 >Cc: net...@vger.kernel.org; linuxppc-dev@l

RE: [PATCH 7/7] gianfar: add support for wake-on-packet

2011-11-08 Thread Li Yang-R58472
>-Original Message- >From: linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org >[mailto:linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org] On >Behalf Of Scott Wood >Sent: Saturday, November 05, 2011 5:14 AM >To: Zhao Chenhui-B35336 >Cc: net...@vger.kernel.org; linuxppc-dev@l

Re: [PATCH RFC 0/3] Support multiple VirtioConsoles.

2011-11-08 Thread Amit Shah
On (Wed) 02 Nov 2011 [15:19:06], Miche Baker-Harvey wrote: > This patchset applies to linux-next/next-2002. Did you forget to send out the patches? I don't see anything on any of the lists nor my inbox. Amit ___ Linuxppc-dev mailing

RE: [PATCH 5/7] fsl_pmc: update device bindings

2011-11-08 Thread Li Yang-R58472
>-Original Message- >From: linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org >[mailto:linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org] On >Behalf Of Scott Wood >Sent: Saturday, November 05, 2011 4:05 AM >To: Zhao Chenhui-B35336 >Cc: linuxppc-dev@lists.ozlabs.org >Subject

RE: [PATCH 3/7] powerpc/85xx: add sleep and deep sleep support

2011-11-08 Thread Li Yang-R58472
>Subject: Re: [PATCH 3/7] powerpc/85xx: add sleep and deep sleep support > >On 11/04/2011 07:33 AM, Zhao Chenhui wrote: >> +/* Cast the ccsrbar to 64-bit parameter so that the assembly >> + * code can be compatible with both 32-bit & 36-bit */ >> +extern void mpc85xx_enter_deep_sleep(u64 ccsrbar, u

RE: [PATCH 3/7] powerpc/85xx: add sleep and deep sleep support

2011-11-08 Thread Li Yang-R58472
>To: Zhao Chenhui-B35336; linuxppc-dev@lists.ozlabs.org >Subject: Re: [PATCH 3/7] powerpc/85xx: add sleep and deep sleep support > >Hi Zhao, > >From: Li Yang > >Some Freescale chips like MPC8536 and P1022 has deep sleep PM mode in >addtion to the sleep PM mode. > >In sleep PM mode, the clocks of e

RE: [PATCH 2/7] powerpc/85xx: add HOTPLUG_CPU support

2011-11-08 Thread Li Yang-R58472
>Subject: Re: [PATCH 2/7] powerpc/85xx: add HOTPLUG_CPU support > >On 11/04/2011 07:31 AM, Zhao Chenhui wrote: >> From: Li Yang >> >> Add support to disable and re-enable individual cores at runtime >> on MPC85xx/QorIQ SMP machines. Currently support e500 core. >> >> MPC85xx machines use ePAPR spi

RE: [PATCH 1/7] powerpc/85xx: re-enable timebase sync disabled by KEXEC patch

2011-11-08 Thread Li Yang-R58472
>-Original Message- >From: linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org >[mailto:linuxppc-dev-bounces+leoli=freescale@lists.ozlabs.org] On >Behalf Of Scott Wood >Sent: Saturday, November 05, 2011 1:34 AM >To: Zhao Chenhui-B35336 >Cc: linuxppc-dev@lists.ozlabs.org >Subject