[PATCH] powerpc: Fix program check handling when lockdep is enabled

2012-02-20 Thread Michael Ellerman
In commit 54321242afe ("Disable interrupts early in Program Check"), we switched from enabling to disabling interrupts in program_check_common. Whereas ENABLE_INTS leaves r3 untouched, if lockdep is enabled DISABLE_INTS calls into lockdep code and will clobber r3. That means we pass a bogus struct

[PATCH v5 4/4] KVM: PPC: epapr: Update other hypercall invoking

2012-02-20 Thread Liu Yu
Discard the old way that invoke hypercall, instead, use epapr paravirt. Signed-off-by: Liu Yu --- v5: new patch arch/powerpc/include/asm/epapr_hcalls.h | 22 +- arch/powerpc/include/asm/fsl_hcalls.h | 36 +++--- 2 files changed, 29 insertions(+), 29

[PATCH v5 1/4] KVM: PPC: epapr: Factor out the epapr init

2012-02-20 Thread Liu Yu
from the kvm guest paravirt init code. Signed-off-by: Liu Yu --- v5: 1. fix the if test 2. use patch_instruction() 3. code cleanup 4. rename the files 5. make epapr paravirt user-selectable arch/powerpc/include/asm/epapr_hcalls.h |2 + arch/powerpc/kernel/Makefile|1 + arch/

[PATCH v5 2/4] KVM: PPC: epapr: Add idle hcall support for host

2012-02-20 Thread Liu Yu
And add a new flag definition in kvm_ppc_pvinfo to indicate whether host support EV_IDLE hcall. Signed-off-by: Liu Yu --- v5: 1. remove the ifdef 2. add epapr_hcalls.h into headers install list arch/powerpc/include/asm/Kbuild |1 + arch/powerpc/include/asm/kvm_para.h | 14

[PATCH v5 3/4] KVM: PPC: epapr: install ev_idle hcall for e500 guest

2012-02-20 Thread Liu Yu
If the guest hypervisor node contains "has-idle" property. Signed-off-by: Liu Yu --- v5: no change arch/powerpc/kernel/epapr_hcalls.S | 29 + arch/powerpc/kernel/epapr_paravirt.c | 11 ++- 2 files changed, 39 insertions(+), 1 deletions(-) diff --git a/

[PATCH] powerpc/perf: Move perf core & PMU code into a subdirectory

2012-02-20 Thread Michael Ellerman
The perf code has grown a lot since it started, and is big enough to warrant its own subdirectory. For reference it's ~60% bigger than the oprofile code. It declutters the kernel directory, makes it simpler to grep for "just perf stuff", and allows us to shorten some filenames. While we're at it,

[PATCH] powerpc/85xx: Clean up partition nodes in dts for MPC8572DS

2012-02-20 Thread Jia Hongtao
Signed-off-by: Jin Qing Signed-off-by: Jia Hongtao Signed-off-by: Li Yang --- arch/powerpc/boot/dts/mpc8572ds.dtsi | 50 + 1 files changed, 32 insertions(+), 18 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc8572ds.dtsi b/arch/powerpc/boot/dts/mpc8572ds.d

Re: [PATCH] powerpc/of: add OF_DYNAMIC for chroma

2012-02-20 Thread Michael Neuling
Grant, This seems to be broken in your tree (since 301b605ff6), so you should probably pick up this patch. Mikey In message <5a594805-c5ce-46e7-a15f-df86e6fe6...@pobox.com> you wrote: > > On Feb 19, 2012, at 4:48 PM, Michael Neuling wrote: > > > linux next-20120217 compiling ppc64e_defconfig

Re: [PATCH 1/2] powerpc/85xx: fix problem that prevents PHYS_64BIT from configurable

2012-02-20 Thread Scott Wood
On 02/17/2012 08:19 PM, Benjamin Herrenschmidt wrote: > On Fri, 2012-02-17 at 18:56 -0600, Scott Wood wrote: >> Yes, or maybe make it "default y", and/or require an "I know what I'm >> doing" option to be set for it to be unset if a board otherwise wants it. >> >> The ability to turn it off is pote

Re: [PATCH 24/30] KVM: PPC: booke: call resched after every exit

2012-02-20 Thread Scott Wood
On 02/20/2012 07:17 AM, Alexander Graf wrote: > > On 18.02.2012, at 00:00, Scott Wood wrote: > >> It would be simpler (both here and in the idle hcall) if we could just >> drop support for CONFIG_PREEMPT=n. :-P > > When running with CONFIG_PREEMPT=n we don't have to worry about interrupts > bei

