[PATCH -V2] powerpc: Build fix for powerpc KVM

2012-10-17 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" Fix build failure for powerpc KVM by adding missing VPN_SHIFT definition and the ';' arch/powerpc/kvm/book3s_32_mmu_host.c: In function 'kvmppc_mmu_map_page': arch/powerpc/kvm/book3s_32_mmu_host.c:176: error: 'VPN_SHIFT' undeclared (first use in this function) arch/powe

[PATCH 2/2] PPC_BOOK3E/KGDB: support kgdb kernel space

2012-10-17 Thread Tiejun Chen
We can support KGDB with current debug exception for BOOK3E, so we should initial specific dbg_kstack to avoid overwriting other thing. Signed-off-by: Tiejun Chen --- arch/powerpc/kernel/exceptions-64e.S |4 arch/powerpc/kernel/paca.c | 10 ++ 2 files changed, 14 ins

[PATCH 1/2] powerpc/kgdb: Fix a single stgep case of lazy IRQ

2012-10-17 Thread Tiejun Chen
When we're in kgdb_singlestep(), we have to work around to get thread_info by copying from the kernel stack before calling kgdb_handle_exception(), then copying it back afterwards. But for PPC64, we have a lazy interrupt implementation. So after copying thread info frome kernle stack, if we need t

Re: [PATCH 2/2] PPC_BOOK3E/KGDB: support kgdb kernel space

2012-10-17 Thread Andreas Schwab
Tiejun Chen writes: > diff --git a/arch/powerpc/kernel/exceptions-64e.S > b/arch/powerpc/kernel/exceptions-64e.S > index 4684e33..ed5862d 100644 > --- a/arch/powerpc/kernel/exceptions-64e.S > +++ b/arch/powerpc/kernel/exceptions-64e.S > @@ -539,11 +539,15 @@ kernel_dbg_exc: > rfdi > >

[PATCH 1/3 v2] iommu/fsl: Store iommu domain information pointer in archdata.

2012-10-17 Thread Varun Sethi
Add a new field in the device (powerpc) archdata structure for storing iommu domain information pointer. This pointer is stored when the device is attached to a particular domain. Signed-off-by: Varun Sethi --- arch/powerpc/include/asm/device.h |4 1 files changed, 4 insertions(+), 0

[PATCH 0/3] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2012-10-17 Thread Varun Sethi
This patchset provides the Freescale PAMU (Peripheral Access Management Unit) driver and the corresponding IOMMU API implementation. PAMU is the IOMMU present on Freescale QorIQ platforms. PAMU can authorize memory access, remap the memory address, and remap the I/O transaction type. This set

[PATCH 2/3 v3] iommu/fsl: Add iommu domain attributes required by fsl PAMU driver.

2012-10-17 Thread Varun Sethi
Added the following domain attributes required by FSL PAMU driver: 1. Subwindows field added to the iommu domain geometry attribute. 2. Added new iommu stash attribute, which allows setting of the LIODN specific stash id parameter through IOMMU API. 3. Added an attribute for enabling/disabling D

ELDK 4.2/kilauea/3.5+ kernel broken

2012-10-17 Thread Robert Berger
Hi, The attached patch from here: http://thread.gmane.org/gmane.linux.ports.ppc.embedded/49637/focus=49903 works as far as I can say from > 3.2 kernels until 3.4.12 and applies happily even on 3.5. Unfortunately the last kernel version which boots on a kilauea with ELDK 4.2 is v3.4.12 (with the a

Re: [RFC PATCH powerpc] Fix a lazy irq related WARING in arch_local_irq_restore()

2012-10-17 Thread Benjamin Herrenschmidt
On Wed, 2012-09-26 at 18:10 +0800, Li Zhong wrote: ../... Sorry got distracted, got back on this patch today: > > We might need to "sanitize" the enable state in the PACA before we > > actually enter NAP or in the return from NAP code, like we do for normal > > idle code... > > Hi Ben, > > A

Re: [PATCH 2/2] PPC_BOOK3E/KGDB: support kgdb kernel space

2012-10-17 Thread tiejun.chen
On 10/17/2012 08:07 PM, Andreas Schwab wrote: Tiejun Chen writes: diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/kernel/exceptions-64e.S index 4684e33..ed5862d 100644 --- a/arch/powerpc/kernel/exceptions-64e.S +++ b/arch/powerpc/kernel/exceptions-64e.S @@ -539,11 +539,15 @@

[PATCH] powerpc/pnv: Avoid bogus output

2012-10-17 Thread Gavin Shan
There're couples of functions defined to print debugging messages during initializing P7IOC. However, we got bogus output from those functions like pe_info(). The problem here is that the message level (the first parameter to printk()) isn't printable and that caused the bogus output. The patch fi

[v2][PATCH 2/2] PPC_BOOK3E/KGDB: support kgdb kernel space

2012-10-17 Thread Tiejun Chen
We can support KGDB with current debug exception for BOOK3E, so we should initial specific dbg_kstack to avoid overwriting other thing. Signed-off-by: Tiejun Chen --- v2: Move the label before the conditional arch/powerpc/kernel/exceptions-64e.S |5 - arch/powerpc/kernel/paca.c

[v2][PATCH 1/2] powerpc/kgdb: Fix a single stgep case of lazy IRQ

2012-10-17 Thread Tiejun Chen
When we're in kgdb_singlestep(), we have to work around to get thread_info by copying from the kernel stack before calling kgdb_handle_exception(), then copying it back afterwards. But for PPC64, we have a lazy interrupt implementation. So after copying thread info frome kernle stack, if we need t

Re: [PATCH] powerpc/pnv: Avoid bogus output

2012-10-17 Thread Gavin Shan
On Thu, Oct 18, 2012 at 10:46:44AM +0800, Gavin Shan wrote: >There're couples of functions defined to print debugging messages >during initializing P7IOC. However, we got bogus output from those >functions like pe_info(). The problem here is that the message >level (the first parameter to printk())