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

2015-04-08 Thread Michael Neuling
On Wed, 2015-04-08 at 19:50 +0200, Ulrich Weigand wrote: > Anshuman Khandual wrote on 23.03.2015 > 11:34:30: > > > > With that in mind, do we have a way to set the top 32bits of the MSR > > > (which contain the TM bits) when ptracing 32 bit processes? I can't > > > find anything like that in thi

Re: [PATCH 2/6] powerpc: Add cpu name to dump stack arch description

2015-05-06 Thread Michael Neuling
On Tue, 2015-05-05 at 21:12 +1000, Michael Ellerman wrote: > As soon as we know the name of the cpu we're on, add it to the dump > stack arch description, which is printed in case of an oops. > > Signed-off-by: Michael Ellerman > --- > arch/powerpc/kernel/cputable.c | 3 +++ > 1 file changed, 3

[PATCH 00/19] cxl: Add AFU virtual PHB and in kernel API

2015-05-19 Thread Michael Neuling
This patch series adds the ability to present AFUs as PCI devices on a virtual PHB. It also adds an in kernel API (to the existing userspace API) so AFU drivers can be written as kernel drivers. Mikey ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozl

[PATCH 01/19] powerpc/copro: Fix faulting kernel segments

2015-05-19 Thread Michael Neuling
This fixes calculating the key bits (KP and KS) in the SLB VSID for kernel mappings. I'm not CCing this to stable as there are no uses of this currently. Signed-off-by: Michael Neuling --- arch/powerpc/mm/copro_fault.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --

[PATCH 02/19] powerpc/pci: Export symbols for CXL

2015-05-19 Thread Michael Neuling
From: Daniel Axtens Export pcibios_claim_one_bus, pcibios_scan_phb and pcibios_alloc_controller. These will be used by the CXL driver. Signed-off-by: Daniel Axtens --- arch/powerpc/kernel/pci-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/pci-common.c b/ar

[PATCH 03/19] powerpc/pci: Add release_device() hook to phb ops

2015-05-19 Thread Michael Neuling
Add release_device() hook to phb ops so we can clean up for specific phbs. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/pci-bridge.h | 2 ++ arch/powerpc/kernel/pci-hotplug.c | 5 + 2 files changed, 7 insertions(+) diff --git a/arch/powerpc/include/asm/pci-bridge.h b

[PATCH 04/19] powerpc: Add cxl context to device archdata

2015-05-19 Thread Michael Neuling
Add cxl context pointer to archdata. We'll want to create one of these for cxl PCI devices. Put them here until we can get a pci_dev specific private data. This location was suggested by benh. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/device.h | 3 +++ 1 file chang

[PATCH 05/19] cxl: Document external user of existing API

2015-05-19 Thread Michael Neuling
Now that libcxl is public, let's document it. Signed-off-by: Michael Neuling --- Documentation/ABI/testing/sysfs-class-cxl | 22 ++ Documentation/powerpc/cxl.txt | 4 2 files changed, 26 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-clas

[PATCH 06/19] cxl: Add shutdown hook

2015-05-19 Thread Michael Neuling
Signed-off-by: Michael Neuling --- drivers/misc/cxl/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index b80f867..a9c90d2 100644 --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -1135,4 +1135,5 @@ struct pci_driver

[PATCH 07/19] cxl: Re-order card init to check the VSEC earlier

2015-05-19 Thread Michael Neuling
activating CXL. Also change the dev used in early prints as the adapter struct may not be inited at this earlier stage. Signed-off-by: Michael Neuling --- drivers/misc/cxl/pci.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/misc/cxl/pci.c

[PATCH 08/19] cxl: Dump debug info on the AFU configuration record

2015-05-19 Thread Michael Neuling
Now that we parse the AFU Configuration record, dump some info on it when in debug mode. Signed-off-by: Michael Neuling --- drivers/misc/cxl/pci.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index 1ac2ecf

[PATCH 09/19] cxl: Add cookie parameter to afu_release_irqs()

2015-05-19 Thread Michael Neuling
Add cookie parameter to afu_release_irqs() so that we can pass in a different cookie than the context structure. This will be useful for other kernel drivers that want to call this but get their own cookie back in the interrupt handler. Update all existing call sites. Signed-off-by: Michael

[PATCH 10/19] cxl: Rework detach context functions

2015-05-19 Thread Michael Neuling
Rework __detach_context() and cxl_context_detach() so we can reuse them in the kernel API. Signed-off-by: Michael Neuling --- drivers/misc/cxl/context.c | 20 +--- drivers/misc/cxl/cxl.h | 1 + 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/misc/cxl

