[PATCH 2/2] powerpc/cell: Fix iommu breakage caused by controller_ops change

2015-04-13 Thread Michael Ellerman
The recent patch to convert cell to use pci_controller_ops had a small bug which broke machines using an iommu. The set of phb->controller_ops was added after the check for name != "pci", meaning pcix/pcie PHBs weren't getting their ops set correctly. Fixes: 9c1368fc50e7 ("powerpc/cell: Move cont

[PATCH 1/2] powerpc/eeh: Fix crash in eeh_add_device_early() on Cell

2015-04-13 Thread Michael Ellerman
The recent change to the EEH probing causes a crash on Cell because eeh_ops is NULL. Check if EEH is enabled and if not bail out. Fixes: ff57b454ddb9 ("powerpc/eeh: Do probe on pci_dn") Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/eeh.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH v9 11/11] perf-download: Download the events json file

2015-04-13 Thread Sukadev Bhattiprolu
Add a downloader to automatically download the right files from a download site. This is implemented as a script calling curl, similar to perf archive. The perf driver automatically calls the right binary. The downloader is extensible, but currently only implements an Intel and Powerpc event downl

[PATCH v9 10/11] perf, tools: Add a --no-desc flag to perf list

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Add a --no-desc flag to perf list to not print the event descriptions that were earlier added for JSON events. This may be useful to get a less crowded listing. It's still default to print descriptions as that is the more useful default for most users. Before: % perf list ...

[PATCH v9 08/11] perf, tools: Add a new pmu interface to iterate over all events

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen With calling a callback. To be used in test code added in the next patch. Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu --- Changelog[v9] by Sukadev Bhattiprolu Rebase to 4.0 and fix conflicts in: tools/perf/util/pmu.c too

[PATCH v9 09/11] perf, tools, test: Add test case for alias and JSON parsing

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Add a simple test case to perf test that parses all the available events, including json events. This needs adding an all event iterator to pmu.c Acked-by: Namhyung Kim Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu --- Changelog[v9] by Sukadev Bhattiprolu

[PATCH v9 07/11] perf, tools: Query terminal width and use in perf list

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Automatically adapt the now wider and word wrapped perf list output to wider terminals. This requires querying the terminal before the auto pager takes over, and exporting this information from the pager subsystem. Acked-by: Namhyung Kim Signed-off-by: Andi Kleen Signed-off-by

[PATCH v9 06/11] powerpc/perf: Implement get_cpu_str()

2015-04-13 Thread Sukadev Bhattiprolu
With a file ~/.cache/pmu-events/004d0100-core.json describing Power8 PMU events we would need to run: perf stat \ --events-file ~/.cache/pmu-events/004d0100-core.json \ -e pm_cyc sleep 1 With this get_cpu_str(), on Powerpc, we can skip the --events-file opt

[PATCH v9 05/11] perf, tools: Automatically look for event file name for cpu

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen When no JSON event file is specified automatically look for a suitable file in ~/.cache/pmu-events. The event file format is per architecture, but can be extended for other architectures. Acked-by: Namhyung Kim Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu ---

[PATCH v9 04/11] perf, tools: Add support for reading JSON event files

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Add a parser for Intel style JSON event files. This allows to use an Intel event list directly with perf. The Intel event lists can be quite large and are too big to store in unswappable kernel memory. The parser code knows how to convert the JSON fields to perf fields. The conv

[PATCH v9 03/11] perf, tools, list: Update perf list to output descriptions

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Add support to perf list to print aliases with descriptions. Support word wrapping for descriptions. Fix up the sorting code to put aliases with descriptions last. Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu --- Changelov[v9] by Sukadev Bhattiprolu Re

[PATCH v9 02/11] perf, tools: Add support for text descriptions of events and alias add

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen Change pmu.c to allow descriptions of events and add interfaces to add aliases at runtime from another file. To be used by jevents in a followon patch Acked-by: Namhyung Kim Signed-off-by: Andi Kleen Signed-off-by: Sukadev Bhattiprolu --- Changelog[v9] by Sukadev Bhattiprolu

