Re: perf tools: add support for generating bpf prologue on powerpc

2016-05-06 Thread Michael Ellerman
On Thu, 2016-05-05 at 15:23:19 UTC, "Naveen N. Rao" wrote: > Generalize existing macros to serve the purpose. > > Cc: Wang Nan > Cc: Arnaldo Carvalho de Melo > Cc: Masami Hiramatsu > Cc: Ian Munsie > Cc: Michael

Re: [3/3] powerpc/fadump: add support for fadump_nr_cpus= parameter

2016-05-06 Thread Michael Ellerman
On Fri, 2016-06-05 at 11:51:08 UTC, Hari Bathini wrote: > Kernel parameter 'nr_cpus' can be used to limit the maximum number > of processors that an SMP kernel could support. This patch extends > this to fadump by introducing 'fadump_nr_cpus' parameter that can > help in booting fadump kernel on a

Re: [2/3] powerpc/fadump: add support to specify memory range based size

2016-05-06 Thread Michael Ellerman
On Fri, 2016-06-05 at 11:50:37 UTC, Hari Bathini wrote: > Currently, memory for fadump can be specified with fadump_reserve_mem=size, > where only a fixed size can be specified. This patch tries to extend this > syntax to support conditional reservation based on memory size, with the > below

Re: [PATCH 5/5] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-05-06 Thread Alex Williamson
On Fri, 6 May 2016 16:35:38 +1000 Alexey Kardashevskiy wrote: > On 05/06/2016 01:05 AM, Alex Williamson wrote: > > On Thu, 5 May 2016 12:15:46 + > > "Tian, Kevin" wrote: > > > >>> From: Yongji Xie [mailto:xyj...@linux.vnet.ibm.com] > >>> Sent:

Re: [PATCH v9 22/22] PCI/hotplug: PowerPC PowerNV PCI hotplug driver

2016-05-06 Thread Rob Herring
On Thu, May 5, 2016 at 7:28 PM, Gavin Shan wrote: > On Thu, May 05, 2016 at 12:04:49PM -0500, Rob Herring wrote: >>On Tue, May 3, 2016 at 8:22 AM, Gavin Shan wrote: >>> This adds standalone driver to support PCI hotplug for PowerPC PowerNV

Re: [RFC PATCH v2 17/18] livepatch: change to a per-task consistency model

2016-05-06 Thread Josh Poimboeuf
On Fri, May 06, 2016 at 01:33:01PM +0200, Petr Mladek wrote: > On Thu 2016-04-28 15:44:48, Josh Poimboeuf wrote: > > diff --git a/kernel/livepatch/patch.c b/kernel/livepatch/patch.c > > index 782fbb5..b3b8639 100644 > > --- a/kernel/livepatch/patch.c > > +++ b/kernel/livepatch/patch.c > > @@ -29,6

Canyonlands oops at Shutdown

2016-05-06 Thread Julian Margetson
Getting the following at shutdown with Kernel 4.6-rc's on Sam460ex Canyonlands board . Regards Julian [ 1533.722779] Unable to handle kernel paging request for data at address 0x0128 [ 1533.744309] Faulting instruction address: 0xc026d3c8 [ 1535.763583] Oops: Kernel access of bad area,

Re: klp_task_patch: was: [RFC PATCH v2 17/18] livepatch: change to a per-task consistency model

2016-05-06 Thread Josh Poimboeuf
On Thu, May 05, 2016 at 01:57:01PM +0200, Petr Mladek wrote: > I have missed that the two commands are called with preemption > disabled. So, I had the following crazy scenario in mind: > > > CPU0 CPU1 > > klp_enable_patch() > > klp_target_state = KLP_PATCHED; > >

[PATCH 3/3] powerpc/fadump: add support for fadump_nr_cpus= parameter

2016-05-06 Thread Hari Bathini
Kernel parameter 'nr_cpus' can be used to limit the maximum number of processors that an SMP kernel could support. This patch extends this to fadump by introducing 'fadump_nr_cpus' parameter that can help in booting fadump kernel on a lower memory footprint. Suggested-by: Mahesh Salgaonkar

[PATCH 2/3] powerpc/fadump: add support to specify memory range based size

2016-05-06 Thread Hari Bathini
Currently, memory for fadump can be specified with fadump_reserve_mem=size, where only a fixed size can be specified. This patch tries to extend this syntax to support conditional reservation based on memory size, with the below syntax: fadump_reserve_mem=:[,:,...] This syntax helps

[PATCH 1/3] powerpc/fadump: set an upper limit for the default memory reserved for fadump

2016-05-06 Thread Hari Bathini
When boot memory size for fadump is not specified, memory is reserved for fadump based on system RAM size. As the system RAM size increases, the memory reserved for fadump increases as well. This patch sets an upper limit on the memory reserved for fadump, to avoid reserving excess memory.

Re: [PATCH V10 00/28] Add new powerpc specific ELF core notes

2016-05-06 Thread Michael Ellerman
On Tue, 2016-02-16 at 14:29 +0530, Anshuman Khandual wrote: > This patch series adds twelve new ELF core note sections which can > be used with existing ptrace request PTRACE_GETREGSET-SETREGSET for accessing > various transactional memory and other miscellaneous debug register sets on >