[PATCH 11/19] cxl: cxl_afu_reset() -> __cxl_afu_reset()

2015-05-19 Thread Michael Neuling
Rename cxl_afu_reset() to __cxl_afu_reset() to we can reuse this function name in the API. Signed-off-by: Michael Neuling --- drivers/misc/cxl/cxl.h| 2 +- drivers/misc/cxl/native.c | 8 drivers/misc/cxl/pci.c| 4 ++-- drivers/misc/cxl/sysfs.c | 2 +- 4 files changed, 8

[PATCH 12/19] cxl: Export some symbols

2015-05-19 Thread Michael Neuling
These will soon be using elsewhere in the driver. Signed-off-by: Michael Neuling --- drivers/misc/cxl/cxl.h| 5 + drivers/misc/cxl/native.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/misc/cxl/cxl.h b/drivers/misc/cxl/cxl.h index 8180680..15e1077

[PATCH 13/19] cxl: Only check pid for userspace contexts

2015-05-19 Thread Michael Neuling
We only need to check the pid attached to this context for userspace contexts. Kernel contexts can skip this check. Signed-off-by: Michael Neuling --- drivers/misc/cxl/fault.c | 34 +++--- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/drivers/misc

[PATCH 14/19] cxl: Split afu_register_irqs() function

2015-05-19 Thread Michael Neuling
Split the afu_register_irqs() function so that different parts can be useful elsewhere. Signed-off-by: Michael Neuling --- drivers/misc/cxl/cxl.h | 1 + drivers/misc/cxl/irq.c | 31 --- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/drivers/misc/cxl

[PATCH 15/19] cxl: Configure PSL for kernel contexts

2015-05-19 Thread Michael Neuling
This updates AFU directed and dedicated modes for contexts attached to the kernel. Signed-off-by: Michael Neuling --- drivers/misc/cxl/native.c | 40 ++-- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/drivers/misc/cxl/native.c b/drivers/misc

[PATCH 16/19] cxl: Cleanup Makefile

2015-05-19 Thread Michael Neuling
Cleanup Makefile by fixing line wrapping. Signed-off-by: Michael Neuling --- drivers/misc/cxl/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/cxl/Makefile b/drivers/misc/cxl/Makefile index edb494d..f9f5514 100644 --- a/drivers/misc/cxl/Makefile +++ b

[PATCH 17/19] cxl: Move include file cxl.h -> cxl-base.h

2015-05-19 Thread Michael Neuling
for other driver to use Signed-off-by: Michael Neuling --- MAINTAINERS | 2 +- arch/powerpc/include/asm/pnv-pci.h| 2 +- arch/powerpc/mm/copro_fault.c | 2 +- arch/powerpc/mm/hash_native_64.c | 2 +- arch/powerpc/platforms/powernv/pci-iod

[PATCH 18/19] cxl: Export file ops for use by API

2015-05-19 Thread Michael Neuling
The cxl kernel API will allow drivers other than cxl to export a file descriptor which has the same userspace API. These file descriptors will be able to be used against libcxl. This exports those file ops for use by other drivers. Signed-off-by: Michael Neuling --- drivers/misc/cxl/cxl.h

[PATCH 19/19] cxl: Add AFU virtual PHB and kernel API

2015-05-19 Thread Michael Neuling
x27;t sit in the PCI ops) using this API. Signed-off-by: Michael Neuling --- drivers/misc/cxl/Makefile | 1 + drivers/misc/cxl/api.c| 326 ++ drivers/misc/cxl/cxl.h| 5 + drivers/misc/cxl/pci.c| 17 ++- drivers/misc/cxl/vphb.c

Re: [PATCH] powerpc: Make doorbell check preemption safe

2015-05-19 Thread Michael Neuling
Looks good and it's boots for me. Signed-off-by: Michael Neuling > Signed-off-by: Shreyas B. Prabhu > --- > arch/powerpc/sysdev/xics/icp-native.c | 14 +- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/arch/powerpc/sysdev/xics/icp-native

Re: [RFC PATCH 2/3] powerpc/kernel: Prepare for seccomp-filter in the 64-bit syscall path

2015-05-20 Thread Michael Neuling
On Fri, 2015-05-15 at 18:29 +1000, Michael Ellerman wrote: > In order to support seccomp-filter we need to be able to cope with > seccomp potentially setting a return value for the syscall. > > Currently this doesn't work, because we assume any failure from > do_syscall_trace_enter() should result

Re: [PATCH v2] cxl: Export AFU error buffer via sysfs

