[PATCH] powerpc/cell/spufs: Fix status attribute permission

2013-05-05 Thread Benjamin Herrenschmidt
We are registering the attribute with permission 0644 but it doesn't have a store callback, which causes WARN_ON's during boot. Fix the permission. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/cell/spu_base.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH 8/8] powerpc/topology: Fix spurr attribute permission

2013-05-05 Thread Benjamin Herrenschmidt
We are registering the attribute with permission 0600 but it doesn't have a store callback, which causes WARN_ON's during boot. Fix the permission. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/sysfs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/po

[PATCH] powerpc/pci: Support per-aperture memory offset

2013-05-05 Thread Benjamin Herrenschmidt
The PCI core supports an offset per aperture nowadays but our arch code still has a single offset per host bridge representing the difference betwen CPU memory addresses and PCI MMIO addresses. This is a problem as new machines and hypervisor versions are coming out where the 64-bit windows will h

[PATCH] powerpc/cell/iommu: Improve error message for missing node

2013-05-05 Thread Benjamin Herrenschmidt
Some devices don't have a correct node ID and thus can't be attached to an iommu. The message displayed by the iommu code isn't very useful if you don't have a device-tree node as it tries to print the device-tree path but not the struct device name. Improve this by printing the device name as we

[PATCH] irqdomain: Allow quiet failure mode

2013-05-05 Thread Benjamin Herrenschmidt
Some interrupt controllers refuse to map interrupts marked as "protected" by firwmare. Since we try to map everyting in the device-tree on some platforms, we end up with a lot of nasty WARN's in the boot log for what is a normal situation on those machines. This defines a specific return code (-EP

Re: [RFC][KVM][PATCH 1/1] kvm:ppc:booke-64: soft-disable interrupts

2013-05-05 Thread tiejun.chen
On 05/06/2013 11:10 AM, Tiejun Chen wrote: For the external interrupt, the decrementer exception and the doorbell excpetion, we also need to soft-disable interrupts while doing as host interrupt handlers since the DO_KVM hook is always performed to skip EXCEPTION_COMMON then miss this original ch

[RFC][KVM][PATCH 1/1] kvm:ppc:booke-64: soft-disable interrupts

2013-05-05 Thread Tiejun Chen
For the external interrupt, the decrementer exception and the doorbell excpetion, we also need to soft-disable interrupts while doing as host interrupt handlers since the DO_KVM hook is always performed to skip EXCEPTION_COMMON then miss this original chance with the 'ints' (INTS_DISABLE). Signed-

[v1][KVM][PATCH 1/1] kvm:ppc: enable doorbell exception with E500MC

2013-05-05 Thread Tiejun Chen
Actually E500MC also support doorbell exception, and CONFIG_PPC_E500MC can cover BOOK3E/BOOK3E_64 as well. Signed-off-by: Tiejun Chen --- arch/powerpc/kvm/booke.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index 1020

Re: [PATCH -V7 02/10] powerpc/THP: Implement transparent hugepages for ppc64

2013-05-05 Thread David Gibson
On Sun, May 05, 2013 at 12:44:35AM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > On Mon, Apr 29, 2013 at 01:21:43AM +0530, Aneesh Kumar K.V wrote: > >> From: "Aneesh Kumar K.V" [snip] > >> diff --git a/arch/powerpc/include/asm/pgtable-ppc64.h > >> b/arch/powerpc/include/asm/pgtable-p

[PATCH] ALSA: snd-aoa: Add a layout entry for PowerBook6,5

2013-05-05 Thread Michael Ellerman
Either one or a combination of commits 81e5d86 "Register i2c devices from device-tree" and 3a3dd01 "Improve detection of devices from device-tree" broke sound on PowerBook6,5 machines. Fix it by adding an entry to the new driver to match PowerBook6,5 machines. Signed-off-by: Michael Ellerman ---

Re: [PATCH] kvm/ppc/booke64: Hard disable interrupts when entering the guest

2013-05-05 Thread Benjamin Herrenschmidt
On Fri, 2013-05-03 at 18:45 -0500, Scott Wood wrote: > kvmppc_lazy_ee_enable() was causing interrupts to be soft-enabled > (albeit hard-disabled) in kvmppc_restart_interrupt(). This led to > warnings, and possibly breakage if the interrupt state was later saved > and then restored (leading to inte

Re: [PATCH v2] net/eth/ibmveth: Fixup retrieval of MAC address

2013-05-05 Thread David Miller
From: Benjamin Herrenschmidt Date: Sat, 04 May 2013 13:19:01 +1000 > Some ancient pHyp versions used to create a 8 bytes local-mac-address > property in the device-tree instead of a 6 bytes one for veth. > > The Linux driver code to deal with that is an insane hack which also > happens to break

Re: PowerPC, P2020RDB, application debug when the application is in tight loop, Sysrq

2013-05-05 Thread saikrishna gajula
Hi Scott, Thanks for the information. "sysrq_enable_flag" is custom code introduced as part of 'y' hack implementation. I will check with the latest kernels to make use of "sysrq" feature. Regrads, Sai On Thu, May 2, 2013 at 1:24 AM, Scott Wood wrote: > On 04/17/2013 12:04:10 AM,

Re: [PATCH -V7 08/10] powerpc/THP: Enable THP on PPC64

2013-05-05 Thread David Gibson
On Sat, May 04, 2013 at 12:19:03AM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Mon, Apr 29, 2013 at 01:21:49AM +0530, Aneesh Kumar K.V wrote: > >> From: "Aneesh Kumar K.V" > >> > >> We enable only if the we support 16MB page size. > >> > >> Signed-off-by: Aneesh Kumar K.V >