[PATCH 1/2] powerpc: Remove empty giveup_altivec function on book3e CPUs

2012-04-16 Thread Anton Blanchard
Use an empty inline instead of an empty function to implement giveup_altivec on book3e CPUs, similar to flush_altivec_to_thread. Signed-off-by: Anton Blanchard an...@samba.org --- Index: linux-build/arch/powerpc/include/asm/switch_to.h

[PATCH 2/2] powerpc: Optimise enable_kernel_altivec

2012-04-16 Thread Anton Blanchard
Add two optimisations to enable_kernel_altivec: - enable_kernel_altivec has already determined if we need to save the previous task's state but we call giveup_altivec in both cases, requiring an extra branch in giveup_altivec. Create giveup_altivec_notask which only turns on the VMX bit in the

Re: [PATCH] gpiolib/arches: Centralise bolierplate asm/gpio.h

2012-04-16 Thread Linus Walleij
On Sun, Apr 15, 2012 at 11:52 AM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: Rather than requiring architectures that use gpiolib but don't have any need to define anything custom to copy an asm/gpio.h provide a Kconfig symbol which architectures must select in order to include

[PATCH] [44x][KEXEC] Fix/Initialize PID to kernel PID before the TLB search

2012-04-16 Thread Suzuki K. Poulose
Initialize the PID register with kernel pid (0) before we start setting the TLB mapping for KEXEC. Also set the MMUCR[TID] to kernel PID. This was spotted while testing the kexec on ISS for 47x. ISS doesn't return a successful tlbsx for a kernel address with PID set to a user PID. Though the

Re: [PATCH] gpiolib/arches: Centralise bolierplate asm/gpio.h

2012-04-16 Thread Mark Brown
On Mon, Apr 16, 2012 at 09:21:58AM +0200, Linus Walleij wrote: This looks good but I think we need to page the alpha, ia64, m68k, microblaze, openrisc etc subarch maintainers on this patch so they have their say. That's why I CCed linux-arch, to get all the architecture maintainers included.

Re: [PATCH] gpiolib/arches: Centralise bolierplate asm/gpio.h

2012-04-16 Thread Linus Walleij
On Mon, Apr 16, 2012 at 10:15 AM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: On Mon, Apr 16, 2012 at 09:21:58AM +0200, Linus Walleij wrote: This looks good but I think we need to page the alpha, ia64, m68k, microblaze, openrisc etc subarch maintainers on this patch so they have

[PATCH 0/2] Kdump support for 47x

2012-04-16 Thread Suzuki K. Poulose
The following series implements Kexec/Kdump support for PPC_47x based platforms. Doesn't support SMP yet. I have tested these patches on the following simulators: 1) simics 2) IBM ISS for ppc476. Changes since V1: * Initialize the SPRN_PID to kernel pid (0) before the TLB

[PATCH 1/2] [47x] Kernel support for KEXEC

2012-04-16 Thread Suzuki K. Poulose
This patch adds support for creating 1:1 mapping for the PPC_47x during a KEXEC. The implementation is similar to that of the PPC440x which is described here : http://patchwork.ozlabs.org/patch/104323/ PPC_47x MMU : The 47x uses Unified TLB 1024 entries, with 4-way associative mapping

[PATCH 2/2] [47x] Enable CRASH_DUMP

2012-04-16 Thread Suzuki K. Poulose
Now that we have KEXEC and relocatable kernel working on 47x (!SMP) enable CRASH_DUMP. Signed-off-by: Suzuki K. Poulose suz...@in.ibm.com --- arch/powerpc/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index

Re: [PATCH] powerpc: fix system.h fallout in sysdev/scom.c [chroma_defconfig]