[PATCH v9 01/11] perf, tools: Add jsmn `jasmine' JSON parser

2015-04-13 Thread Sukadev Bhattiprolu
From: Andi Kleen I need a JSON parser. This adds the simplest JSON parser I could find -- Serge Zaitsev's jsmn `jasmine' -- to the perf library. I merely converted it to (mostly) Linux style and added support for non 0 terminated input. The parser is quite straight forward and does not copy any

[PATCH v9 00/11] Add support for JSON event files.

2015-04-13 Thread Sukadev Bhattiprolu
This is another attempt to resurrect Andi Kleen's patchset so users can specify perf events by their event names rather than raw codes. This is a rebase of Andi Kleen's patchset from Jul 30, 2014[1] to 4.0. (I fixed minor and not so minor conflicts). This patchset includes the perf-download tool

Re: [PATCH v4 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-13 Thread Preeti U Murthy
Hi Shreyas, On 04/14/2015 07:26 AM, Shreyas B. Prabhu wrote: > Fastsleep is one of the idle state which cpuidle subsystem currently > uses on power8 machines. In this state L2 cache is brought down to a > threshold voltage. Therefore when the core is in fastsleep, the > communication between L2 an

Re: [PATCH v2 2/2] leds/powernv: Add driver for PowerNV platform

2015-04-13 Thread Vasant Hegde
On 03/25/2015 10:51 AM, Benjamin Herrenschmidt wrote: > On Fri, 2015-03-20 at 16:34 +0530, Vasant Hegde wrote: >> From: Anshuman Khandual >> >> This patch implements LED driver for PowerNV platform using the existing >> generic LED class framework. It registers classdev structures for all >> indiv

[PATCH v2 3/3] tty/hvc: remove celleb-only beat driver

2015-04-13 Thread Daniel Axtens
The beat hvc driver is only used by celleb. celleb has been dropped [1], so drop the drivers. [1] http://patchwork.ozlabs.org/patch/451730/ CC: Greg Kroah-Hartman CC: Jiri Slaby CC: Valentin Rothberg CC: m...@ellerman.id.au CC: linuxppc-dev@lists.ozlabs.org Signed-off-by: Daniel Axtens --- v

[PATCH v2 2/3] Remove celleb-only SCC PATA drivers

2015-04-13 Thread Daniel Axtens
The SCC PATA interface is only used by celleb. celleb has been dropped [1], so drop the drivers. [1] http://patchwork.ozlabs.org/patch/451730/ CC: Bartlomiej Zolnierkiewicz CC: Tejun Heo CC: "David S. Miller" CC: linux-...@vger.kernel.org CC: Valentin Rothberg CC: m...@ellerman.id.au CC: linu

[PATCH v2 1/3] toshiba: Remove celleb from Kconfig options

2015-04-13 Thread Daniel Axtens
The toshiba drivers had celleb as an optional dependency. celleb has been dropped [1], so clean that out of Kconfig. [1] http://patchwork.ozlabs.org/patch/451730/ CC: net...@vger.kernel.org CC: Valentin Rothberg CC: m...@ellerman.id.au CC: linuxppc-dev@lists.ozlabs.org Signed-off-by: Daniel Axte

Re: [PATCH v4 2/3] powerpc/powernv: Move cpuidle related code from setup.c to new file

2015-04-13 Thread Preeti U Murthy
On 04/14/2015 07:26 AM, Shreyas B. Prabhu wrote: > This is a cleanup patch; doesn't change any functionality. Moves > all cpuidle related code from setup.c to a new file. > > Signed-off-by: Shreyas B. Prabhu Reviewed-by: Preeti U Murthy Regards Preeti U Murthy > --- > arch/powerpc/platforms/p

[RFC PATCH 2/2] powerpc: Migrate pseries to host_bridge_ops, remove pcibios_set_root_bus_speed

2015-04-13 Thread Daniel Axtens
Move the pseries set_root_bus_speed function into a pseries-specific pci_host_bridge_ops structure. Only pseries defines set_root_bus_speed. Now that it will be called through the pci_host_bridge_ops function pointer, both the ppc_md definition and the function in pci-common.c are unused. Remove t

[RFC PATCH 1/2] powerpc: Add pci_controller.generic_ops and move pci_controller.ops in

2015-04-13 Thread Daniel Axtens
Recent patches have created a pci_host_bridge_ops structure, which is generic across architectures. This is the first step to making PowerPC take full advantage of it. 1) Remove the PowerPC-wide generic ops structure in pci-common.c, replacing it with 'struct pci_host_bridge_ops generic_ops' to

