[git pull] Please pull powerpc.git merge branch

2012-01-12 Thread Benjamin Herrenschmidt
Hi Linus ! Please pull this couple of important bug fixes (a commit that went in breaks booting on some machines, this fixes it properly). Thanks ! Cheers, Ben. The following changes since commit 7b3480f8b701170c046e1ed362946f5f0d005e13: Merge tag 'for-linus-3.3' of git://git.infradead.org/m

[PATCH v3] KVM: Move gfn_to_memslot() to kvm_host.h

2012-01-12 Thread Paul Mackerras
This moves __gfn_to_memslot() and search_memslots() from kvm_main.c to kvm_host.h to reduce the code duplication caused by the need for non-modular code in arch/powerpc/kvm/book3s_hv_rm_mmu.c to call gfn_to_memslot() in real mode. Rather than putting gfn_to_memslot() itself in a header, which woul

[PATCH] powerpc/mm: Fix parse_arg build error

2012-01-12 Thread Matthew McClintock
This fixes this build issue: arch/powerpc/mm/hugetlbpage.c: In function 'reserve_hugetlb_gpages': arch/powerpc/mm/hugetlbpage.c:312:2: error: implicit declaration of function 'parse_args' make[1]: *** [arch/powerpc/mm/hugetlbpage.o] Error 1 Signed-off-by: Matthew McClintock --- This is for benh