2012-04-16 Thread David Howells
Paul Gortmaker paul.gortma...@windriver.com wrote: The following shows up in chroma_defconfig: CC arch/powerpc/sysdev/scom.o arch/powerpc/sysdev/scom.c: In function 'scom_debug_init': arch/powerpc/sysdev/scom.c:182:36: error: 'powerpc_debugfs_root' undeclared (first use in this

Re: [PATCH 13/17] KVM: PPC: Allow book3s_hv guests to use SMT processor modes

2012-04-16 Thread Alexander Graf
On 29.06.2011, at 12:23, Paul Mackerras wrote: This lifts the restriction that book3s_hv guests can only run one hardware thread per core, and allows them to use up to 4 threads per core on POWER7. The host still has to run single-threaded. This capability is advertised to qemu through a

Re: [ORLinux] [PATCH] gpiolib/arches: Centralise bolierplate asm/gpio.h

2012-04-16 Thread Jonas Bonn
Acked-by: Jonas Bonn jo...@southpole.se (for OpenRISC) On Mon, 2012-04-16 at 09:21 +0200, Linus Walleij wrote: On Sun, Apr 15, 2012 at 11:52 AM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: Rather than requiring architectures that use gpiolib but don't have any need to define

Re: [PATCH 13/17] KVM: PPC: Allow book3s_hv guests to use SMT processor modes

2012-04-16 Thread Paul Mackerras
On Mon, Apr 16, 2012 at 11:45:44AM +0200, Alexander Graf wrote: While trying to trace down why some BookE systems were only able to do as many guest vcpus as there were host cpus available, we stumbled over this one. Is there any limitation on book3s_hv that would limit the available vcpus to

Re: [PATCH 13/17] KVM: PPC: Allow book3s_hv guests to use SMT processor modes

2012-04-16 Thread Alexander Graf
On 16.04.2012, at 14:13, Paul Mackerras wrote: On Mon, Apr 16, 2012 at 11:45:44AM +0200, Alexander Graf wrote: While trying to trace down why some BookE systems were only able to do as many guest vcpus as there were host cpus available, we stumbled over this one. Is there any limitation on

Re: [PATCH v2] KVM: PPC: Use clockevent multiplier and shifter for decrementer

2012-04-16 Thread Alexander Graf
On 09.04.2012, at 06:33, Bharat Bhushan wrote: Time for which the hrtimer is started for decrementer emulation is calculated using tb_ticks_per_usec. While hrtimer uses the clockevent for DEC reprogramming (if needed) and which calculate timebase ticks using the multiplier and shifter

Re: PPC / USB: kernel hangs in warm boot on 8513 in fsl-ehci

2012-04-16 Thread Greg KH
On Sun, Apr 15, 2012 at 10:45:50PM -0600, Anthony Foiani wrote: I could try the latest kernels, but due to our vendor not upstreaming their patches, there could be some pain in that transition. I would push back on that vendor, as this is their support issue, not ours :) Seriously, that's the

Re: PPC / USB: kernel hangs in warm boot on 8513 in fsl-ehci

2012-04-16 Thread Scott Wood
On 04/15/2012 11:45 PM, Anthony Foiani wrote: But I'm still seeing the hang. (And I realize, now that I'm not head down on the project, that the snooping fixes are probably irrelevant for a single-core system like mine.) Snooping is still relevant on single-core systems for DMA. -Scott

Re: fsl_pmc: update device bindings

2012-04-16 Thread Scott Wood
On Thu, Mar 15, 2012 at 11:31:02PM -, chenhui zhao wrote: diff --git a/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt b/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt index 07256b7..d296e88 100644 --- a/Documentation/devicetree/bindings/powerpc/fsl/pmc.txt +++

Re: [PATCH v4 1/4] powerpc/85xx: add HOTPLUG_CPU support

2012-04-16 Thread Scott Wood
On 03/16/2012 04:22 AM, Zhao Chenhui wrote: diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 4eecaaa..3d4c497 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -219,7 +219,8 @@ config ARCH_HIBERNATION_POSSIBLE config ARCH_SUSPEND_POSSIBLE def_bool y

[PATCH 1/2] powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller

2012-04-16 Thread Grant Likely
The mpc8xx driver uses a reference to NR_IRQS that is buggy. It uses NR_IRQs for the array size of the ppc_cached_irq_mask bitmap, but NR_IRQs could be smaller than the number of hardware irqs that ppc_cached_irq_mask tracks. Also, while fixing that problem, it became apparent that the interrupt

[PATCH 2/2] irqdomain/powerpc: Fix broken NR_IRQ references

2012-04-16 Thread Grant Likely
The switch from using irq_map to irq_alloc_desc*() for managing irq number allocations introduced new bugs in some of the powerpc interrupt code. Several functions rely on the value of NR_IRQS to determine the maximum irq number that could get allocated. However, with sparse_irq and using

[EDAC PATCH v13 7/7] edac: Change internal representation to work with layers