[RFC PATCH 0/2] First steps to using generic controller ops

2015-04-13 Thread Daniel Axtens
Recently I reviewed some patches from Yijing Wang that added a generic PHB operations structure. I said that we needed further work on our end to take full advantage of it. This is a proposed set of first steps to do that. In short, it allows us to trivially kill off another ppc_md function. :)

[PATCH 10/10] powerpc: Remove MSI-related PCI controller ops from ppc_md

2015-04-13 Thread Daniel Axtens
Remove unneeded ppc_md functions. Patch callsites to use pci_controller_ops functions exclusively. --- arch/powerpc/include/asm/machdep.h | 6 -- arch/powerpc/kernel/msi.c | 15 --- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/arch/powerpc/include/asm/m

[PATCH 09/10] powerpc/mpic_u3msi: Move MSI-related ops to pci_controller_ops

2015-04-13 Thread Daniel Axtens
Move the u3 MPIC msi subsystem to use the pci_controller_ops structure rather than ppc_md for MSI related PCI controller operations. As with fsl_msi, operations are plugged in at the subsys level, after controller creation. Again, we iterate over all controllers and populate them with the MSI ops.

[PATCH 08/10] powerpc/mpic_pasemi_msi: Move MSI-related ops to pci_controller_ops

2015-04-13 Thread Daniel Axtens
Move the PaSemi MPIC msi subsystem to use the pci_controller_ops structure rather than ppc_md for MSI related PCI controller operations. As with fsl_msi, operations are plugged in at the subsys level, after controller creation. Again, we iterate over all controllers and populate them with the MSI

[PATCH 07/10] powerpc/ppc4xx_hsta_msi: Move MSI-related ops to pci_controller_ops

2015-04-13 Thread Daniel Axtens
Move the ppc4xx hsta msi subsystem to use the pci_controller_ops structure rather than ppc_md for MSI related PCI controller operations. As with fsl_msi, operations are plugged in at the subsys level, after controller creation. Again, we iterate over all controllers and populate them with the MSI

[PATCH 06/10] powerpc/ppc4xx_msi: Move MSI-related ops to pci_controller_ops

2015-04-13 Thread Daniel Axtens
Move the ppc4xx msi subsystem to use the pci_controller_ops structure rather than ppc_md for MSI related PCI controller operations. As with fsl_msi, operations are plugged in at the subsys level, after controller creation. Again, we iterate over all controllers and populate them with the MSI ops.

[PATCH 05/10] powerpc/fsl_msi: Move MSI-related ops to pci_controller_ops

2015-04-13 Thread Daniel Axtens
Move the fsl_msi subsystem to use the pci_controller_ops structure rather than ppc_md for MSI related PCI controller operations. Previously, MSI ops were added to ppc_md at the subsys level. However, in fsl_pci.c, PCI controllers are created at the at arch level. So, unlike in e.g. PowerNV/pSeries

[PATCH 04/10] powerpc/pseries: Move MSI-related ops to pci_controller_ops

2015-04-13 Thread Daniel Axtens
Move the pseries platform to use the pci_controller_ops structure rather than ppc_md for MSI related PCI controller operations --- arch/powerpc/platforms/pseries/msi.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/pseries/msi.c b/arch/powerpc/p

[PATCH 03/10] powerpc/cell: Move MSI-related ops to pci_controller_ops

2015-04-13 Thread Daniel Axtens
Move the Cell platform to use the pci_controller_ops structure rather than ppc_md for MSI related PCI controller operations. We can be confident that the functions will be added to the platform's ops struct before any PCI controller's ops struct is populated because: 1) These ops are added to the

[PATCH 02/10] powerpc/powernv: Move MSI-related ops to pci_controller_ops

2015-04-13 Thread Daniel Axtens
Move the PowerNV/BML platform to use the pci_controller_ops structure rather than ppc_md for MSI related PCI controller operations. Signed-off-by: Daniel Axtens --- arch/powerpc/platforms/powernv/pci.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/pl

[PATCH 01/10] powerpc: Add MSI operations to pci_controller_ops struct