2015-05-20 Thread Michael Neuling
On Wed, 2015-05-20 at 16:26 +0530, Vaibhav Jain wrote: > Export 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 applicati

Re: [PATCH v2] cxl: Export AFU error buffer via sysfs

2015-05-20 Thread Michael Neuling
On Wed, 2015-05-20 at 22:12 +1000, Michael Neuling wrote: > On Wed, 2015-05-20 at 16:26 +0530, Vaibhav Jain wrote: > > Export the "AFU Error Buffer" via sysfs attribute (afu_err_buf). AFU > > error buffer is used by the AFU to report application specific > > errors.

Re: [PATCH v2] cxl: Export AFU error buffer via sysfs

2015-05-20 Thread Michael Neuling
On Wed, 2015-05-20 at 22:31 +1000, Michael Neuling wrote: > On Wed, 2015-05-20 at 22:12 +1000, Michael Neuling wrote: > > On Wed, 2015-05-20 at 16:26 +0530, Vaibhav Jain wrote: > > > Export the "AFU Error Buffer" via sysfs attribute (afu_err_buf). AFU > > &g

Re: [PATCH v3] cxl: Export AFU error buffer via sysfs

2015-05-20 Thread Michael Neuling
+ */ > +ssize_t cxl_afu_read_err_buffer(struct cxl_afu *afu, char *buf, > + loff_t off, size_t count) > +{ > + loff_t aligned_off; > + size_t aligned_count; > + const void __iomem *ebuf = afu->afu_desc_mmio + afu->eb_offset; > + > + if (!afu->eb_len || co

Re: [PATCH v3] cxl: Export AFU error buffer via sysfs

2015-05-20 Thread Michael Neuling
On Thu, 2015-05-21 at 09:06 +0530, trigg wrote: > > > > On 21-May-2015, at 05:16, Michael Neuling wrote: > > > > + */ > > > +ssize_t cxl_afu_read_err_buffer(struct cxl_afu *afu, char *buf, > > > +loff_t off, size_t cou

Re: [PATCH 07/19] cxl: Re-order card init to check the VSEC earlier

2015-05-21 Thread Michael Neuling
On Thu, 2015-05-21 at 19:09 +1000, Ian Munsie wrote: > I think this is missing the From line to indicate I wrote it ;) Oops, yeah, although you could just change your name and that would also fix the problem. Mikey > Otherwise... > > Acked-by: Ian Munsie > > ;-) > _

Re: [PATCH 15/19] cxl: Configure PSL for kernel contexts

2015-05-21 Thread Michael Neuling
On Thu, 2015-05-21 at 19:32 +1000, Ian Munsie wrote: > Excerpts from Michael Neuling's message of 2015-05-19 21:22:32 +1000: > > +if (ctx->kernel) { > > +sr |= CXL_PSL_SR_An_R | (mfmsr() & MSR_SF) | CXL_PSL_SR_An_HV; > > +pid = 0; > > +} else { > > +sr |= CXL_PSL_SR_

Re: [PATCH 19/19] cxl: Add AFU virtual PHB and kernel API

2015-05-24 Thread Michael Neuling
On Thu, 2015-05-21 at 18:58 +1000, Ian Munsie wrote: > Hi Mikey, > > > +/* wrappers around afu_* file ops which are EXPORTED */ > > This is fine, though alternatively you could export the original > functions directly from file.c (feel free to rename them to your > versions if you do change it) -

[PATCH v2 00/21] cxl: Add AFU virtual PHB and in kernel API

2015-05-25 Thread Michael Neuling
This patch series adds the ability to present AFUs as PCI devices on a virtual PHB. It also adds an in kernel API (to the existing userspace API) so AFU drivers can be written as kernel drivers. This series is dependant on Daniel DMA set mask and MSI PCI controller ops patch series. v2: - Addre

[PATCH v2 01/21] powerpc/copro: Fix faulting kernel segments

2015-05-25 Thread Michael Neuling
This fixes calculating the key bits (KP and KS) in the SLB VSID for kernel mappings. I'm not CCing this to stable as there are no uses of this currently. Signed-off-by: Michael Neuling --- arch/powerpc/mm/copro_fault.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --

[PATCH v2 02/21] powerpc/pci: Export symbols for CXL

2015-05-25 Thread Michael Neuling
From: Daniel Axtens Export pcibios_claim_one_bus, pcibios_scan_phb and pcibios_alloc_controller. These will be used by the CXL driver. Signed-off-by: Daniel Axtens --- arch/powerpc/kernel/pci-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/pci-common.c b/ar

[PATCH v2 03/21] powerpc/pci: Add release_device() hook to phb ops

2015-05-25 Thread Michael Neuling
Add release_device() hook to phb ops so we can clean up for specific phbs. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/pci-bridge.h | 2 ++ arch/powerpc/kernel/pci-hotplug.c | 5 + 2 files changed, 7 insertions(+) diff --git a/arch/powerpc/include/asm/pci-bridge.h b

[PATCH v2 04/21] powerpc: Add cxl context to device archdata

2015-05-25 Thread Michael Neuling
Add cxl context pointer to archdata. We'll want to create one of these for cxl PCI devices. Put them here until we can get a pci_dev specific private data. This location was suggested by benh. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/device.h | 3 +++ 1 file chang

[PATCH v2 05/21] powerpc/pci: Add shutdown hook to pci_controller_ops

2015-05-25 Thread Michael Neuling
ook to the pci_controller_ops and fixes the call site to use that instead. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/pci-bridge.h | 2 ++ arch/powerpc/platforms/powernv/pci-ioda.c | 8 arch/powerpc/platforms/powernv/pci.c | 9 +++-- arch/powerpc/platforms/powernv/pci.

[PATCH v2 06/21] cxl: Document external user of existing API

2015-05-25 Thread Michael Neuling
Now that libcxl is public, let's document it. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- Documentation/ABI/testing/sysfs-class-cxl | 22 ++ Documentation/powerpc/cxl.txt | 4 2 files changed, 26 insertions(+) diff --git a/Documentatio

[PATCH v2 07/21] cxl: Add shutdown hook

2015-05-25 Thread Michael Neuling
Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index b80f867..a9c90d2 100644 --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -1135,4 +1135,5 @@ struct

[PATCH v2 08/21] cxl: Re-order card init to check the VSEC earlier

2015-05-25 Thread Michael Neuling
assigning BARs or activating CXL. Also change the dev used in early prints as the adapter struct may not be inited at this earlier stage. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- drivers/misc/cxl/pci.c | 30 +++--- 1 file changed, 15 insertions(+), 15

[PATCH v2 09/21] cxl: Dump debug info on the AFU configuration record

2015-05-25 Thread Michael Neuling
Now that we parse the AFU Configuration record, dump some info on it when in debug mode. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/pci.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl

[PATCH v2 10/21] cxl: Add cookie parameter to afu_release_irqs()

2015-05-25 Thread Michael Neuling
Add cookie parameter to afu_release_irqs() so that we can pass in a different cookie than the context structure. This will be useful for other kernel drivers that want to call this but get their own cookie back in the interrupt handler. Update all existing call sites. Signed-off-by: Michael

[PATCH v2 11/21] cxl: Rework detach context functions

2015-05-25 Thread Michael Neuling
Rework __detach_context() and cxl_context_detach() so we can reuse them in the kernel API. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/context.c | 20 +--- drivers/misc/cxl/cxl.h | 1 + 2 files changed, 14 insertions(+), 7 deletions(-) diff

[PATCH v2 12/21] cxl: cxl_afu_reset() -> __cxl_afu_reset()

2015-05-25 Thread Michael Neuling
Rename cxl_afu_reset() to __cxl_afu_reset() to we can reuse this function name in the API. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/cxl.h| 2 +- drivers/misc/cxl/native.c | 8 drivers/misc/cxl/pci.c| 4 ++-- drivers/misc/cxl/sysfs.c | 2 +- 4

[PATCH v2 13/21] cxl: Export some symbols

2015-05-25 Thread Michael Neuling
Export some symbols which will soon be used elsewhere in this driver. Now they are global we rename them so to avoid collisions. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/cxl.h| 5 + drivers/misc/cxl/native.c | 10 +- 2 files changed, 10

[PATCH v2 14/21] cxl: Only check pid for userspace contexts

2015-05-25 Thread Michael Neuling
We only need to check the pid attached to this context for userspace contexts. Kernel contexts can skip this check. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/fault.c | 34 +++--- 1 file changed, 19 insertions(+), 15 deletions(-) diff

[PATCH v2 15/21] cxl: Split afu_register_irqs() function

2015-05-25 Thread Michael Neuling
Split the afu_register_irqs() function so that different parts can be useful elsewhere. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/cxl.h | 1 + drivers/misc/cxl/irq.c | 31 --- 2 files changed, 25 insertions(+), 7 deletions(-) diff

[PATCH v2 16/21] cxl: Configure PSL for kernel contexts and merge code

2015-05-25 Thread Michael Neuling
: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/native.c | 63 ++- 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c index 615ccbf..a4b40d7 100644 --- a/drivers/misc/cxl/native.c

[PATCH v2 17/21] cxl: Rework context lifetimes

2015-05-25 Thread Michael Neuling
context path which will become part of the stop context path. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/context.c | 5 +++-- drivers/misc/cxl/file.c| 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/cxl/context.c b/drivers/

[PATCH v2 18/21] cxl: Cleanup Makefile

2015-05-25 Thread Michael Neuling
Cleanup Makefile by fixing line wrapping. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/cxl/Makefile b/drivers/misc/cxl/Makefile index edb494d..f9f5514 100644 --- a/drivers

[PATCH v2 19/21] cxl: Move include file cxl.h -> cxl-base.h

2015-05-25 Thread Michael Neuling
for other driver to use Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- MAINTAINERS | 2 +- arch/powerpc/include/asm/pnv-pci.h| 2 +- arch/powerpc/mm/copro_fault.c | 2 +- arch/powerpc/mm/hash_native_64.c | 2 +- arch/powe

[PATCH v2 20/21] cxl: Export file ops for use by API

2015-05-25 Thread Michael Neuling
The cxl kernel API will allow drivers other than cxl to export a file descriptor which has the same userspace API. These file descriptors will be able to be used against libcxl. This exports those file ops for use by other drivers. Signed-off-by: Michael Neuling Acked-by: Ian Munsie

[PATCH v2 21/21] cxl: Add AFU virtual PHB and kernel API

2015-05-25 Thread Michael Neuling
x27;t sit in the PCI ops) using this API. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/Makefile | 1 + drivers/misc/cxl/api.c| 325 ++ drivers/misc/cxl/cxl.h| 5 + drivers/misc/cxl/pci.c| 17 ++- drivers/mis