2012-04-16 Thread Mauro Carvalho Chehab
Change the EDAC internal representation to work with non-csrow based memory controllers. There are lots of those memory controllers nowadays, and more are coming. So, the EDAC internal representation needs to be changed, in order to work with those memory controllers, while preserving backward

[EDAC PATCH v13 4/7] edac: move nr_pages to dimm struct

2012-04-16 Thread Mauro Carvalho Chehab
The number of pages is a dimm property. Move it to the dimm struct. After this change, it is possible to add sysfs nodes for the DIMM's that will properly represent the DIMM stick properties, including its size. A TODO fix here is to properly represent dual-rank/quad-rank DIMMs when the memory

Re: [PATCH 1/2] powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller

2012-04-16 Thread Grant Likely
Ben, I can take these two patches via my irqdomain tree if you prefer. g. On Mon, Apr 16, 2012 at 2:13 PM, Grant Likely grant.lik...@secretlab.ca wrote: The mpc8xx driver uses a reference to NR_IRQS that is buggy.  It uses NR_IRQs for the array size of the ppc_cached_irq_mask bitmap, but

[EDAC_ABI PATCH v13 20/26] pasemi_edac: convert driver to use the new edac ABI

2012-04-16 Thread Mauro Carvalho Chehab
The legacy edac ABI is going to be removed. Port the driver to use and benefit from the new API functionality. Cc: Olof Johansson o...@lixom.net Cc: Egor Martovetsky e...@pasemi.com Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Mauro Carvalho Chehab mche...@redhat.com ---

[EDAC ABI v13 24/25] edac: change the mem allocation scheme to make Documentation/kobject.txt happy

2012-04-16 Thread Mauro Carvalho Chehab
Kernel kobjects have rigid rules: each container object should be dynamically allocated, and can't be allocated into a single kmalloc. EDAC never obeyed this rule: it has a single malloc function that allocates all needed data into a single kzalloc. As this is not accepted anymore, change the

[EDAC ABI v13 07/25] edac: Rename the parent dev to pdev

2012-04-16 Thread Mauro Carvalho Chehab
As EDAC doesn't use struct device itself, it created a parent dev pointer called as pdev. Now that we'll be converting it to use struct device, instead of struct devsys, this needs to be fixed. No functional changes. Reviewed-by: Aristeu Rozanski aroza...@redhat.com Cc: Doug Thompson

Re: [PATCH 1/2] powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller

2012-04-16 Thread Benjamin Herrenschmidt
On Mon, 2012-04-16 at 14:13 -0600, Grant Likely wrote: The mpc8xx driver uses a reference to NR_IRQS that is buggy. It uses NR_IRQs for the array size of the ppc_cached_irq_mask bitmap, but NR_IRQs could be smaller than the number of hardware irqs that ppc_cached_irq_mask tracks. Also,

Re: [PATCH 1/2] powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller

2012-04-16 Thread Benjamin Herrenschmidt
On Mon, 2012-04-16 at 14:13 -0600, Grant Likely wrote: Ben, I can take these two patches via my irqdomain tree if you prefer. Let me give them a test run first. Cheers, Ben. g. On Mon, Apr 16, 2012 at 2:13 PM, Grant Likely grant.lik...@secretlab.ca wrote: The mpc8xx driver uses a

Re: [PATCH 1/2] powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller

2012-04-16 Thread Grant Likely
On Mon, Apr 16, 2012 at 5:03 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Mon, 2012-04-16 at 14:13 -0600, Grant Likely wrote: Ben, I can take these two patches via my irqdomain tree if you prefer. Let me give them a test run first. Yes of course. I won't merge before they've

Re: [PATCH 1/2] powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller

2012-04-16 Thread Grant Likely
On Mon, Apr 16, 2012 at 5:03 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Mon, 2012-04-16 at 14:13 -0600, Grant Likely wrote: The mpc8xx driver uses a reference to NR_IRQS that is buggy.  It uses NR_IRQs for the array size of the ppc_cached_irq_mask bitmap, but NR_IRQs could

Re: [PATCH 1/2] powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller

2012-04-16 Thread Joakim Tjernlund
On Mon, 2012-04-16 at 14:13 -0600, Grant Likely wrote: Ben, I can take these two patches via my irqdomain tree if you prefer. Let me give them a test run first. Hi Ben If you are going to test 8xx, could you revert e0908085fc2391c85b85fb814ae1df377c8e0dcb, powerpc/8xx: Fix regression 