Re: [RFC PATCH v2 17/18] livepatch: change to a per-task consistency model

2016-05-06 Thread Petr Mladek
On Thu 2016-04-28 15:44:48, Josh Poimboeuf wrote: > diff --git a/kernel/livepatch/patch.c b/kernel/livepatch/patch.c > index 782fbb5..b3b8639 100644 > --- a/kernel/livepatch/patch.c > +++ b/kernel/livepatch/patch.c > @@ -29,6 +29,7 @@ > #include > #include > #include "patch.h" > +#include

Re: [PATCH v9 04/22] powerpc/powernv: Increase PE# capacity

2016-05-06 Thread Gavin Shan
On Fri, May 06, 2016 at 05:17:25PM +1000, Alexey Kardashevskiy wrote: >On 05/03/2016 11:22 PM, Gavin Shan wrote: >>Each PHB maintains an array helping to translate 2-bytes Request >>ID (RID) to PE# with the assumption that PE# takes one byte, meaning >>that we can't have more than 256 PEs.

Re: [PATCH 0/9] FP/VEC/VSX switching optimisations

2016-05-06 Thread Naveen N. Rao
On 2016/05/05 05:32PM, Naveen N Rao wrote: > On 2016/02/29 05:53PM, Cyril Bur wrote: > > Cover-letter for V1 of the series is at > > https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-November/136350.html > > > > Cover-letter for V2 of the series is at > >

[GIT PULL] Please pull powerpc/linux.git powerpc-4.6-5 tag

2016-05-06 Thread Michael Ellerman
Hi Linus, Please pull one powerpc fix for 4.6: The following changes since commit d701cca6744fe0d67c86346dcfc9b128b17b5045: powerpc: wire up preadv2 and pwritev2 syscalls (2016-04-27 16:47:55 +1000) are available in the git repository at:

[PATCH v2] cxl: Add kernel API to allow a context to operate with relocate disabled

2016-05-06 Thread Ian Munsie
From: Ian Munsie cxl devices typically access memory using an MMU in much the same way as the CPU, and each context includes a state register much like the MSR in the CPU. Like the CPU, the state register includes a bit to enable relocation, which we currently always enable.

Re: [PATCH] cxl: Add kernel API to allow a context to operate with relocate disabled

2016-05-06 Thread Ian Munsie
Sure thing, that actually simplifies things a great deal. Testing now and will resend shortly :) -Ian ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v9 04/22] powerpc/powernv: Increase PE# capacity

2016-05-06 Thread Alexey Kardashevskiy
On 05/03/2016 11:22 PM, Gavin Shan wrote: Each PHB maintains an array helping to translate 2-bytes Request ID (RID) to PE# with the assumption that PE# takes one byte, meaning that we can't have more than 256 PEs. However, pci_dn->pe_number already had 4-bytes for the PE#. Can you possibly

Re: [GIT PULL 00/17] perf/core improvements and fixes

2016-05-06 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > > The following changes since commit 1b6de5917172967acd8db4d222df4225d23a8a60: > > perf/x86/intel/pt: Convert ACCESS_ONCE()s (2016-05-05 10:16:29 +0200) > > are available

Re: [PATCH v9 03/22] powerpc/powernv: Move pnv_pci_ioda_setup_opal_tce_kill() around

2016-05-06 Thread Alexey Kardashevskiy
On 05/03/2016 11:22 PM, Gavin Shan wrote: pnv_pci_ioda_setup_opal_tce_kill() called by pnv_ioda_setup_dma() to remap the TCE kill regiter. What's done in pnv_ioda_setup_dma() will be covered in pcibios_setup_bridge() which is invoked on each PCI bridge. It means we will possibly remap the TCE

Re: [PATCH 5/5] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-05-06 Thread Alexey Kardashevskiy
On 05/06/2016 01:05 AM, Alex Williamson wrote: On Thu, 5 May 2016 12:15:46 + "Tian, Kevin" wrote: From: Yongji Xie [mailto:xyj...@linux.vnet.ibm.com] Sent: Thursday, May 05, 2016 7:43 PM Hi David and Kevin, On 2016/5/5 17:54, David Laight wrote: From: Tian, Kevin

Re: [PATCH 4/5] pci-ioda: Set PCI_BUS_FLAGS_MSI_REMAP for IODA host bridge

2016-05-06 Thread Alexey Kardashevskiy
On 04/27/2016 10:43 PM, Yongji Xie wrote: Any IODA host bridge have the capability of IRQ remapping. So we set PCI_BUS_FLAGS_MSI_REMAP when this kind of host birdge is detected. Signed-off-by: Yongji Xie Reviewed-by: Alexey Kardashevskiy ---

Re: [PATCH 0/2] Enable ZONE_DEVICE on POWER

2016-05-06 Thread oliver
Hi, I've been working on kernel support for a persistent memory (nvdimm) device and the kernel driver infrastructure requires ZONE_DEVICE for DAX support.. I've had it enabled in my tree for some time (without altmap support) without any real issues. I wasn't planning on upstreaming any of my