Re: [PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-20 Thread Alexander Graf
On 20.02.2012, at 16:39, Scott Wood wrote: > On Mon, Feb 20, 2012 at 12:49:46PM +0100, Alexander Graf wrote: >> >> On 17.02.2012, at 22:55, Scott Wood wrote: >> >>> On 02/17/2012 11:13 AM, Alexander Graf wrote: case BOOKE_IRQPRIO_EXTERNAL: +#ifdef CONFIG_KVM_E500MC + case BOO

Re: [PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-20 Thread Scott Wood
On Mon, Feb 20, 2012 at 12:49:46PM +0100, Alexander Graf wrote: > > On 17.02.2012, at 22:55, Scott Wood wrote: > > > On 02/17/2012 11:13 AM, Alexander Graf wrote: > >>case BOOKE_IRQPRIO_EXTERNAL: > >> +#ifdef CONFIG_KVM_E500MC > >> + case BOOKE_IRQPRIO_DBELL: > >> +#endif > > > > This isn't

Re: [PATCH] powerpc/of: add OF_DYNAMIC for chroma

2012-02-20 Thread Jimi Xenidis
On Feb 19, 2012, at 4:48 PM, Michael Neuling wrote: > linux next-20120217 compiling ppc64e_defconfig fails with: > > arch/powerpc/platforms/wsp/h8.c: In function 'wsp_h8_getaddr': > arch/powerpc/platforms/wsp/h8.c:116: error: implicit declaration of function > 'of_detach_node' > > The below fi

RE: [linuxppc-release] [PATCH 1/2] powerpc: document the FSL MPIC message register binding

2012-02-20 Thread Yoder Stuart-B08248
> -Original Message- > From: Wood Scott-B07421 > Sent: Friday, February 17, 2012 6:48 PM > To: Yoder Stuart-B08248 > Cc: Jia Hongtao-B38951; linuxppc-dev@lists.ozlabs.org; > meador_i...@mentor.com; Li Yang-R58472 > Subject: Re: [linuxppc-release] [PATCH 1/2] powerpc: document the FSL MPI

Re: warnings from drivers/tty/ehv_bytechan.c

2012-02-20 Thread Tabi Timur-B04825
Stephen Rothwell wrote: > console_initcall() is not defined for modules. Hmmm... the patch you posted is a good short-term fix, but I wonder if makes sense for the driver to support modules at all. I have this in the driver: #include ... module_init(ehv_bc_init); module_exit(ehv_bc_exit); al

Re: [PATCH 24/30] KVM: PPC: booke: call resched after every exit

2012-02-20 Thread Alexander Graf
On 18.02.2012, at 00:00, Scott Wood wrote: > On 02/17/2012 11:13 AM, Alexander Graf wrote: >> Instead of checking whether we should reschedule only when we exited >> due to an interrupt, let's always check before entering the guest back >> again. This gets the target more in line with the other a

Re: [UPDATED] [RFC PATCH v7 03/10] fadump: Register for firmware assisted dump.

2012-02-20 Thread Mahesh J Salgaonkar
On 2012-02-20 11:02:51 Mon, Paul Mackerras wrote: > On Thu, Feb 16, 2012 at 04:44:30PM +0530, Mahesh J Salgaonkar wrote: > > If I have read the code correctly, we are going to get this printk on > non-pSeries machines or on older pSeries machines, even if the user > has not put the fadump=on optio

Re: [PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-20 Thread Alexander Graf
On 17.02.2012, at 22:55, Scott Wood wrote: > On 02/17/2012 11:13 AM, Alexander Graf wrote: >> When one vcpu wants to kick another, it can issue a special IPI instruction >> called msgsnd. This patch emulates this instruction, its clearing counterpart >> and the infrastructure required to actually

Re: [PATCH 13/30] KVM: PPC: booke: category E.HV (GS-mode) support

2012-02-20 Thread Alexander Graf
On 17.02.2012, at 22:12, Scott Wood wrote: > On 02/17/2012 11:13 AM, Alexander Graf wrote: >> From: Scott Wood >> >> Chips such as e500mc that implement category E.HV in Power ISA 2.06 >> provide hardware virtualization features, including a new MSR mode for >> guest state. The guest OS can pe

Re: [PATCH v1 0/4][makedumpfile] vmalloc translation support for PPC32

2012-02-20 Thread Atsushi Kumagai
Hi, Benjamin Hi, Suzuki On Fri, 17 Feb 2012 19:39:29 +1100 Benjamin Herrenschmidt wrote: > On Fri, 2012-02-17 at 11:25 +0530, Suzuki K. Poulose wrote: > > > Could you tell me what kind of data is stored in vmalloc region in > > PPC ? > > > I want to estimate importance of your patches for makedu

Re: [PATCH v1 0/4][makedumpfile] vmalloc translation support for PPC32

2012-02-20 Thread Suzuki K. Poulose
On 02/20/2012 03:26 PM, Atsushi Kumagai wrote: Hi, Benjamin Hi, Suzuki On Fri, 17 Feb 2012 19:39:29 +1100 Benjamin Herrenschmidt wrote: On Fri, 2012-02-17 at 11:25 +0530, Suzuki K. Poulose wrote: Could you tell me what kind of data is stored in vmalloc region in PPC ? I want to estimate im