2015-04-13 Thread Daniel Axtens
Add MSI setup and teardown functions to pci_controller_ops. Patch the callsites (arch_{setup,teardown}_msi_irqs) to prefer the controller ops version if it's available. Signed-off-by: Daniel Axtens --- arch/powerpc/include/asm/pci-bridge.h | 6 ++ arch/powerpc/kernel/msi.c | 18

[PATCH 00/10] Move MSI related PCI controller ops to pci_controller_ops

2015-04-13 Thread Daniel Axtens
This patch set moves MSI related PCI controller operations out of ppc_md and into the pci_controller_ops struct. This is a follow up to the previous patch series creating the pci_controller_ops structure. [1] This series follows the same structure: - Add functions to pci_controller_ops struct,

[PATCH v4 3/3] powerpc/powernv: Introduce sysfs control for fastsleep workaround behavior

2015-04-13 Thread Shreyas B. Prabhu
Fastsleep is one of the idle state which cpuidle subsystem currently uses on power8 machines. In this state L2 cache is brought down to a threshold voltage. Therefore when the core is in fastsleep, the communication between L2 and L3 needs to be fenced. But there is a bug in the current power8 chip

[PATCH v4 2/3] powerpc/powernv: Move cpuidle related code from setup.c to new file

2015-04-13 Thread Shreyas B. Prabhu
This is a cleanup patch; doesn't change any functionality. Moves all cpuidle related code from setup.c to a new file. Signed-off-by: Shreyas B. Prabhu --- arch/powerpc/platforms/powernv/Makefile | 2 +- arch/powerpc/platforms/powernv/idle.c | 191 arch/powerp

[PATCH v4 1/3] powerpc: Fix cpu_online_cores_map to return only online threads mask

2015-04-13 Thread Shreyas B. Prabhu
Currently, cpu_online_cores_map returns a mask, which for every core with at least one online thread, has the bit for thread 0 of the core set to 1, and the bits for all other threads of the core set to 0. But thread 0 of the core itself may not be online always. In such cases, if the returned mask

[PATCH v4 0/3] powerpc: powernv: Fastsleep workaround behavior

2015-04-13 Thread Shreyas B. Prabhu
Fastsleep is one of the idle state which cpuidle subsystem currently uses on power8 machines. In this state L2 cache is brought down to a threshold voltage. Therefore when the core is in fastsleep, the communication between L2 and L3 needs to be fenced. But there is a bug in the current power8 ch

[PATCH] powerpc: Remove PPC32 code from pseries specific find_and_init_phbs()

2015-04-13 Thread Daniel Axtens
In bdc728a849a7 ("powerpc: move find_and_init_phbs() to pSeries specific code"), find_and_init_phbs() was moved into a pseries specific file, but PPC32 code wasn't removed. Remove it. See https://lkml.kernel.org/r/552c0aa6.4010...@fau.de Reported-by: Andreas Ruprecht Fixes: bdc728a849a7 Signed-o

Re: [v3, 01/11] powerpc/8xx: remove remaining unnecessary code in FixupDAR

2015-04-13 Thread leroy christophe
Le 13/04/2015 22:26, Scott Wood a écrit : On Sun, 2015-04-12 at 18:16 +0200, leroy christophe wrote: Le 26/03/2015 22:32, Scott Wood a écrit : On Tue, Feb 03, 2015 at 12:38:16PM +0100, LEROY Christophe wrote: Since commit 33fb845a6f01 ("powerpc/8xx: Don't use MD_TWC for walk"), MD_EPN and MD

[PATCH] powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH

2015-04-13 Thread Anton Blanchard
We cap 32bit userspace backtraces to PERF_MAX_STACK_DEPTH (currently 127), but we forgot to do the same for 64bit backtraces. Cc: sta...@vger.kernel.org Signed-off-by: Anton Blanchard --- arch/powerpc/perf/callchain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/power

powerpc: Dead code in commit bdc728a849a7

2015-04-13 Thread Andreas Ruprecht
Hi Daniel, your commit bdc728a849a7 ("powerpc: move find_and_init_phbs() to pSeries specific code") in today's Linux next tree moves a function into the pSeries specific setup.c file. I noticed it because I'm running an automated bot on top of linux-next which looks for variability-related defects