Re: [PATCH 12/19] cxl: Export some symbols

2015-05-25 Thread Michael Neuling
On Thu, 2015-05-21 at 19:16 +1000, Ian Munsie wrote: > > +void assign_psn_space(struct cxl_context *ctx); > > Should we consider renaming this to cxl_assign_psn_space to namespace it > now that it's potentially callable from elsewhere in the kernel? > > > +int afu_check_and_enable(struct cxl_afu

[PATCH v3 00/24] cxl: Add AFU virtual PHB and in kernel API

2015-05-26 Thread Michael Neuling
This patch series adds the ability to present AFUs as PCI devices on a virtual PHB. It also adds an in kernel API (to the existing userspace API) so AFU drivers can be written as kernel drivers. This series is dependant on Daniel DMA set mask and MSI PCI controller ops patch series. v3: Cleans u

[PATCH v3 01/24] powerpc/copro: Fix faulting kernel segments

2015-05-26 Thread Michael Neuling
This fixes calculating the key bits (KP and KS) in the SLB VSID for kernel mappings. I'm not CCing this to stable as there are no uses of this currently. Signed-off-by: Michael Neuling --- arch/powerpc/mm/copro_fault.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --

[PATCH v3 02/24] powerpc/pci: Export symbols for CXL

2015-05-26 Thread Michael Neuling
From: Daniel Axtens Export pcibios_claim_one_bus, pcibios_scan_phb and pcibios_alloc_controller. These will be used by the CXL driver. Signed-off-by: Daniel Axtens --- arch/powerpc/kernel/pci-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/pci-common.c b/ar

