[PATCH -next] powerpc: Fix return value check in hsta_msi_probe()

2014-07-20 Thread weiyj_lk
From: Wei Yongjun In case of error, the function ioremap() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun --- arch/powerpc/sysdev/ppc4xx_hsta_msi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif

[PATCH 00/30] drivers/net: remove unnecessary break after return

2014-07-20 Thread Fabian Frederick
Second patchset after "remove unnecessary break after goto" addressing break redundancy on drivers/net branch (suggested by Joe Perches) Fabian Frederick (30): dlci: remove unnecessary break after return eth_v10: remove unnecessary break after return brcm80211: remove unnecessary break afte

[PATCH 26/30] ucc_geth: remove unnecessary break after return

2014-07-20 Thread Fabian Frederick
Signed-off-by: Fabian Frederick --- drivers/net/ethernet/freescale/ucc_geth.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index 36fc429..8ceaf7a 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +

Re: [PATCH v3 0/3] dmaengine: mpc512x: add device tree binding document and DMA channel lookup

2014-07-20 Thread Alexander Popov
Hello! 2014-06-25 14:52 GMT+04:00 Alexander Popov : > This patch series introduces a device tree binding document for > the MPC512x DMA controller and adds device tree based DMA channel lookup > for it. > > This version contains the improved device tree binding document: > #dma-cells is made a req

[PATCH v2 6/7] memory-hotplug: sh: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on sh to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/sh/mm/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

[PATCH v2 4/7] memory-hotplug: ia64: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on ia64 to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/ia64/mm/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v2 3/7] memory-hotplug: x86_32: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on x86_32 to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/x86/mm/init_32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2 2/7] memory-hotplug: x86_64: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on x86_64 to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/x86/mm/init_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2 0/7] memory-hotplug: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This series of patches fix a problem when adding memory in bad manner. For example: for a x86_64 machine booted with "mem=400M" and with 2GiB memory installed, following commands cause problem: # echo 0x4000 > /sys/devices/system/memory/probe [ 28.613895] init_memory_mapping: [mem 0x4

[PATCH v2 1/7] memory-hotplug: add zone_for_memory() for selecting zone for new memory

2014-07-20 Thread Wang Nan
This patch introduces a zone_for_memory function in arch independent code for arch_add_memory() using. Many arch_add_memory() function simply selects ZONE_HIGHMEM or ZONE_NORMAL and add new memory into it. However, with the existance of ZONE_MOVABLE, the selection method should be carefully consid

[PATCH v2 5/7] memory-hotplug: ppc: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on powerpc to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan Cc: Zhang Yanfei Cc: Dave Hansen --- arch/powerpc/mm/mem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

[PATCH v2 7/7] memory-hotplug: tile: suitable memory should go to ZONE_MOVABLE

2014-07-20 Thread Wang Nan
This patch introduces zone_for_memory() to arch_add_memory() on tile to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. This patch also fix a problem: on tile, new memory should be added into ZONE_HIGHMEM by default, not MAX_NR_ZONES-1, which is ZONE_MOVABLE.

Re: [PATCH 00/30] drivers/net: remove unnecessary break after return

2014-07-20 Thread David Miller
From: Fabian Frederick Date: Sun, 20 Jul 2014 16:16:08 +0200 > Second patchset after "remove unnecessary break after goto" addressing break > redundancy on drivers/net branch > (suggested by Joe Perches) All applied except the i40e patch, which did not apply to net-next at all.

[PATCH 1/3] selftests/powerpc: Count instructions under scheduler pressure

2014-07-20 Thread Michael Ellerman
Have a task eat some cpu while we are counting instructions to create some scheduler pressure. The idea being to try and unearth any bugs we have in counting that only appear when context switching is happening. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/pmu/Makefile

[PATCH 2/3] selftests/powerpc: Count more instructions