Re: [PATCH 1/4 v2] powerpc/fsl-booke: Add device tree support for T1024/T1023 SoC

2015-04-13 Thread Scott Wood
On Thu, 2015-04-09 at 01:29 -0500, Liu Shengzhou-B36685 wrote: > > > +&soc { > > > +/include/ "qoriq-tdm1.0.dtsi" > > > > Where is this file? Is there some dependency you've forgotten to mention? > > > > If this is meant to apply after > > http://patchwork.ozlabs.org/patch/457605/ > > is that re

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Andrew Morton
On Mon, 13 Apr 2015 17:02:19 +0300 "Kirill A. Shutemov" wrote: > > Kirill, if I'm right with it, can you suggest the header where to put > > the "generic" mremap hook's (empty) body? > > I initially thought it would be enough to put it into > , expecting it works as > . But that's not the case.

Re: [v3, 01/11] powerpc/8xx: remove remaining unnecessary code in FixupDAR

2015-04-13 Thread Scott Wood
On Sun, 2015-04-12 at 18:16 +0200, leroy christophe wrote: > > Le 26/03/2015 22:32, Scott Wood a écrit : > > On Tue, Feb 03, 2015 at 12:38:16PM +0100, LEROY Christophe wrote: > >> Since commit 33fb845a6f01 ("powerpc/8xx: Don't use MD_TWC for walk"), > >> MD_EPN and > >> MD_TWC are not writen anym

Re: [v2] dt/bindings: qoriq-clock: Add binding for FMan clock mux

2015-04-13 Thread Scott Wood
On Sun, 2015-04-12 at 10:54 -0500, Liberman Igal-B31950 wrote: > > > Regards, > Igal Liberman. > > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Thursday, April 09, 2015 8:03 PM > > To: Liberman Igal-B31950 > > Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org >

Re: [PATCH] of: return NUMA_NO_NODE from fallback of_node_to_nid()

2015-04-13 Thread Rob Herring
On Mon, Apr 13, 2015 at 8:38 AM, Konstantin Khlebnikov wrote: > On 13.04.2015 16:22, Rob Herring wrote: >> >> On Wed, Apr 8, 2015 at 11:59 AM, Konstantin Khlebnikov >> wrote: >>> >>> Node 0 might be offline as well as any other numa node, >>> in this case kernel cannot handle memory allocation an

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Laurent Dufour
On 13/04/2015 16:32, Pavel Emelyanov wrote: I initially thought it would be enough to put it into , expecting it works as . But that's not the case. It probably worth at some point rework all to include at the end as we do for . But that's outside the scope of t

Re: [PATCH v2 02/10] KVM: define common __KVM_GUESTDBG_USE_SW/HW_BP values

2015-04-13 Thread Andrew Jones
On Mon, Apr 13, 2015 at 03:51:33PM +0100, Alex Bennée wrote: > > Christoffer Dall writes: > > > On Tue, Mar 31, 2015 at 04:08:00PM +0100, Alex Bennée wrote: > >> Currently x86, powerpc and soon arm64 use the same two architecture > >> specific bits for guest debug support for software and hardwa

Re: [PATCH v2 02/10] KVM: define common __KVM_GUESTDBG_USE_SW/HW_BP values

2015-04-13 Thread Alex Bennée
Christoffer Dall writes: > On Tue, Mar 31, 2015 at 04:08:00PM +0100, Alex Bennée wrote: >> Currently x86, powerpc and soon arm64 use the same two architecture >> specific bits for guest debug support for software and hardware >> breakpoints. This makes the shared values explicit while leaving th

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Pavel Emelyanov
>>> I initially thought it would be enough to put it into >>> , expecting it works as >>> . But that's not the case. >>> >>> It probably worth at some point rework all to include >>> at the end as we do for . >>> But that's outside the scope of the patchset, I guess. >>> >>> I don't see any bette

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Kirill A. Shutemov
On Mon, Apr 13, 2015 at 04:11:19PM +0200, Laurent Dufour wrote: > On 13/04/2015 16:02, Kirill A. Shutemov wrote: > > On Mon, Apr 13, 2015 at 04:35:21PM +0300, Pavel Emelyanov wrote: > >> On 04/13/2015 04:21 PM, Laurent Dufour wrote: > >>> On 13/04/2015 15:13, Kirill A. Shutemov wrote: > On Mon

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Laurent Dufour
On 13/04/2015 16:02, Kirill A. Shutemov wrote: > On Mon, Apr 13, 2015 at 04:35:21PM +0300, Pavel Emelyanov wrote: >> On 04/13/2015 04:21 PM, Laurent Dufour wrote: >>> On 13/04/2015 15:13, Kirill A. Shutemov wrote: On Mon, Apr 13, 2015 at 02:41:22PM +0200, Laurent Dufour wrote: > On 13/04/2

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Kirill A. Shutemov
On Mon, Apr 13, 2015 at 04:35:21PM +0300, Pavel Emelyanov wrote: > On 04/13/2015 04:21 PM, Laurent Dufour wrote: > > On 13/04/2015 15:13, Kirill A. Shutemov wrote: > >> On Mon, Apr 13, 2015 at 02:41:22PM +0200, Laurent Dufour wrote: > >>> On 13/04/2015 13:58, Kirill A. Shutemov wrote: > On Mon

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Pavel Emelyanov
On 04/13/2015 04:21 PM, Laurent Dufour wrote: > On 13/04/2015 15:13, Kirill A. Shutemov wrote: >> On Mon, Apr 13, 2015 at 02:41:22PM +0200, Laurent Dufour wrote: >>> On 13/04/2015 13:58, Kirill A. Shutemov wrote: On Mon, Apr 13, 2015 at 11:56:27AM +0200, Laurent Dufour wrote: > Some archit

Re: [PATCH] of: return NUMA_NO_NODE from fallback of_node_to_nid()

2015-04-13 Thread Konstantin Khlebnikov
On 13.04.2015 16:22, Rob Herring wrote: On Wed, Apr 8, 2015 at 11:59 AM, Konstantin Khlebnikov wrote: Node 0 might be offline as well as any other numa node, in this case kernel cannot handle memory allocation and crashes. Signed-off-by: Konstantin Khlebnikov Fixes: 0c3f061c195c ("of: impleme

Re: [PATCH] of: return NUMA_NO_NODE from fallback of_node_to_nid()

2015-04-13 Thread Rob Herring
On Wed, Apr 8, 2015 at 11:59 AM, Konstantin Khlebnikov wrote: > Node 0 might be offline as well as any other numa node, > in this case kernel cannot handle memory allocation and crashes. > > Signed-off-by: Konstantin Khlebnikov > Fixes: 0c3f061c195c ("of: implement of_node_to_nid as a weak functi

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Laurent Dufour
On 13/04/2015 15:13, Kirill A. Shutemov wrote: > On Mon, Apr 13, 2015 at 02:41:22PM +0200, Laurent Dufour wrote: >> On 13/04/2015 13:58, Kirill A. Shutemov wrote: >>> On Mon, Apr 13, 2015 at 11:56:27AM +0200, Laurent Dufour wrote: Some architecture would like to be triggered when a memory area

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Kirill A. Shutemov
On Mon, Apr 13, 2015 at 02:41:22PM +0200, Laurent Dufour wrote: > On 13/04/2015 13:58, Kirill A. Shutemov wrote: > > On Mon, Apr 13, 2015 at 11:56:27AM +0200, Laurent Dufour wrote: > >> Some architecture would like to be triggered when a memory area is moved > >> through the mremap system call. > >

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Laurent Dufour
On 13/04/2015 13:58, Kirill A. Shutemov wrote: > On Mon, Apr 13, 2015 at 11:56:27AM +0200, Laurent Dufour wrote: >> Some architecture would like to be triggered when a memory area is moved >> through the mremap system call. >> >> This patch is introducing a new arch_remap mm hook which is placed in

Re: [RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Kirill A. Shutemov
On Mon, Apr 13, 2015 at 11:56:27AM +0200, Laurent Dufour wrote: > Some architecture would like to be triggered when a memory area is moved > through the mremap system call. > > This patch is introducing a new arch_remap mm hook which is placed in the > path of mremap, and is called before the old

Re: [PATCH v2 02/10] KVM: define common __KVM_GUESTDBG_USE_SW/HW_BP values

2015-04-13 Thread Christoffer Dall
On Tue, Mar 31, 2015 at 04:08:00PM +0100, Alex Bennée wrote: > Currently x86, powerpc and soon arm64 use the same two architecture > specific bits for guest debug support for software and hardware > breakpoints. This makes the shared values explicit while leaving the > gate open for another archite

linux-next: build failure after merge of the akpm-current tree

2015-04-13 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/kernel/setup_64.c: In function 'disable_hardlockup_detector': arch/powerpc/kernel/setup_64.c:796:2: error: implicit declaration of function 'watchdog_enable_hardlocku

linux-next: manual merge of the kselftest tree with the powerpc-mpe tree

2015-04-13 Thread Stephen Rothwell
Hi Shuah, Today's linux-next merge of the kselftest tree got a conflict in tools/testing/selftests/powerpc/tm/Makefile between commit 7fe924d9d71c ("selftests/powerpc: Add transactional syscall test") from the powerpc-mpe tree and commit 6faeeea44b84 ("selftests: Add install support for the powerp

[RESEND PATCH v3 2/2] powerpc/mm: Tracking vDSO remap

2015-04-13 Thread Laurent Dufour
Some processes (CRIU) are moving the vDSO area using the mremap system call. As a consequence the kernel reference to the vDSO base address is no more valid and the signal return frame built once the vDSO has been moved is not pointing to the new sigreturn address. This patch handles vDSO remappin

[RESEND PATCH v3 1/2] mm: Introducing arch_remap hook

2015-04-13 Thread Laurent Dufour
Some architecture would like to be triggered when a memory area is moved through the mremap system call. This patch is introducing a new arch_remap mm hook which is placed in the path of mremap, and is called before the old area is unmapped (and the arch_unmap hook is called). The architectures w

[RESEND PATCH v3 0/2] Tracking user space vDSO remaping

2015-04-13 Thread Laurent Dufour
CRIU is recreating the process memory layout by remapping the checkpointee memory area on top of the current process (criu). This includes remapping the vDSO to the place it has at checkpoint time. However some architectures like powerpc are keeping a reference to the vDSO base address to build th

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-04-13 Thread Anshuman Khandual
On 04/10/2015 04:03 PM, Ulrich Weigand wrote: > Anshuman Khandual wrote on 10.04.2015 > 11:10:35: > >> I had posted a newer version [V7] of this patch series couple of months > back >> which got ignored while the discussion continued in this version. >> >> V7: https://lkml.org/lkml/2015/1/14/19 >

Re: linux-next: manual merge of the powerpc-mpe tree with the powerpc tree

2015-04-13 Thread Wei Yang
On Mon, Apr 13, 2015 at 05:55:31PM +1000, Stephen Rothwell wrote: >Hi, > >On Mon, 13 Apr 2015 14:09:13 +0800 Wei Yang wrote: >> >> Hi, Stephen, >> >> Thanks for your finding :-) Your fix looks good to me. >> >> Michael & Ben, >> >> Do I need to rebase the patch or what should I do? > >You shoul

[PATCH] cxl: Export AFU error buffer via sysfs

2015-04-13 Thread Vaibhav Jain
This patch exports the "AFU Error Buffer" via sysfs attribute (afu_err_buf). AFU error buffer is used by the AFU to report application specific errors. The contents of this buffer are AFU specific and are intended to be interpreted by the application interacting with the afu. Testing: - Bu

Re: linux-next: manual merge of the powerpc-mpe tree with the powerpc tree

2015-04-13 Thread Stephen Rothwell
Hi, On Mon, 13 Apr 2015 14:09:13 +0800 Wei Yang wrote: > > Hi, Stephen, > > Thanks for your finding :-) Your fix looks good to me. > > Michael & Ben, > > Do I need to rebase the patch or what should I do? You should have nothing to do, Michael has fixed it up when he merged Ben's tree into hi

[PATCH v3 powerpc] perf/hv-24x7 fail 24x7 initcall if create_events_from_catalog() fails

2015-04-13 Thread Li Zhong
As Michael pointed out, create_events_from_catalog() fails when we either have: - a kernel bug - some sort of hypervisor misconfiguration - ENOMEM In all the above cases, we can also fail 24x7 initcall. For hypervisor errors, EIO is used so there is something reported in dmesg. Signed-off-