Re: [RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-12 Thread Grant Likely
On Thu, Jan 12, 2012 at 06:31:28PM -0600, Rob Herring wrote: > Adding lakml... > > On 01/11/2012 03:27 PM, Grant Likely wrote: > > On Wed, Jan 11, 2012 at 2:15 PM, Rob Herring wrote: > >> Grant, > >> > >> On 01/11/2012 02:22 PM, Grant Likely wrote: > >>> This patch removes the simplistic implemen

Re: [RFC 12/14] irq_domain: Add support for base irq and hwirq in legacy mappings

2012-01-12 Thread Grant Likely
On Thu, Jan 12, 2012 at 5:37 PM, Rob Herring wrote: > On 01/11/2012 02:22 PM, Grant Likely wrote: >> Add support for a legacy mapping where irq = (hwirq - first_hwirq + >> first_irq) >> so that a controller driver can allocate a fixed range of irq_descs and use >> a simple calculation to translat

Re: [RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-12 Thread Rob Herring
On 01/12/2012 06:47 PM, Grant Likely wrote: > On Thu, Jan 12, 2012 at 5:31 PM, Rob Herring wrote: >> Adding lakml... >> >> On 01/11/2012 03:27 PM, Grant Likely wrote: >>> On Wed, Jan 11, 2012 at 2:15 PM, Rob Herring wrote: Grant, On 01/11/2012 02:22 PM, Grant Likely wrote: > Th

Re: [RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-12 Thread Grant Likely
On Thu, Jan 12, 2012 at 5:31 PM, Rob Herring wrote: > Adding lakml... > > On 01/11/2012 03:27 PM, Grant Likely wrote: >> On Wed, Jan 11, 2012 at 2:15 PM, Rob Herring wrote: >>> Grant, >>> >>> On 01/11/2012 02:22 PM, Grant Likely wrote: This patch removes the simplistic implementation of irq_

Re: [RFC 12/14] irq_domain: Add support for base irq and hwirq in legacy mappings

2012-01-12 Thread Rob Herring
On 01/11/2012 02:22 PM, Grant Likely wrote: > Add support for a legacy mapping where irq = (hwirq - first_hwirq + first_irq) > so that a controller driver can allocate a fixed range of irq_descs and use > a simple calculation to translate back and forth between linux and hw irq > numbers. This is

Re: [RFC 13/14] irq_domain: Remove 'new' irq_domain in favour of the ppc one

2012-01-12 Thread Rob Herring
Adding lakml... On 01/11/2012 03:27 PM, Grant Likely wrote: > On Wed, Jan 11, 2012 at 2:15 PM, Rob Herring wrote: >> Grant, >> >> On 01/11/2012 02:22 PM, Grant Likely wrote: >>> This patch removes the simplistic implementation of irq_domains and enables >>> the powerpc infrastructure for all irq_

Re: [RFC PATCH 14/16] KVM: PPC: booke: category E.HV (GS-mode) support

2012-01-12 Thread Scott Wood
On Thu, Jan 12, 2012 at 05:44:26PM +1100, Benjamin Herrenschmidt wrote: > On Tue, 2012-01-10 at 04:11 +0100, Alexander Graf wrote: > > This is what book3s does: > > > > case EMULATE_FAIL: > > printk(KERN_CRIT "%s: emulation at %lx failed > > (%08x)\n", > >

spi device from handle

2012-01-12 Thread Michael Remski
kernel 2.6.33 relevant section of dts has: spi@7000 { fpga0: fpga@0 { #address-cells = <1>; #size-cells = <0>; compatible = "fsl, espi-fpga"; reg = <0>; linux,modalias = "spidev"; spi-max-frequ

Re: [PATCH] KVM: Move gfn_to_memslot() to kvm_host.h

2012-01-12 Thread Avi Kivity
On 01/12/2012 12:41 PM, Paul Mackerras wrote: > This moves __gfn_to_memslot() and search_memslots() from kvm_main.c to > kvm_host.h to reduce the code duplication caused by the need for > non-modular code in arch/powerpc/kvm/book3s_hv_rm_mmu.c to call > gfn_to_memslot() in real mode. > > Rather tha

Re: [PATCH] KVM: Move gfn_to_memslot() to kvm_host.h

2012-01-12 Thread Alexander Graf
On 01/12/2012 11:41 AM, Paul Mackerras wrote: This moves __gfn_to_memslot() and search_memslots() from kvm_main.c to kvm_host.h to reduce the code duplication caused by the need for non-modular code in arch/powerpc/kvm/book3s_hv_rm_mmu.c to call gfn_to_memslot() in real mode. Rather than putting

Re: cpuidle: Default y for pseries

2012-01-12 Thread Deepthi Dharwar
On 01/12/2012 04:36 AM, Benjamin Herrenschmidt wrote: > On Wed, 2012-01-11 at 20:37 -0200, Thadeu Lima de Souza Cascardo wrote: >> On Tue, Jan 10, 2012 at 03:05:35PM -, Benjamin Herrenschmidt wrote: >>> We just replaced the pseries platform idle loops with a cpuidle backend, >>> however that

[PATCH] KVM: Move gfn_to_memslot() to kvm_host.h

2012-01-12 Thread Paul Mackerras
This moves __gfn_to_memslot() and search_memslots() from kvm_main.c to kvm_host.h to reduce the code duplication caused by the need for non-modular code in arch/powerpc/kvm/book3s_hv_rm_mmu.c to call gfn_to_memslot() in real mode. Rather than putting gfn_to_memslot() itself in a header, which woul

[PATCH 12/15] arch/powerpc/sysdev/fsl_pci.c: add missing iounmap

2012-01-12 Thread Julia Lawall
From: Julia Lawall Add missing iounmap in error handling code, in a case where the function already preforms iounmap on some other execution path. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression e; statement S,S1;

[PATCH] powerpc/dts: update dts for p1020rdb

2012-01-12 Thread Zhicheng Fan
nand: Sync base address with U-boot sdhc: Add suppot auto cmd12 Signed-off-by: Zhicheng Fan --- arch/powerpc/boot/dts/fsl/p1020si-post.dtsi |3 +++ arch/powerpc/boot/dts/p1020rdb.dts |2 +- arch/powerpc/boot/dts/p1020rdb_36b.dts |2 +- 3 files changed, 5 insertions(+),

Re: [SDK v1.2][PATCH] powerpc/dts: update dts for p1020rdb

2012-01-12 Thread fanzc
hi all please ignore this email On Thu, 2012-01-12 at 18:00 +0800, Zhicheng Fan wrote: > nand: Sync base address with U-boot > sdhc: Add suppot auto cmd12 > > Signed-off-by: Zhicheng Fan > --- > arch/powerpc/boot/dts/fsl/p1020si-post.dtsi |3 +++ > arch/powerpc/boot/dts/p1020rdb.dts

[SDK v1.2][PATCH] powerpc/dts: update dts for p1020rdb

2012-01-12 Thread Zhicheng Fan
nand: Sync base address with U-boot sdhc: Add suppot auto cmd12 Signed-off-by: Zhicheng Fan --- arch/powerpc/boot/dts/fsl/p1020si-post.dtsi |3 +++ arch/powerpc/boot/dts/p1020rdb.dts |2 +- arch/powerpc/boot/dts/p1020rdb_36b.dts |2 +- 3 files changed, 5 insertions(+),

Re: Problem in getting shared memory access on P1022RDK

2012-01-12 Thread tiejun.chen
Arshad, Farrukh wrote: > Adding more it, > > I have removed the shared memory kernel driver dependency just to narrow down > the problem area and I have written a small piece of code in user space. A > writer & a reader application which access the shared memory and I got the > same behavior a