2014-07-20 Thread Michael Ellerman
Although we expect some small discrepancies for very large counts, we seem to be able to count up to 64G instructions without too much skew, so do so. Signed-off-by: Michael Ellerman --- tools/testing/selftests/powerpc/pmu/count_instructions.c | 6 ++ 1 file changed, 6 insertions(+) diff --

[PATCH 3/3] selftests/powerpc: Count decimal numbers of instructions

2014-07-20 Thread Michael Ellerman
This just makes it easier to visually compare the expected vs actual values, as well as the raw result from instructions. Before: instructions: result 68719476753 running/enabled 13101961654 cycles: result 38077343785 running/enabled 13101725752 Looped for 68719476736 instructions, overhead

[PATCH v3 4/6] powerpc/powernv: Handle compound PE

2014-07-20 Thread Gavin Shan
The patch introduces 3 PHB callbacks: compound PE state retrieval, force freezing and unfreezing compound PE. The PCI config accessors and PowerNV EEH backend can use them in subsequent patches. We don't export the capability of compound PE to EEH core, which helps avoiding more complexity to EEH

[PATCH v3 2/6] powerpc/powernv: Allow to freeze PE

2014-07-20 Thread Gavin Shan
The patch synchronizes header file with firmware to have new OPAL API opal_pci_eeh_freeze_set(), which is used to freeze the specified PE in order to support "compound" PE. Signed-off-by: Gavin Shan --- v3: separate API to freeze PE --- arch/powerpc/include/asm/opal.h| 9

[PATCH v3 5/6] powerpc/powernv: Handle compound PE for EEH

2014-07-20 Thread Gavin Shan
The patch handles compound PE for EEH backend. If one specific PE in compound group has been frozen, we enforces to freeze all PEs in the group. If we're enable DMA or MMIO for one PE in compound group, DMA or MMIO of all PEs in the group will be enabled. Signed-off-by: Gavin Shan --- arch/power

[PATCH v3 1/6] powerpc/powernv: Enable M64 aperatus for PHB3

2014-07-20 Thread Gavin Shan
From: Guo Chao This patch enables M64 aperatus for PHB3. We already had platform hook (ppc_md.pcibios_window_alignment) to affect the PCI resource assignment done in PCI core so that each PE's M32 resource was built on basis of M32 segment size. Similarly, we're using that for M64 assignment on

[PATCH v3 6/6] powerpc/powernv: Handle compound PE in config accessors

2014-07-20 Thread Gavin Shan
The PCI config accessors check for PE frozen state and clear it if EEH isn't functional. The patch handles compound PE in config accessors if PHB supports it. For consistency, all PEs will be put into frozen state if any one in compound group gets frozen by hardware. Signed-off-by: Gavin Shan ---

[PATCH v3 3/6] powerpc/powernv: Split ioda_eeh_get_state()

2014-07-20 Thread Gavin Shan
Function ioda_eeh_get_state() is used to fetch EEH state for PHB or PE. We're going to support compound PE and the function becomes more complicated with that. The patch splits the function into two functions for PHB and PE cases separately to improve readability. Signed-off-by: Gavin Shan --- a

[PATCH v3 0/6] Support M64 Window

2014-07-20 Thread Gavin Shan
This version is rebased on top of Gavin's patches of EEH support for guest and related fixes which are supposed to be merged in 3.17. Currently, all MMIO resources, including 64-bits MMIO resources are hooked to PHB 32-bits MMIO BAR, which has limited space. If there're PCI devices with large 64-b

Re: [PATCH 00/30] drivers/net: remove unnecessary break after return

2014-07-20 Thread Fabian Frederick
> On 21 July 2014 at 06:31 David Miller wrote: > > > From: Fabian Frederick > Date: Sun, 20 Jul 2014 16:16:08 +0200 > > > Second patchset after "remove unnecessary break after goto" addressing break > > redundancy on drivers/net branch > > (suggested by Joe Perches) > > All applied except the i