[PATCH] raid6/altivec: adding vpermxor implementation for raid6 Q syndrome

2017-03-29 Thread Matt Brown
The raid6 Q syndrome check has been optimised using the vpermxor instruction. This instruction was made available with POWER8, ISA version 2.07. It allows for both vperm and vxor instructions to be done in a single instruction. This has been tested for correctness on a ppc64le vm with a basic

Re: [PATCH V3 0/7] cxl: Add support for Coherent Accelerator Interface Architecture 2.0

2017-03-29 Thread Andrew Donnellan
On 29/03/17 02:14, Christophe Lombard wrote: This series adds support for a cxl card which supports the Coherent Accelerator Interface Architecture 2.0. It requires IBM Power9 system and the Power Service Layer, version 9. The PSL provides the address translation and system memory cache for

[PATCH] powerpc/prom: Increase RMA size to 512MB

2017-03-29 Thread Sukadev Bhattiprolu
>From 3ae8d1ed31b01b92b172fe20e4560cfbfab135ec Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Mar 2017 19:43:14 -0400 Subject: [PATCH] powerpc/prom: Increase RMA size to 512MB When booting very large systems with a large initrd, we run out of space for

Re: [PATCH V5 16/17] mm: Let arch choose the initial value of task size

2017-03-29 Thread Anshuman Khandual
On 03/22/2017 09:07 AM, Aneesh Kumar K.V wrote: > As we start supporting larger address space (>128TB), we want to give > architecture a control on max task size of an application which is different > from the TASK_SIZE. For ex: ppc64 needs to track the base page size of a > segment > and it is

Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-29 Thread Tyrel Datwyler
On 03/29/2017 05:17 PM, Michael Ellerman wrote: > Michal Suchanek writes: > >> While reviewing commit 11c6e16ee13a ("crypto: vmx - Adding asm >> subroutines for XTS") which adds the OpenSSL license header to >> drivers/crypto/vmx/aesp8-ppc.pl licensing of this driver came into

Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-29 Thread Michael Ellerman
Michal Suchanek writes: > While reviewing commit 11c6e16ee13a ("crypto: vmx - Adding asm > subroutines for XTS") which adds the OpenSSL license header to > drivers/crypto/vmx/aesp8-ppc.pl licensing of this driver came into > qestion. The whole license reads: > > # Licensed

Re: [PATCH 2/2] powerpc/book3s: Display task info for MCE error in user mode.

2017-03-29 Thread Nicholas Piggin
On Tue, 28 Mar 2017 19:15:28 +0530 Mahesh J Salgaonkar wrote: > From: Mahesh Salgaonkar > > For MCE that hit while in use mode MSR(HV=1,PR=1), print the task info on the > console MCE error log. This will help to identify application that

[v8] powerpc/powernv: add 'firmware/exports' attributes to sysfs