[PATCH v3 03/24] powerpc/pci: Add release_device() hook to phb ops

2015-05-26 Thread Michael Neuling
Add release_device() hook to phb ops so we can clean up for specific phbs. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/pci-bridge.h | 2 ++ arch/powerpc/kernel/pci-hotplug.c | 5 + 2 files changed, 7 insertions(+) diff --git a/arch/powerpc/include/asm/pci-bridge.h b

[PATCH v3 04/24] powerpc: Add cxl context to device archdata

2015-05-26 Thread Michael Neuling
Add cxl context pointer to archdata. We'll want to create one of these for cxl PCI devices. Put them here until we can get a pci_dev specific private data. This location was suggested by benh. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/device.h | 3 +++ 1 file chang

[PATCH v3 05/24] powerpc/pci: Add shutdown hook to pci_controller_ops

2015-05-26 Thread Michael Neuling
ook to the pci_controller_ops and fixes the call site to use that instead. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/pci-bridge.h | 2 ++ arch/powerpc/platforms/powernv/pci-ioda.c | 8 arch/powerpc/platforms/powernv/pci.c | 9 +++-- arch/powerpc/platforms/powernv/pci.

[PATCH v3 06/24] powerpc/pci: Add pcibios_disable_device() hook

2015-05-26 Thread Michael Neuling
xists. Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/pci-bridge.h | 2 ++ arch/powerpc/kernel/pci-common.c | 8 2 files changed, 10 insertions(+) diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h index 3947749..b76cd56 100644 --- a