Re: [PATCH 1/2] powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller

2012-04-16 Thread Benjamin Herrenschmidt
On Tue, 2012-04-17 at 02:03 +0200, Joakim Tjernlund wrote: If you are going to test 8xx, could you revert e0908085fc2391c85b85fb814ae1df377c8e0dcb, powerpc/8xx: Fix regression introduced by cache coherency rewrite ? It should not be needed after I fixed up the 8xx TLB code and added a

Re: [PATCH v5 00/21] EEH reorganization

2012-04-16 Thread Gavin Shan
I just hit this on mainline from today (3.4.0-rc2-00065-gf549e08). Haven't had a chance to narrow it down yet. Thanks for the information. I'll try to reproduce the issue on Firebird-L today. By the way, it seems that mstmread is some user-level application accessing the config space while the

Re: [PATCH v5 00/21] EEH reorganization

2012-04-16 Thread Anton Blanchard
Hi, Thanks for the information. I'll try to reproduce the issue on Firebird-L today. By the way, it seems that mstmread is some user-level application accessing the config space while the problem happened? The EEH error is caused by the Melanox firmware tools. It seems the crash was caused

[PATCH 1/2] powerpc/mpc85xx: p1022ds support the MTD for NOR and NAND flash

2012-04-16 Thread Chang-Ming.Huang
From: Jerry Huang chang-ming.hu...@freescale.com The compatilbe 'simple-bus' is removed from the latest DTS for NAND and NOR flash partition, so we must add the new compatilbe support for p1022ds, otherwise, the kernel can't parse the partition of NOR and NAND flash. Signed-off-by: Jerry Huang

[PATCH 2/2] powerpc/p1022ds/DTS: Add RTC support

2012-04-16 Thread Chang-Ming.Huang
From: Jerry Huang chang-ming.hu...@freescale.com Add the RTC support for p1022ds Signed-off-by: Jerry Huang chang-ming.hu...@freescale.com --- arch/powerpc/boot/dts/p1022ds.dtsi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dts/p1022ds.dtsi

Re: [PATCH v5 00/21] EEH reorganization

2012-04-16 Thread Benjamin Herrenschmidt
On Tue, 2012-04-17 at 11:37 +1000, Anton Blanchard wrote: No. I replaced that backtrace in eeh_dn_check_failure with a WARN_ON() because the backtrace doesn't give us enough info. I'm submitting a patch for that today. Bottom line is mstmread has been causing an EEH error since at least

[PATCH v3]KVM: PPC: Use clockevent multiplier and shifter for decrementer

2012-04-16 Thread Bharat Bhushan
Time for which the hrtimer is started for decrementer emulation is calculated using tb_ticks_per_usec. While hrtimer uses the clockevent for DEC reprogramming (if needed) and which calculate timebase ticks using the multiplier and shifter mechanism implemented within clockevent layer. It was

Re: [PATCH v5 00/21] EEH reorganization

2012-04-16 Thread Gavin Shan
Ben, thanks a lot for the backtrace to help narrowing down the root cause. Also thanks a lot for how to parse the backtrace and register staff printed by oops ;-) Finally, I successfully reproduced the issue on Firebird-L machine without loading the corresponding device driver for Emulex

Re: [PATCH 1/2] powerpc/8xx: Fix NR_IRQ bugs and refactor 8xx interrupt controller

2012-04-16 Thread Joakim Tjernlund
Benjamin Herrenschmidt b...@kernel.crashing.org wrote on 2012/04/17 03:00:40: On Tue, 2012-04-17 at 02:03 +0200, Joakim Tjernlund wrote: If you are going to test 8xx, could you revert e0908085fc2391c85b85fb814ae1df377c8e0dcb, powerpc/8xx: Fix regression introduced by cache coherency

[PATCH] powerpc/eeh: crash caused by null eeh_dev

2012-04-16 Thread Gavin Shan
The problem was reported by Anton Blanchard. While EEH error happened to the PCI device without the corresponding device driver, kernel crash was seen. Eventually, I successfully reproduced the problem on Firebird-L machine with utility errinjct. Initially, the device driver for Emulex ethernet