2017-03-29 Thread Matt Brown
The HDAT data area is consumed by skiboot and turned into a device-tree. In some cases we would like to look directly at the HDAT. This is not possible through /dev/mem as it is reserved memory which is stopped by the /dev/mem filter. There are also other memory areas which are reserved but could

Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-29 Thread Tyrel Datwyler
On 03/29/2017 08:13 AM, Michal Suchánek wrote: > On Wed, 29 Mar 2017 16:51:35 +0200 > Greg Kroah-Hartman wrote: > >> On Wed, Mar 29, 2017 at 02:56:39PM +0200, Michal Suchanek wrote: >>> While reviewing commit 11c6e16ee13a ("crypto: vmx - Adding asm >>> subroutines for

Re: [PATCH] macintosh: Do not arbitrarily limit architecture for macintosh drivers.

2017-03-29 Thread Benjamin Herrenschmidt
On Wed, 2017-03-29 at 23:29 +0200, Arnd Bergmann wrote: > Why not move the mac_hid module to drivers/input instead so > it no longer depends on MACINTOSH_DRIVERS? > > For the other mac drivers, it may be helpful to to add '|| > COMPILE_TEST' > to the dependency line here to allow building them on

Re: [PATCH] macintosh: Do not arbitrarily limit architecture for macintosh drivers.

2017-03-29 Thread Arnd Bergmann
On Wed, Mar 29, 2017 at 3:33 PM, Michal Suchanek wrote: > The mac mouse emulation is neat solution for notebooks with suboptimal > touchpads. For historical reason this is available on x86 but not arm or > mips so remove the limitation. > > The other more specific drivers

[RFC PATCH 5/5] powerpc: Add HAVE_GENERIC_DMA_COHERENT options to Kconfig

2017-03-29 Thread Roy Pledge
Enable HAVE_GENERIC_DMA_COHERENT to enable use of shared-dma-pool reserved memory mappings Signed-off-by: Roy Pledge --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 186e060..0e80e8b 100644 ---

[RFC PATCH 4/5] dt-bindings: soc/fsl: Update reserved memory binding for QBMan

2017-03-29 Thread Roy Pledge
Updates the QMan and BMan device tree bindings for reserved memory nodes. This makes the reserved memory allocation compatiable with the shared-dma-pool usage. Signed-off-by: Roy Pledge --- Documentation/devicetree/bindings/soc/fsl/bman.txt | 10 +-

[RFC PATCH 3/5] dts: arch/powerpc: Update Freescale DTS for QBMan memory allocations

2017-03-29 Thread Roy Pledge
QBMan now uses the shared-dma-pool mechansim to manage early memory reservations. Signed-off-by: Roy Pledge --- arch/powerpc/boot/dts/fsl/b4qds.dtsi| 6 ++ arch/powerpc/boot/dts/fsl/b4si-post.dtsi| 15 ---

[RFC PATCH 2/5] soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations

2017-03-29 Thread Roy Pledge
Use the shared-memory-pool mechanism for frame queue descriptor and packed frame descriptor record area allocations. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/qman_ccsr.c | 119 +- drivers/soc/fsl/qbman/qman_priv.h | 4 +-

[RFC PATCH 1/5] soc/fsl/qbman: Use shared-dma-pool for BMan private memory allocations

2017-03-29 Thread Roy Pledge
Use the shared-memory-pool mechanism for free buffer proxy record area allocation. Signed-off-by: Roy Pledge --- drivers/soc/fsl/qbman/bman_ccsr.c | 27 ++- drivers/soc/fsl/qbman/bman_priv.h | 3 +++ 2 files changed, 29 insertions(+), 1 deletion(-)

[RFC PATCH 0/5] soc/fsl/qbman: Rework private memory allocations

2017-03-29 Thread Roy Pledge
The QBMan device requires three separate memory areas that are only accessed by the device. These areas are reserved using the OF reserved memory mechanism and associated to the device in the device trees memory-region attribute. However in order to be allocatable using the dma_alloc() APIs the

[PATCH] powerpc/mm: Add missing global TLBI if cxl is active

2017-03-29 Thread Frederic Barrat
Commit 4c6d9acce1f4 ("powerpc/mm: Add hooks for cxl") converted local TLBIs to global if the cxl driver is active. It is necessary because the CAPP snoops invalidations to forward them to the PSL on the cxl adapter. However one path was apparently forgotten. native_flush_hash_range() still sends

Re: [PATCH V3 2/7] cxl: Remove unused values in bare-metal environment.

2017-03-29 Thread christophe lombard
Le 29/03/2017 à 02:21, Andrew Donnellan a écrit : On 29/03/17 02:14, Christophe Lombard wrote: The two fields pid and tid of the structure cxl_irq_info are only used in the guest environment. To avoid confusion, it's not necessary to fill the fields in the bare-metal environment. These two

Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-29 Thread Michal Suchánek
On Wed, 29 Mar 2017 16:51:35 +0200 Greg Kroah-Hartman wrote: > On Wed, Mar 29, 2017 at 02:56:39PM +0200, Michal Suchanek wrote: > > While reviewing commit 11c6e16ee13a ("crypto: vmx - Adding asm > > subroutines for XTS") which adds the OpenSSL license header to > >

Re: [PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-29 Thread Greg Kroah-Hartman
On Wed, Mar 29, 2017 at 02:56:39PM +0200, Michal Suchanek wrote: > While reviewing commit 11c6e16ee13a ("crypto: vmx - Adding asm > subroutines for XTS") which adds the OpenSSL license header to > drivers/crypto/vmx/aesp8-ppc.pl licensing of this driver came into > qestion. The whole license

[PATCH] macintosh: Do not arbitrarily limit architecture for macintosh drivers.

2017-03-29 Thread Michal Suchanek
The mac mouse emulation is neat solution for notebooks with suboptimal touchpads. For historical reason this is available on x86 but not arm or mips so remove the limitation. The other more specific drivers depend on various platform drivers anyway so users will not select those by accident.

[PATCH] crypto: vmx: Remove dubiously licensed crypto code

2017-03-29 Thread Michal Suchanek
While reviewing commit 11c6e16ee13a ("crypto: vmx - Adding asm subroutines for XTS") which adds the OpenSSL license header to drivers/crypto/vmx/aesp8-ppc.pl licensing of this driver came into qestion. The whole license reads: # Licensed under the OpenSSL license (the "License"). You may not

Re: tty/hvc: possible irq lock inversion dependency detected

2017-03-29 Thread Michael Ellerman
Denis Kirjanov writes: > Hi, > > Ok, now we have a new locking issue with interrupts which I found on my P8 > box. > I haven't found where we take the console_lock, only in hvc_remove. > > BTW, Ben, looks like it's a bug in hvc_remove: > we take spin_lock and then

Applied "ASoC: imx-wm8962: Let codec driver enable/disable its MCLK" to the asoc tree

2017-03-29 Thread Mark Brown
The patch ASoC: imx-wm8962: Let codec driver enable/disable its MCLK has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "ASoC: imx-wm8962: Fix codec_clk cleanup" to the asoc tree

2017-03-29 Thread Mark Brown
The patch ASoC: imx-wm8962: Fix codec_clk cleanup has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus

Re: [alsa-devel] [PATCH v3 2/2] ASoC: imx-wm8962: Fix codec_clk cleanup

2017-03-29 Thread Mark Brown
On Wed, Mar 29, 2017 at 02:38:23PM +0300, Daniel Baluta wrote: > If I read the code correctly, both machine and codec driver are doing: > * codec_clk = clk_get(...) > I guess that the codec driver is the first to be loaded and it will call: > * __clk_create_clk > which will do the allocation.

Re: [alsa-devel] [PATCH v3 2/2] ASoC: imx-wm8962: Fix codec_clk cleanup

2017-03-29 Thread Daniel Baluta
On Tue, Mar 28, 2017 at 6:24 PM, Mark Brown wrote: > On Tue, Mar 28, 2017 at 12:53:06PM +0100, Charles Keepax wrote: >> On Tue, Mar 28, 2017 at 01:47:04PM +0300, Daniel Baluta wrote: > >> > >> - codec_clk = devm_clk_get(_dev->dev, NULL); >> > >> + codec_clk =

Re: [PATCH 1/2] powerpc: string: implement optimized memset variants

2017-03-29 Thread Michael Ellerman
"Naveen N. Rao" writes: > I also tested zram today with the command shared by Wilcox: > > without patch: 1.493782568 seconds time elapsed( +- 0.08% ) > with patch: 1.408457577 seconds time elapsed( +- 0.15% ) > > ... which also shows an

[PATCH] kvm: powerpc: book3s: use local_paca instead of get_paca

2017-03-29 Thread Denis Kirjanov
with CONFIG_DEBUG_PREEMPT get_paca produces the following warning in kvmppc_book3s_init_hv since we are getting into the smp_processor_id debugging code There is no real issue with the xics_phys field. If paca->kvm_hstate.xics_phys is non-zero on one cpu, it will be non-zero on them all.

Re: [PATCH V5 02/17] powerpc/mm/slice: Update the function prototype

2017-03-29 Thread Aneesh Kumar K.V
On Wednesday 29 March 2017 09:13 AM, Paul Mackerras wrote: On Wed, Mar 22, 2017 at 09:06:48AM +0530, Aneesh Kumar K.V wrote: This avoid copying the slice_mask struct as function return value Did you do before/after comparisons of kernel text size? Paul. textdata bss dec

Re: [PATCH] kvm: powerpc: book3s: Disable preemption while accessing paca xics_phys filed

2017-03-29 Thread Michael Ellerman
Denis Kirjanov writes: > On Wednesday, March 29, 2017, Paul Mackerras wrote: > >> On Wed, Mar 29, 2017 at 12:07:03PM +1100, Michael Ellerman wrote: >> > Denis Kirjanov > writes: >> > >> [...] >> > > @@ -3930,7 +3934,11

Re: [PATCH] kvm: powerpc: book3s: Disable preemption while accessing paca xics_phys filed

2017-03-29 Thread Denis Kirjanov
On Wednesday, March 29, 2017, Paul Mackerras wrote: > On Wed, Mar 29, 2017 at 12:07:03PM +1100, Michael Ellerman wrote: > > Denis Kirjanov > writes: > > > [...] > > > @@ -3930,7 +3934,11 @@ static int kvmppc_book3s_init_hv(void) > > >

Re: [PATCH V5 16/17] mm: Let arch choose the initial value of task size

2017-03-29 Thread Anshuman Khandual
On Wednesday 22 March 2017 09:07 AM, Aneesh Kumar K.V wrote: As we start supporting larger address space (>128TB), we want to give architecture a control on max task size of an application which is different from the TASK_SIZE. For ex: ppc64 needs to track the base page size of a segment and

Re: [PATCH] kvm: powerpc: book3s: Disable preemption while accessing paca xics_phys filed

2017-03-29 Thread Paul Mackerras
On Wed, Mar 29, 2017 at 12:07:03PM +1100, Michael Ellerman wrote: > Denis Kirjanov writes: > [...] > > @@ -3930,7 +3934,11 @@ static int kvmppc_book3s_init_hv(void) > > * indirectly, via OPAL. > > */ > > #ifdef CONFIG_SMP > > - if

Re: [PATCH] kvm: powerpc: book3s: Disable preemption while accessing paca xics_phys filed

2017-03-29 Thread Denis Kirjanov
> Can you tell me what actual problem (other than the warning) this is > fixing? Since we're running with CONFIG_DEBUG_PREEMPT and CONFIG_SMP get_paca defined as: #define get_paca() ((void) debug_smp_processor_id(), local_paca) instead of direct access to r13 so it's possible that we're

Re: [PATCH V5 02/17] powerpc/mm/slice: Update the function prototype

2017-03-29 Thread Paul Mackerras
On Wed, Mar 22, 2017 at 09:06:48AM +0530, Aneesh Kumar K.V wrote: > This avoid copying the slice_mask struct as function return value Did you do before/after comparisons of kernel text size? Paul.