[PATCH v3 07/24] cxl: Document external user of existing API

2015-05-26 Thread Michael Neuling
Now that libcxl is public, let's document it. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- Documentation/ABI/testing/sysfs-class-cxl | 22 ++ Documentation/powerpc/cxl.txt | 4 2 files changed, 26 insertions(+) diff --git a/Documentatio

[PATCH v3 08/24] cxl: Add shutdown hook

2015-05-26 Thread Michael Neuling
Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index b80f867..a9c90d2 100644 --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -1135,4 +1135,5 @@ struct

[PATCH v3 09/24] cxl: Remove unnecessarily verbose print in cxl_remove()

2015-05-26 Thread Michael Neuling
Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index a9c90d2..8076aa3 100644 --- a/drivers/misc/cxl/pci.c +++ b/drivers/misc/cxl/pci.c @@ -1119,8 +1119,6

[PATCH v3 10/24] cxl: Re-order card init to check the VSEC earlier

2015-05-26 Thread Michael Neuling
assigning BARs or activating CXL. Also change the dev used in early prints as the adapter struct may not be inited at this earlier stage. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- drivers/misc/cxl/pci.c | 30 +++--- 1 file changed, 15 insertions(+), 15

[PATCH v3 11/24] cxl: Fix error path on probe

2015-05-26 Thread Michael Neuling
s cxl driver tries to bind to AFUs (on the vPHB) rather than the physical device. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c index 3f0caa2..0d429b0 100644 --- a/dr

[PATCH v3 12/24] cxl: Dump debug info on the AFU configuration record

2015-05-26 Thread Michael Neuling
Now that we parse the AFU Configuration record, dump some info on it when in debug mode. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/pci.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl

[PATCH v3 13/24] cxl: Add cookie parameter to afu_release_irqs()

2015-05-26 Thread Michael Neuling
Add cookie parameter to afu_release_irqs() so that we can pass in a different cookie than the context structure. This will be useful for other kernel drivers that want to call this but get their own cookie back in the interrupt handler. Update all existing call sites. Signed-off-by: Michael

[PATCH v3 14/24] cxl: Rework detach context functions

2015-05-26 Thread Michael Neuling
Rework __detach_context() and cxl_context_detach() so we can reuse them in the kernel API. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/context.c | 20 +--- drivers/misc/cxl/cxl.h | 1 + 2 files changed, 14 insertions(+), 7 deletions(-) diff

[PATCH v3 15/24] cxl: cxl_afu_reset() -> __cxl_afu_reset()

2015-05-26 Thread Michael Neuling
Rename cxl_afu_reset() to __cxl_afu_reset() to we can reuse this function name in the API. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/cxl.h| 2 +- drivers/misc/cxl/native.c | 8 drivers/misc/cxl/pci.c| 4 ++-- drivers/misc/cxl/sysfs.c | 2 +- 4

[PATCH v3 16/24] cxl: Export some symbols

2015-05-26 Thread Michael Neuling
Export some symbols which will soon be used elsewhere in this driver. Now they are global we rename them so to avoid collisions. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/cxl.h| 5 + drivers/misc/cxl/native.c | 10 +- 2 files changed, 10

[PATCH v3 17/24] cxl: Only check pid for userspace contexts

2015-05-26 Thread Michael Neuling
We only need to check the pid attached to this context for userspace contexts. Kernel contexts can skip this check. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/fault.c | 34 +++--- 1 file changed, 19 insertions(+), 15 deletions(-) diff

[PATCH v3 18/24] cxl: Split afu_register_irqs() function

2015-05-26 Thread Michael Neuling
Split the afu_register_irqs() function so that different parts can be useful elsewhere. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/cxl.h | 1 + drivers/misc/cxl/irq.c | 31 --- 2 files changed, 25 insertions(+), 7 deletions(-) diff

[PATCH v3 19/24] cxl: Configure PSL for kernel contexts and merge code

2015-05-26 Thread Michael Neuling
: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/native.c | 63 ++- 1 file changed, 35 insertions(+), 28 deletions(-) diff --git a/drivers/misc/cxl/native.c b/drivers/misc/cxl/native.c index 615ccbf..a4b40d7 100644 --- a/drivers/misc/cxl/native.c

[PATCH v3 20/24] cxl: Rework context lifetimes

