Re: [PATCH 2/2] mm: THP page cache support for ppc64

2016-11-11 Thread Hugh Dickins
On Fri, 11 Nov 2016, Kirill A. Shutemov wrote: > On Fri, Nov 11, 2016 at 05:42:11PM +0530, Aneesh Kumar K.V wrote: > > > > doing this in do_set_pmd keeps this closer to where we set the pmd. Any > > reason you thing we should move it higher up the stack. We already do > > pte_alloc() at the same

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-11 Thread Christian Lamparter
On Friday, November 11, 2016 2:20:42 PM CET John Youn wrote: > On 11/11/2016 2:05 PM, Christian Lamparter wrote: > > On Friday, November 11, 2016 1:22:16 PM CET John Youn wrote: > >> On 11/11/2016 12:59 PM, Christian Lamparter wrote: > >>> This patch adds support for the "amcc,usb-otg" device >

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-11 Thread John Youn
On 11/11/2016 2:05 PM, Christian Lamparter wrote: > Hello, > > On Friday, November 11, 2016 1:22:16 PM CET John Youn wrote: >> On 11/11/2016 12:59 PM, Christian Lamparter wrote: >>> This patch adds support for the "amcc,usb-otg" device >>> which is found in the PowerPC Canyonlands' dts. >>> >>>

Re: [PATCH] of/irq: improve error message on irq discovery process failure

2016-11-11 Thread Guilherme G. Piccoli
On 11/11/2016 05:12 PM, Benjamin Herrenschmidt wrote: > On Fri, 2016-11-11 at 16:32 +, Mark Rutland wrote: >> On Fri, Nov 11, 2016 at 08:30:43AM +1100, Benjamin Herrenschmidt >> wrote: >>> >>> On Wed, 2016-11-09 at 19:04 +, Mark Rutland wrote: If we don't have an

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-11 Thread Christian Lamparter
Hello, On Friday, November 11, 2016 1:22:16 PM CET John Youn wrote: > On 11/11/2016 12:59 PM, Christian Lamparter wrote: > > This patch adds support for the "amcc,usb-otg" device > > which is found in the PowerPC Canyonlands' dts. > > > > The device definition was added by: > > commit

Re: [PATCH -next] PCI: layerscape: Remove redundant dev_err call in ls_pcie_probe()

2016-11-11 Thread Bjorn Helgaas
On Mon, Oct 17, 2016 at 02:55:40PM +, Wei Yongjun wrote: > From: Wei Yongjun > > There is a error message within devm_ioremap_resource > already, so remove the dev_err call to avoid redundant > error message. > > Signed-off-by: Wei Yongjun

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-11 Thread John Youn
On 11/11/2016 12:59 PM, Christian Lamparter wrote: > This patch adds support for the "amcc,usb-otg" device > which is found in the PowerPC Canyonlands' dts. > > The device definition was added by: > commit c89b3458d8cc ("powerpc/44x: Add USB DWC DTS entry to Canyonlands > board")' > but without

[PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-11 Thread Christian Lamparter
This patch adds support for the "amcc,usb-otg" device which is found in the PowerPC Canyonlands' dts. The device definition was added by: commit c89b3458d8cc ("powerpc/44x: Add USB DWC DTS entry to Canyonlands board")' but without any driver support as the dwc2 driver wasn't available at that

[PATCH 2/2] usb: dwc2: fixes host_dma logic

2016-11-11 Thread Christian Lamparter
This patch moves the the host_dma initialization before dwc2_set_param_dma_desc_enable and dwc2_set_param_dma_desc_fs_enable. The reason being that both function need it. Fixes: 1205489cee75bf39 ("usb: dwc2: Get host DMA device properties") Cc: John Youn Cc: Felipe Balbi

Re: [PATCH] of/irq: improve error message on irq discovery process failure

2016-11-11 Thread Benjamin Herrenschmidt
On Fri, 2016-11-11 at 16:32 +, Mark Rutland wrote: > On Fri, Nov 11, 2016 at 08:30:43AM +1100, Benjamin Herrenschmidt > wrote: > > > > On Wed, 2016-11-09 at 19:04 +, Mark Rutland wrote: > > > > > > > > > If we don't have an interrupt-map on a PCI controller, why don't > > > we > > >

Re: [PATCH net-next] ibmveth: v1 calculate correct gso_size and set gso_type

2016-11-11 Thread Brian King
On 10/27/2016 10:26 AM, Eric Dumazet wrote: > On Wed, 2016-10-26 at 11:09 +1100, Jon Maxwell wrote: >> We recently encountered a bug where a few customers using ibmveth on the >> same LPAR hit an issue where a TCP session hung when large receive was >> enabled. Closer analysis revealed that the

[RFC PATCH 11/11] VAS: Define/use interface to setup irq handling.

2016-11-11 Thread Sukadev Bhattiprolu
When VAS hardware encounters an address translation error it will post the failing CRB to a fault window and issue an interrupt to the kernel. Use OPAL/XIVE to register a IRQ trigger port for each send window and setup IRQ handling in the kernel for this IRQ. (The existing init_winctx_regs() call

[RFC PATCH 10/11] VAS: Create a thread to monitor fault-window

2016-11-11 Thread Sukadev Bhattiprolu
The VAS hardware requires kernel to setup a "fault window" to which the hardware will paste a CRB in case of address translation faults. Create a fault window (which is basically a special receive window) and a kernel thread that processes the CRBs that arrive at the fault window. A follow-on

[RFC PATCH 09/11] VAS: Define/use vas_print_regs()

2016-11-11 Thread Sukadev Bhattiprolu
Define an interface to read and print the VAS error/debug registers. Currently this interface only prints the Fault Isolation Registers (FIR). It needs to make OPAL call(s) to read the registers since they are only available via the SCOM interface. Signed-off-by: Sukadev Bhattiprolu

[RFC PATCH 08/11] VAS: Define vas_copy_crb() and vas_paste_crb()

2016-11-11 Thread Sukadev Bhattiprolu
Define interfaces (wrappers) to the 'copy' and 'paste' instructions (which are new in PowerISA 3.0). These are intended to be used to by NX driver(s) to submit Coprocessor Request Blocks (CRBs) to the NX hardware engines. Signed-off-by: Sukadev Bhattiprolu ---

[RFC PATCH 07/11] VAS: Define vas_tx_win_open()

2016-11-11 Thread Sukadev Bhattiprolu
Define an interface to open a VAS send window. This interface is intended to be used the Nest Accelerator (NX) driver(s) to open a send window and use it to submit compression/encryption requests to a VAS receive window. The receive window, identified by the [node, chip, cop] parameters, must

[RFC PATCH 03/11] VAS: Define helpers for access MMIO regions

2016-11-11 Thread Sukadev Bhattiprolu
Define some helper functions to access the MMIO regions. We use these in a follow-on patches to read/write VAS hardware registers. These helpers are also used to later issue 'paste' instructions to submit requests to the NX hardware engines. Signed-off-by: Sukadev Bhattiprolu

[RFC PATCH 02/11] VAS: Define vas_dev_init() and vas_dev_exit()

2016-11-11 Thread Sukadev Bhattiprolu
Define functions to initialize/terminate the VAS device driver. These functions will configure the hardware in a follow on patch. Signed-off-by: Sukadev Bhattiprolu --- drivers/misc/Kconfig| 1 + drivers/misc/Makefile | 1 +

[RFC PATCH 06/11] VAS: Define vas_rx_win_open() and vas_win_close()

2016-11-11 Thread Sukadev Bhattiprolu
Define interfaces to open/close a VAS receive window. This interface is intended to be used by the Nest Accelerator (NX) driver(s) to setup receive windows for one or more NX engines (which implement compression or encryption algorithms in the hardware). A follow-on patch will provide an

[RFC PATCH 01/11] VAS: Define macros and register fields

2016-11-11 Thread Sukadev Bhattiprolu
Define macros for the VAS hardware registers and bit-fields as well as couple of data structures needed by the VAS driver. Signed-off-by: Sukadev Bhattiprolu --- MAINTAINERS | 6 + arch/powerpc/include/asm/vas.h | 40 +

[RFC PATCH 05/11] VAS: Define helpers to alloc/free windows

2016-11-11 Thread Sukadev Bhattiprolu
Define helpers to allocate/free VAS window objects. These will be used in follow-on patches when opening/closing windows. Signed-off-by: Sukadev Bhattiprolu --- drivers/misc/vas/vas-window.c | 74 ++- 1 file changed, 73

[RFC PATCH 04/11] VAS: Define helpers to init window context

2016-11-11 Thread Sukadev Bhattiprolu
Define helpers to initialize window context registers of the VAS hardware. These will be used in follow-on patches when opening/closing VAS windows. Signed-off-by: Sukadev Bhattiprolu --- drivers/misc/vas/vas-internal.h | 55 +++ drivers/misc/vas/vas-window.c

[RFC PATCH 00/11] Enable VAS

2016-11-11 Thread Sukadev Bhattiprolu
Power9 introduces a hardware subsystem referred to as the Virtual Accelerator Switchboard (VAS). VAS allows kernel subsystems and user space processes to directly access the Nest Accelerator (NX) engines which implement compression and encryption algorithms in the hardware. NX has been in Power

Re: [PATCH] of/irq: improve error message on irq discovery process failure

2016-11-11 Thread Mark Rutland
On Fri, Nov 11, 2016 at 08:30:43AM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2016-11-09 at 19:04 +, Mark Rutland wrote: > > > > If we don't have an interrupt-map on a PCI controller, why don't we > > instead log a message regarding that being missing, and give up > > early? > > Why ?

Re: [PATCH 2/2] mm: THP page cache support for ppc64

2016-11-11 Thread Kirill A. Shutemov
On Fri, Nov 11, 2016 at 05:42:11PM +0530, Aneesh Kumar K.V wrote: > "Kirill A. Shutemov" writes: > > > On Mon, Nov 07, 2016 at 02:04:41PM +0530, Aneesh Kumar K.V wrote: > >> @@ -2953,6 +2966,13 @@ static int do_set_pmd(struct fault_env *fe, struct > >> page *page) > >>

[PATCH 3/3] powerpc/fsl/dts: add FMan node for t1042d4rdb

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1042d4rdb.dts | 47 1 file changed, 47 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1042d4rdb.dts b/arch/powerpc/boot/dts/fsl/t1042d4rdb.dts index 2a5a90d..8c0c318

[PATCH 2/3] powerpc/fsl/dts: add QMan and BMan portal nodes on t1024

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1024qds.dts | 27 +++ arch/powerpc/boot/dts/fsl/t1024rdb.dts | 31 +++ 2 files changed, 58 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1024qds.dts

[PATCH 1/3] powerpc/fsl/dts: add QMan and BMan portal nodes on t1023rdb

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1023rdb.dts | 27 arch/powerpc/boot/dts/fsl/t1023si-post.dtsi | 103 2 files changed, 130 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1023rdb.dts

[PATCH 3/3] powerpc/fsl/dts: add FMan node for t1042d4rdb

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1042d4rdb.dts | 47 1 file changed, 47 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1042d4rdb.dts b/arch/powerpc/boot/dts/fsl/t1042d4rdb.dts index 2a5a90d..8c0c318

[PATCH 2/3] powerpc/fsl/dts: add QMan and BMan portal nodes on t1024

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1024qds.dts | 27 +++ arch/powerpc/boot/dts/fsl/t1024rdb.dts | 31 +++ 2 files changed, 58 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1024qds.dts

[PATCH 1/3] powerpc/fsl/dts: add QMan and BMan portal nodes on t1023rdb

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/boot/dts/fsl/t1023rdb.dts | 27 arch/powerpc/boot/dts/fsl/t1023si-post.dtsi | 103 2 files changed, 130 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1023rdb.dts

[PATCH] crypto: nx - drop duplicate header types.h

2016-11-11 Thread Geliang Tang
Drop duplicate header types.h from nx.c. Signed-off-by: Geliang Tang --- drivers/crypto/nx/nx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/nx/nx.c b/drivers/crypto/nx/nx.c index 42f0f22..036057a 100644 --- a/drivers/crypto/nx/nx.c +++

[PATCH kernel v5 6/6] powerpc/mm/iommu, vfio/spapr: Put pages on VFIO container shutdown

2016-11-11 Thread Alexey Kardashevskiy
At the moment the userspace tool is expected to request pinning of the entire guest RAM when VFIO IOMMU SPAPR v2 driver is present. When the userspace process finishes, all the pinned pages need to be put; this is done as a part of the userspace memory context (MM) destruction which happens on the

[PATCH kernel v5 5/6] vfio/spapr: Reference mm in tce_container

2016-11-11 Thread Alexey Kardashevskiy
In some situations the userspace memory context may live longer than the userspace process itself so if we need to do proper memory context cleanup, we better have tce_container take a reference to mm_struct and use it later when the process is gone (@current or @current->mm is NULL). This

[PATCH kernel v5 4/6] vfio/spapr: Postpone default window creation

2016-11-11 Thread Alexey Kardashevskiy
As mentioned in the previous patch, we are going to allow the userspace to configure container in one memory context and pass container fd to another so we are postponing memory allocations accounted against the locked memory limit. The previous patch took care of it_userspace. At the moment we

[PATCH kernel v5 2/6] powerpc/iommu: Stop using @current in mm_iommu_xxx

2016-11-11 Thread Alexey Kardashevskiy
This changes mm_iommu_xxx helpers to take mm_struct as a parameter instead of getting it from @current which in some situations may not have a valid reference to mm. This changes helpers to receive @mm and moves all references to @current to the caller, including checks for !current and

[PATCH kernel v5 1/6] powerpc/iommu: Pass mm_struct to init/cleanup helpers

2016-11-11 Thread Alexey Kardashevskiy
We are going to get rid of @current references in mmu_context_boos3s64.c and cache mm_struct in the VFIO container. Since mm_context_t does not have reference counting, we will be using mm_struct which does have the reference counter. This changes mm_iommu_init/mm_iommu_cleanup to receive

[PATCH kernel v5 3/6] vfio/spapr: Postpone allocation of userspace version of TCE table

2016-11-11 Thread Alexey Kardashevskiy
The iommu_table struct manages a hardware TCE table and a vmalloc'd table with corresponding userspace addresses. Both are allocated when the default DMA window is created and this happens when the very first group is attached to a container. As we are going to allow the userspace to configure

[PATCH kernel v5 0/6] powerpc/spapr/vfio: Put pages on VFIO container shutdown

2016-11-11 Thread Alexey Kardashevskiy
These patches are to fix a bug when pages stay pinned hours after QEMU which requested pinning exited. The only change to v4 is it is now 6 patches and mm is referenced rather later than sooner. Please comment. Thanks. Alexey Kardashevskiy (6): powerpc/iommu: Pass mm_struct to init/cleanup

Re: [PATCH] powerpc/64: Simplify adaptation to new ISA v3.00 HPTE format

2016-11-11 Thread Aneesh Kumar K.V
Paul Mackerras writes: > This changes the way that we support the new ISA v3.00 HPTE format. > Instead of adapting everything that uses HPTE values to handle either > the old format or the new format, depending on which CPU we are on, > we now convert explicitly between old

Re: [PATCH 2/2] mm: THP page cache support for ppc64

2016-11-11 Thread Aneesh Kumar K.V
"Kirill A. Shutemov" writes: > On Mon, Nov 07, 2016 at 02:04:41PM +0530, Aneesh Kumar K.V wrote: >> @@ -2953,6 +2966,13 @@ static int do_set_pmd(struct fault_env *fe, struct >> page *page) >> ret = VM_FAULT_FALLBACK; >> page = compound_head(page); >> >> +/*

Re: [PATCH 13/38] powerpc: Put exception configuration in a common place

2016-11-11 Thread Benjamin Herrenschmidt
On Fri, 2016-11-11 at 21:06 +1100, Anton Blanchard wrote: > It looks like we only set LPCR_AIL_3 on the boot CPU after this change, > is that expected? Before that we did it in cpu_ready_for_interrupts() > which is called for the primary and all secondary CPUs. That would be a mistake... I

Re: [PATCH 2/2] mm: THP page cache support for ppc64

2016-11-11 Thread Kirill A. Shutemov
On Mon, Nov 07, 2016 at 02:04:41PM +0530, Aneesh Kumar K.V wrote: > @@ -2953,6 +2966,13 @@ static int do_set_pmd(struct fault_env *fe, struct > page *page) > ret = VM_FAULT_FALLBACK; > page = compound_head(page); > > + /* > + * Archs like ppc64 need additonal space to store

Re: [PATCH 13/38] powerpc: Put exception configuration in a common place

2016-11-11 Thread Anton Blanchard
Hi Ben, > The various calls to establish exception endianness and AIL are > now done from a single point using already established CPU and FW > feature bits to decide what to do. > > Signed-off-by: Benjamin Herrenschmidt ... +static void configure_exceptions(void) +{

Re: [PATCH V2] mm: move vma_is_anonymous check within pmd_move_must_withdraw

2016-11-11 Thread Kirill A. Shutemov
On Mon, Nov 07, 2016 at 08:16:39PM +0530, Aneesh Kumar K.V wrote: > Architectures like ppc64 want to use page table deposit/withraw > even with huge pmd dax entries. Allow arch to override the > vma_is_anonymous check by moving that to pmd_move_must_withdraw > function > > Signed-off-by: Aneesh

[PATCH net-next v7 10/10] arch/powerpc: Enable dpaa_eth

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index 9ad9bc0..2fe76f5 100644 --- a/arch/powerpc/configs/dpaa.config +++

[PATCH net-next v7 09/10] arch/powerpc: Enable FSL_FMAN

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index f124ee1..9ad9bc0 100644 --- a/arch/powerpc/configs/dpaa.config +++

[PATCH net-next v7 07/10] dpaa_eth: add trace points

2016-11-11 Thread Madalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 15 +++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 1

[PATCH net-next v7 08/10] arch/powerpc: Enable FSL_PAMU

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index efa99c0..f124ee1 100644 --- a/arch/powerpc/configs/dpaa.config +++

[PATCH net-next v7 06/10] dpaa_eth: add sysfs exports

2016-11-11 Thread Madalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 4 +

[PATCH net-next v7 05/10] dpaa_eth: add ethtool statistics

2016-11-11 Thread Madalin Bucur
Add a series of counters to be exported through ethtool: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion

[PATCH net-next v7 04/10] dpaa_eth: add ethtool functionality

2016-11-11 Thread Madalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 +

[PATCH net-next v7 03/10] dpaa_eth: add option to use one buffer pool set

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig| 9 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 23 +++ 2 files changed, 32 insertions(+) diff --git a/drivers/net/ethernet/freescale/dpaa/Kconfig

[PATCH net-next v7 00/10] dpaa_eth: Add the QorIQ DPAA Ethernet driver

2016-11-11 Thread Madalin Bucur
This patch series adds the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). This version includes changes following the feedback received on previous versions from Eric Dumazet, Bob Cochran, Joe Perches, Paul Bolle, Joakim Tjernlund, Scott Wood, David Miller -

[PATCH net-next v7 02/10] dpaa_eth: add support for DPAA Ethernet

2016-11-11 Thread Madalin Bucur
This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur ---

[PATCH net-next v7 01/10] devres: add devm_alloc_percpu()

2016-11-11 Thread Madalin Bucur
Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur --- Documentation/driver-model/devres.txt | 4 +++ drivers/base/devres.c |

Fwd: [PATCH v2] Make system_reset_pSeries relocatable

2016-11-11 Thread Balbir Singh
A variant of this went upstream (http://patchwork.ozlabs.org/patch/681567/) and with a cc to stable. This bit should get backported to stable. Forwarded Message Subject: [PATCH v2] Make system_reset_pSeries relocatable Date: Thu, 28 Jul 2016 12:09:03 +1000 From: Balbir Singh