2015-05-26 Thread Michael Neuling
context path which will become part of the stop context path. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/context.c | 5 +++-- drivers/misc/cxl/file.c| 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/misc/cxl/context.c b/drivers/

[PATCH v3 21/24] cxl: Cleanup Makefile

2015-05-26 Thread Michael Neuling
Cleanup Makefile by fixing line wrapping. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/misc/cxl/Makefile b/drivers/misc/cxl/Makefile index edb494d..f9f5514 100644 --- a/drivers

[PATCH v3 22/24] cxl: Move include file cxl.h -> cxl-base.h

2015-05-26 Thread Michael Neuling
for other driver to use Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- MAINTAINERS | 2 +- arch/powerpc/include/asm/pnv-pci.h| 2 +- arch/powerpc/mm/copro_fault.c | 2 +- arch/powerpc/mm/hash_native_64.c | 2 +- arch/powe

[PATCH v3 23/24] cxl: Export file ops for use by API

2015-05-26 Thread Michael Neuling
The cxl kernel API will allow drivers other than cxl to export a file descriptor which has the same userspace API. These file descriptors will be able to be used against libcxl. This exports those file ops for use by other drivers. Signed-off-by: Michael Neuling Acked-by: Ian Munsie

[PATCH v3 24/24] cxl: Add AFU virtual PHB and kernel API

2015-05-26 Thread Michael Neuling
x27;t sit in the PCI ops) using this API. Signed-off-by: Michael Neuling Acked-by: Ian Munsie --- drivers/misc/cxl/Makefile | 1 + drivers/misc/cxl/api.c| 331 ++ drivers/misc/cxl/cxl.h| 5 + drivers/misc/cxl/pci.c| 17 ++- drivers/mis

Re: [PATCH] cxl: Set up and enable PSL Timebase

2015-05-31 Thread Michael Neuling
On Thu, 2015-05-28 at 15:12 +0200, Philippe Bergheaud wrote: > This patch configures the PSL Timebase function and enables it, > after the CAPP has been initialized by OPAL. Failures are reported > and ignored. Needs an Signed-off-by. Comments inline. > --- > drivers/misc/cxl/cxl.h |5 +++

Re: [PATCH] cxl: Set up and enable PSL Timebase

2015-06-01 Thread Michael Neuling
On Mon, 2015-06-01 at 09:37 +0200, Philippe Bergheaud wrote: > Michael Neuling wrote: > > On Thu, 2015-05-28 at 15:12 +0200, Philippe Bergheaud wrote: > > > >>This patch configures the PSL Timebase function and enables it, > >>after the CAPP has been initializ

Re: [PATCH] cxl: Set up and enable PSL Timebase

2015-06-01 Thread Michael Neuling
On Mon, 2015-06-01 at 15:56 +0200, Philippe Bergheaud wrote: > Michael Neuling wrote: > > Please use negative error codes here. -EIO? > > And check it here. > > Mikey, > > I am reluctant to fail the entire CAPI init after a PSL timebase sync failure. > If we ign

[PATCH] cxl: Reset default context for vPHB on release

2015-06-04 Thread Michael Neuling
When we release the device, we should also invalidate the default context. With this cxl_get_context() will return null after removal. Signed-off-by: Michael Neuling --- drivers/misc/cxl/vphb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/cxl/vphb.c b/drivers/misc/cxl/vphb.c

deb-pkg: Add support for powerpc little endian

2014-09-04 Thread Michael Neuling
The Debian powerpc little endian architecture is called ppc64le. This is the default architecture used by Ubuntu for powerpc. The below checks the kernel config to see if we are compiling little endian and sets the Debian arch appropriately. Signed-off-by: Michael Neuling diff --git a/scripts

[PATCH v2] deb-pkg: Add support for powerpc little endian

2014-09-05 Thread Michael Neuling
On Fri, 2014-09-05 at 09:13 +0200, Gabriel Paubert wrote: > On Fri, Sep 05, 2014 at 03:28:47PM +1000, Michael Neuling wrote: > > The Debian powerpc little endian architecture is called ppc64le. This > > Huh? ppc64le or ppc64el? ppc64el. Commit message is wrong. Fixed below

Re: [PATCH 1/4] powerpc/powernv: Add OPAL check token call

2014-09-14 Thread Michael Neuling
On Mon, 2014-09-15 at 13:10 +1000, Michael Ellerman wrote: > On Tue, 2014-08-19 at 14:47 +1000, Michael Neuling wrote: > > Currently there is no way to generically check if an OPAL call exists or not > > from the host kernel. > > > > This adds an OPAL call opal_check

[PATCH 0/15] POWER8 Coherent Accelerator device driver

2014-09-18 Thread Michael Neuling
This add support for the Coherent Accelerator (cxl) attached to POWER8 processors. This coherent accelerator interface is designed to allow the coherent connection of FPGA based accelerators (and other devices) to a POWER systems. IBM refers to this as the Coherent Accelerator Processor Interface

[PATCH 01/15] powerpc/cell: Move spu_handle_mm_fault() out of cell platform

2014-09-18 Thread Michael Neuling
-by: Michael Neuling --- arch/powerpc/include/asm/copro.h | 18 ++ arch/powerpc/include/asm/spu.h | 5 ++--- arch/powerpc/mm/Makefile | 1 + .../{platforms/cell/spu_fault.c => mm/copro_fault.c} |

[PATCH 02/15] powerpc/cell: Move data segment faulting code out of cell platform

2014-09-18 Thread Michael Neuling
: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/mmu-hash64.h | 2 ++ arch/powerpc/mm/copro_fault.c | 48 ++ arch/powerpc/mm/slb.c | 3 --- arch/powerpc/platforms/cell/spu_base.c | 41

[PATCH 03/15] powerpc/msi: Improve IRQ bitmap allocator

2014-09-18 Thread Michael Neuling
igned-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/sysdev/msi_bitmap.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/sysdev/msi_bitmap.c b/arch/powerpc/sysdev/msi_bitmap.c index 2ff6302..e001559 100644 --- a/arch/po

[PATCH 04/15] powerpc/mm: Export mmu_kernel_ssize and mmu_linear_psize

2014-09-18 Thread Michael Neuling
From: Ian Munsie Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/mm/hash_utils_64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index daee7f4..0f73367 100644 --- a/arch/powerpc/mm

[PATCH 05/15] powerpc/powernv: Split out set MSI IRQ chip code

2014-09-18 Thread Michael Neuling
From: Ian Munsie Some of the MSI IRQ code in pnv_pci_ioda_msi_setup() is generically useful so split it out. This will be used by some of the cxl PCIe code later. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/platforms/powernv/pci-ioda.c | 43

[PATCH 06/15] cxl: Add new header for call backs and structs

2014-09-18 Thread Michael Neuling
From: Ian Munsie This new header add defines for callbacks and structs needed by the rest of the kernel to hook into the cxl infrastructure. Empty functions are provided when CONFIG CXL_BASE is not enabled. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- include/misc/cxl.h | 34

[PATCH 07/15] powerpc/powerpc: Add new PCIe functions for allocating cxl interrupts

2014-09-18 Thread Michael Neuling
From: Ian Munsie This adds a number of functions for allocating IRQs under powernv PCIe for cxl. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/pnv-pci.h| 27 + arch/powerpc/platforms/powernv/pci-ioda.c | 186

[PATCH 08/15] powerpc/mm: Add new hash_page_mm()

2014-09-18 Thread Michael Neuling
be careful here as the current hash_page() assumes current in a few places. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/mmu-hash64.h | 1 + arch/powerpc/mm/hash_utils_64.c | 20 +--- 2 files changed, 14 insertions(+), 7 deletions

[PATCH 09/15] powerpc/opal: Add PHB to cxl mode call

2014-09-18 Thread Michael Neuling
From: Ian Munsie This adds the OPAL call to change a PHB into cxl mode. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/include/asm/opal.h| 2 ++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + 2 files changed, 3 insertions(+) diff --git a

[PATCH 10/15] powerpc/mm: Add hooks for cxl

2014-09-18 Thread Michael Neuling
igned-off-by: Michael Neuling --- arch/powerpc/mm/hash_native_64.c | 6 +- arch/powerpc/mm/hash_utils_64.c | 3 +++ arch/powerpc/mm/slice.c | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/mm/hash_native_64.c b/arch/powerpc/mm/hash_native_64.c

[PATCH 11/15] cxl: Add base builtin support

2014-09-18 Thread Michael Neuling
cxl contexts are currently in use. This is used by the tlbie() to determine if it can do local TLB invalidations or not. This also adds get/put calls for the cxl driver module to refcount the active cxl contexts. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- arch/powerpc/mm

[PATCH 13/15] cxl: Userspace header file.

2014-09-18 Thread Michael Neuling
From: Ian Munsie This defines structs and magic numbers required for userspace to interact with the kernel cxl driver via /dev/cxl/afu0.0. It adds this header file Kbuild so it's exported when doing make headers_installs. Signed-off-by: Ian Munsie Signed-off-by: Michael Neuling --- in

  1   2   3   4   5   6   7   8   9   10   >