[PATCH] powerpc/mm: Fix build error with FLATMEM book3s64 config

2019-04-03 Thread Aneesh Kumar K.V
The current value of MAX_PHYSMEM_BITS cannot work with 32 bit configs. We used to have MAX_PHYSMEM_BITS not defined without SPARSEMEM and 32 bit configs never expected a value to be set for MAX_PHYSMEM_BITS. Dependent code such as zsmalloc derived the right values based on other fields. Instead

Re: [PATCH 3/5] s390: Fix vDSO clock_getres()

2019-04-03 Thread Martin Schwidefsky
On Mon, 1 Apr 2019 12:51:50 +0100 Vincenzo Frascino wrote: > clock_getres in the vDSO library has to preserve the same behaviour > of posix_get_hrtimer_res(). > > In particular, posix_get_hrtimer_res() does: > sec = 0; > ns = hrtimer_resolution; > and hrtimer_resolution depends on the

Re: [PATCH] powerpc: config: skiroot: Add (back) MLX5 ethernet support

2019-04-03 Thread Mathieu Malaterre
On Wed, Apr 3, 2019 at 2:51 AM Joel Stanley wrote: > > It turns out that some defconfig changes and kernel config option > changes meant we accidentally dropped Ethernet support for Mellanox CLX5 > cards. > > Reported-by: Carol L Soto > Suggested-by: Carol L Soto > Signed-off-by: Stewart Smith

[PATCH -next] ibmvnic: remove set but not used variable 'netdev'

2019-04-03 Thread Yue Haibing
From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/ibm/ibmvnic.c: In function '__ibmvnic_reset': drivers/net/ethernet/ibm/ibmvnic.c:1971:21: warning: variable 'netdev' set but not used [-Wunused-but-set-variable] It's never used since introduction in commit

Re: [PATCH -next] ibmvnic: remove set but not used variable 'netdev'

2019-04-03 Thread Mukesh Ojha
On 4/3/2019 1:24 PM, Yue Haibing wrote: From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/ibm/ibmvnic.c: In function '__ibmvnic_reset': drivers/net/ethernet/ibm/ibmvnic.c:1971:21: warning: variable 'netdev' set but not used [-Wunused-but-set-variable]

Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere

2019-04-03 Thread Will Deacon
Hi Michael, On Wed, Apr 03, 2019 at 01:47:50PM +1100, Michael Ellerman wrote: > Arnd Bergmann writes: > > diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl > > b/arch/powerpc/kernel/syscalls/syscall.tbl > > index b18abb0c3dae..00f5a63c8d9a 100644 > > ---

Re: [PATCH v3 5/5] Lib: sort.h: remove the size argument from the swap function

2019-04-03 Thread Andy Shevchenko
On Tue, Apr 02, 2019 at 11:55:25PM +0300, Andrey Abramov wrote: > Removes size argument from the swap function because: > 1) It wasn't used. > 2) Custom swap function knows what kind of objects it swaps, > so it already knows their sizes. > > Signed-off-by: Andrey

Re: [PATCH 3/5] s390: Fix vDSO clock_getres()

2019-04-03 Thread Thomas Gleixner
On Wed, 3 Apr 2019, Martin Schwidefsky wrote: > On Mon, 1 Apr 2019 12:51:50 +0100 > Vincenzo Frascino wrote: > > > clock_getres in the vDSO library has to preserve the same behaviour > > of posix_get_hrtimer_res(). > > > > In particular, posix_get_hrtimer_res() does: > > sec = 0; > >

RE: [PATCH] ASoC: fsl_esai: Support synchronous mode

2019-04-03 Thread S.j. Wang
Hi > > > > On Mon, Apr 01, 2019 at 11:39:10AM +, S.j. Wang wrote: > > > > In ESAI synchronous mode, the clock is generated by Tx, So we > > > > should always set registers of Tx which relate with the bit clock > > > > and frame clock generation (TCCR, TCR, ECR), even there is only Rx is >

[PATCH V2] ASoC: fsl_esai: Support synchronous mode

2019-04-03 Thread S.j. Wang
In ESAI synchronous mode, the clock is generated by Tx, So we should always set registers of Tx which relate with the bit clock and frame clock generation (TCCR, TCR, ECR), even there is only Rx is working. Signed-off-by: Shengjiu Wang --- changes in v2 - refine the patch according Nicolin's

Re: [5/7] cpufreq/pasemi: Checking implementation of pas_cpufreq_cpu_init()

2019-04-03 Thread Markus Elfring
> @@ -146,6 +146,7 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy > *policy) > > cpu = of_get_cpu_node(policy->cpu, NULL); > > + of_node_put(cpu); > if (!cpu) > goto out; Can the statement “return -ENODEV” be nicer as exception handling in the if branch

Re: [PATCH 1/6] mm: change locked_vm's type from unsigned long to atomic64_t

2019-04-03 Thread Daniel Jordan
On Wed, Apr 03, 2019 at 06:46:07AM +0200, Christophe Leroy wrote: > > > Le 02/04/2019 à 22:41, Daniel Jordan a écrit : > > Taking and dropping mmap_sem to modify a single counter, locked_vm, is > > overkill when the counter could be synchronized separately. > > > > Make mmap_sem a little less

Re: [PATCH 1/6] mm: change locked_vm's type from unsigned long to atomic64_t

2019-04-03 Thread Daniel Jordan
On Tue, Apr 02, 2019 at 04:43:57PM -0700, Davidlohr Bueso wrote: > On Tue, 02 Apr 2019, Andrew Morton wrote: > > > Also, we didn't remove any down_write(mmap_sem)s from core code so I'm > > thinking that the benefit of removing a few mmap_sem-takings from a few > > obscure drivers (sorry ;)) is

Re: [PATCH 5/6] powerpc/mmu: drop mmap_sem now that locked_vm is atomic

2019-04-03 Thread Daniel Jordan
On Wed, Apr 03, 2019 at 06:58:45AM +0200, Christophe Leroy wrote: > Le 02/04/2019 à 22:41, Daniel Jordan a écrit : > > With locked_vm now an atomic, there is no need to take mmap_sem as > > writer. Delete and refactor accordingly. > > Could you please detail the change ? Ok, I'll be more

Re: Question about Power8/9, PHB3/4 and setting of DMA mask

2019-04-03 Thread Christoph Hellwig
On Sun, Mar 31, 2019 at 12:50:21PM +0300, Oded Gabbay wrote: > Due to some limitation in Goya, the driver first need to allocate a > 2MB chunk in a DMA-able address under 39 bits and then we would like > to move to using up to 48 bits. Therefore, the driver first tries to > set the DMA mask to 39

Re: [PATCH V2] ASoC: fsl_esai: Support synchronous mode

2019-04-03 Thread Nicolin Chen
This looks better :) On Wed, Apr 03, 2019 at 10:07:40AM +, S.j. Wang wrote: > @@ -218,7 +218,7 @@ static int fsl_esai_set_dai_sysclk(struct snd_soc_dai > *dai, int clk_id, > { > struct fsl_esai *esai_priv = snd_soc_dai_get_drvdata(dai); > struct clk *clksrc =

[PATCH v1 04/15] powerpc/mm: move pgtable_t in asm/mmu.h

2019-04-03 Thread Christophe Leroy
pgtable_t is now identical for all subarches, move it to the top level asm/mmu.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/mmu-hash.h | 4 arch/powerpc/include/asm/book3s/64/mmu.h | 8 arch/powerpc/include/asm/mmu.h| 3 +++

[PATCH v1 02/15] powerpc/mm: define __pud_free_tlb() at all time on nohash/64

2019-04-03 Thread Christophe Leroy
CONFIG_PPC_64K_PAGES is not selectable on nohash/64, so get __pud_free_tlb() defined at all time. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/64/pgalloc.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/powerpc/include/asm/nohash/64/pgalloc.h

[PATCH v1 09/15] powerpc/mm: inline pte_alloc_one_kernel() and pte_alloc_one() on PPC32

2019-04-03 Thread Christophe Leroy
pte_alloc_one_kernel() and pte_alloc_one() are simple calls to pte_fragment_alloc(), so they are good candidates for inlining as already done on PPC64. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 15 ---

[PATCH v1 12/15] powerpc/mm: Only keep one version of pmd_populate() functions on nohash/32

2019-04-03 Thread Christophe Leroy
Use IS_ENABLED(CONFIG_BOOKE) to make single versions of pmd_populate() and pmd_populate_kernel() Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/pgalloc.h | 28 1 file changed, 8 insertions(+), 20 deletions(-) diff --git

Re: [PATCH 0/4] Enabling secure boot on PowerNV systems

2019-04-03 Thread Claudio Carvalho
On 4/3/19 10:21 AM, Michael Ellerman wrote: > Hi Claudio, > > Thanks for posting this. > > Claudio Carvalho writes: >> This patch set is part of a series that implements secure boot on >> PowerNV systems. >> >> In order to verify the OS kernel on PowerNV, secure boot requires X.509 >>

[PATCH v1 05/15] powerpc/mm: get rid of nohash/32/mmu.h and nohash/64/mmu.h

2019-04-03 Thread Christophe Leroy
Those files have no real added values, especially the 64 bit which only includes the common book3e mmu.h which is also included from 32 bits side. So lets do the final inclusion directly from nohash/mmu.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/mmu.h | 19

[PATCH v1 11/15] powerpc/mm: refactor definition of pgtable_cache[]

2019-04-03 Thread Christophe Leroy
pgtable_cache[] is the same for the 4 subarches, lets make it common. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 21 - arch/powerpc/include/asm/book3s/64/pgalloc.h | 22 --

[PATCH] powerpc/powernv: Add mmap to opal export sysfs nodes

2019-04-03 Thread Jordan Niethe
The sysfs nodes created under /opal/exports/ do not currently support mmap. Skiboot trace buffers are exported here with in the series https://patchwork.ozlabs.org/cover/1073501/. Adding mmap support makes it possible to use the functions for reading traces in external/trace. This improves on the

[PATCH v1 03/15] powerpc/mm: convert Book3E 64 to pte_fragment

2019-04-03 Thread Christophe Leroy
Book3E 64 is the only subarch not using pte_fragment. In order to allow refactorisation, this patch converts it to pte_fragment. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/mmu_context.h | 6 - arch/powerpc/include/asm/nohash/64/mmu.h | 4 +++-

[PATCH v1 14/15] powerpc/mm: refactor pmd_pgtable()

2019-04-03 Thread Christophe Leroy
pmd_pgtable() is identical on the 4 subarches, refactor it. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 2 -- arch/powerpc/include/asm/book3s/64/pgalloc.h | 5 - arch/powerpc/include/asm/nohash/32/pgalloc.h | 2 --

[PATCH v1 01/15] powerpc/mm: drop __bad_pte()

2019-04-03 Thread Christophe Leroy
This has never been called (since Kernel has been in git at least), drop it. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 2 -- arch/powerpc/include/asm/nohash/32/pgalloc.h | 2 -- 2 files changed, 4 deletions(-) diff --git

[PATCH v1 10/15] powerpc/mm: refactor pte_alloc_one() and pte_free() families definition.

2019-04-03 Thread Christophe Leroy
Functions pte_alloc_one(), pte_alloc_one_kernel(), pte_free(), pte_free_kernel() are identical for the four subarches. This patch moves their definition in a common place. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/32/pgalloc.h | 25 -

[PATCH v1 15/15] powerpc/mm: refactor pgd_alloc() and pgd_free() on nohash

2019-04-03 Thread Christophe Leroy
pgd_alloc() and pgd_free() are identical on nohash 32 and 64. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/pgalloc.h | 11 --- arch/powerpc/include/asm/nohash/64/pgalloc.h | 11 --- arch/powerpc/include/asm/nohash/pgalloc.h| 12 3 files

[PATCH v1 06/15] powerpc/Kconfig: select PPC_MM_SLICES from subarch type

2019-04-03 Thread Christophe Leroy
Lets select PPC_MM_SLICES from the subarch config item instead of doing it via defaults declaration in the PPC_MM_SLICES item itself. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/Kconfig.cputype | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] powerpc: config: skiroot: Add (back) MLX5 ethernet support

2019-04-03 Thread Stewart Smith
Mathieu Malaterre writes: > On Wed, Apr 3, 2019 at 2:51 AM Joel Stanley wrote: >> >> It turns out that some defconfig changes and kernel config option >> changes meant we accidentally dropped Ethernet support for Mellanox CLX5 >> cards. >> >> Reported-by: Carol L Soto >> Suggested-by: Carol L

[PATCH v1 00/15] Refactor pgalloc stuff

2019-04-03 Thread Christophe Leroy
This series converts book3e64 to pte_fragment and refactor things that are common among subarches. Christophe Leroy (15): powerpc/mm: drop __bad_pte() powerpc/mm: define __pud_free_tlb() at all time on nohash/64 powerpc/mm: convert Book3E 64 to pte_fragment powerpc/mm: move pgtable_t in

[PATCH v1 07/15] powerpc/book3e: move early_alloc_pgtable() to init section

2019-04-03 Thread Christophe Leroy
early_alloc_pgtable() is only used during init. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable-book3e.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/pgtable-book3e.c b/arch/powerpc/mm/pgtable-book3e.c index 1032ef7aaf62..f6fc709697ee

[PATCH v1 08/15] powerpc/mm: don't use pte_alloc_kernel() until slab is available on PPC32

2019-04-03 Thread Christophe Leroy
In the same way as PPC64, implement early allocation functions and avoid calling pte_alloc_kernel() before slab is available. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable_32.c | 34 -- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git

[PATCH v1 13/15] powerpc/mm: refactor pgtable freeing functions on nohash

2019-04-03 Thread Christophe Leroy
pgtable_free() and others are identical on nohash/32 and 64, so move them into asm/nohash/pgalloc.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/nohash/32/pgalloc.h | 43 --- arch/powerpc/include/asm/nohash/64/pgalloc.h | 43 ---

Re: [PATCH v4 1/4] ocxl: Rename struct link to ocxl_link

2019-04-03 Thread Frederic Barrat
Le 25/03/2019 à 06:34, Alastair D'Silva a écrit : From: Alastair D'Silva The term 'link' is ambiguous (especially when the struct is used for a list), so rename it for clarity. Signed-off-by: Alastair D'Silva Reviewed-by: Greg Kurz --- Acked-by: Frederic Barrat

Re: [PATCH 3/5] s390: Fix vDSO clock_getres()

2019-04-03 Thread Vincenzo Frascino
On 03/04/2019 11:06, Thomas Gleixner wrote: > On Wed, 3 Apr 2019, Martin Schwidefsky wrote: > >> On Mon, 1 Apr 2019 12:51:50 +0100 >> Vincenzo Frascino wrote: >> >>> clock_getres in the vDSO library has to preserve the same behaviour >>> of posix_get_hrtimer_res(). >>> >>> In particular,

Re: [5/7] cpufreq/pasemi: Checking implementation of pas_cpufreq_cpu_init()

2019-04-03 Thread Dan Carpenter
On Wed, Apr 03, 2019 at 04:23:54PM +0200, Markus Elfring wrote: > > @@ -146,6 +146,7 @@ static int pas_cpufreq_cpu_init(struct cpufreq_policy > > *policy) > > > > cpu = of_get_cpu_node(policy->cpu, NULL); > > > > + of_node_put(cpu); > > if (!cpu) > > goto out; > > Can the

Re: [PATCH v4 3/4] ocxl: Remove superfluous 'extern' from headers

2019-04-03 Thread Frederic Barrat
Le 25/03/2019 à 06:34, Alastair D'Silva a écrit : From: Alastair D'Silva The 'extern' keyword adds no value here. Signed-off-by: Alastair D'Silva --- Acked-by: Frederic Barrat drivers/misc/ocxl/ocxl_internal.h | 54 +++ include/misc/ocxl.h

Re: [PATCH v4 2/4] ocxl: read_pasid never returns an error, so make it void

2019-04-03 Thread Frederic Barrat
Le 25/03/2019 à 06:34, Alastair D'Silva a écrit : From: Alastair D'Silva No need for a return value in read_pasid as it only returns 0. Signed-off-by: Alastair D'Silva Reviewed-by: Greg Kurz --- Acked-by: Frederic Barrat drivers/misc/ocxl/config.c | 9 ++--- 1 file changed,

Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere

2019-04-03 Thread Will Deacon
On Wed, Apr 03, 2019 at 09:39:52AM -0600, Jens Axboe wrote: > On 4/3/19 9:19 AM, Will Deacon wrote: > > On Wed, Apr 03, 2019 at 07:49:26AM -0600, Jens Axboe wrote: > >> On 4/3/19 5:11 AM, Will Deacon wrote: > >>> will@autoplooker:~/liburing/test$ ./io_uring_register > >>> RELIMIT_MEMLOCK:

[PATCH v8 05/20] KVM: PPC: Book3S HV: Remove pmd_is_leaf()

2019-04-03 Thread Steven Price
Since pmd_large() is now always available, pmd_is_leaf() is redundant. Replace all uses with calls to pmd_large(). CC: Benjamin Herrenschmidt CC: Michael Ellerman CC: Paul Mackerras CC: kvm-...@vger.kernel.org CC: linuxppc-dev@lists.ozlabs.org Signed-off-by: Steven Price ---

Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere

2019-04-03 Thread Will Deacon
Hi Jens, On Wed, Apr 03, 2019 at 07:49:26AM -0600, Jens Axboe wrote: > On 4/3/19 5:11 AM, Will Deacon wrote: > > will@autoplooker:~/liburing/test$ ./io_uring_register > > RELIMIT_MEMLOCK: 67108864 (67108864) > > [ 35.477875] Unable to handle kernel NULL pointer dereference at virtual > >

Re: [PATCH v2 4/6] powerpc: use common ptrace_syscall_enter hook to handle _TIF_SYSCALL_EMU

2019-04-03 Thread Will Deacon
Hi Oleg, On Tue, Mar 19, 2019 at 06:32:33PM +0100, Oleg Nesterov wrote: > On 03/19, Oleg Nesterov wrote: > > > > Well, personally I see no point... Again, after the trivial simplification > > x86 does > > > > if (work & (_TIF_SYSCALL_EMU | _TIF_SYSCALL_TRACE)) { > > ret =

[PATCH v8 04/20] powerpc: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For powerpc pmd_large() was already implemented, so hoist

Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere

2019-04-03 Thread Jens Axboe
On 4/3/19 9:49 AM, Will Deacon wrote: > On Wed, Apr 03, 2019 at 09:39:52AM -0600, Jens Axboe wrote: >> On 4/3/19 9:19 AM, Will Deacon wrote: >>> On Wed, Apr 03, 2019 at 07:49:26AM -0600, Jens Axboe wrote: On 4/3/19 5:11 AM, Will Deacon wrote: > will@autoplooker:~/liburing/test$

Re: [PATCH v4 4/4] ocxl: Remove some unused exported symbols

2019-04-03 Thread Frederic Barrat
Le 25/03/2019 à 06:34, Alastair D'Silva a écrit : From: Alastair D'Silva Remove some unused exported symbols. Signed-off-by: Alastair D'Silva --- Acked-by: Frederic Barrat drivers/misc/ocxl/config.c| 4 +--- drivers/misc/ocxl/ocxl_internal.h | 23 +++

Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere

2019-04-03 Thread Jens Axboe
On 4/3/19 9:19 AM, Will Deacon wrote: > Hi Jens, > > On Wed, Apr 03, 2019 at 07:49:26AM -0600, Jens Axboe wrote: >> On 4/3/19 5:11 AM, Will Deacon wrote: >>> will@autoplooker:~/liburing/test$ ./io_uring_register >>> RELIMIT_MEMLOCK: 67108864 (67108864) >>> [ 35.477875] Unable to handle kernel

Re: [PATCH 1/6] mm: change locked_vm's type from unsigned long to atomic64_t

2019-04-03 Thread Daniel Jordan
On Tue, Apr 02, 2019 at 03:04:24PM -0700, Andrew Morton wrote: > On Tue, 2 Apr 2019 16:41:53 -0400 Daniel Jordan > wrote: > > static long kvmppc_account_memlimit(unsigned long stt_pages, bool inc) > > { > > long ret = 0; > > + s64 locked_vm; > > > > if (!current || !current->mm) >

Re: [PATCH 0/6] convert locked_vm from unsigned long to atomic64_t

2019-04-03 Thread Daniel Jordan
On Wed, Apr 03, 2019 at 08:51:13AM -0400, Steven Sistare wrote: > On 4/2/2019 4:41 PM, Daniel Jordan wrote: > > [1] > > https://lore.kernel.org/linux-mm/20190211224437.25267-1-daniel.m.jor...@oracle.com/ > > You could clean all 6 patches up nicely with a common subroutine that > increases

[RFC PATCH kernel v2] powerpc/powernv: Isolate NVLinks between GV100GL on Witherspoon

2019-04-03 Thread Alexey Kardashevskiy
The NVIDIA V100 SXM2 GPUs are connected to the CPU via PCIe links and (on POWER9) NVLinks. In addition to that, GPUs themselves have direct peer to peer NVLinks in groups of 2 to 4 GPUs. At the moment the POWERNV platform puts all interconnected GPUs to the same IOMMU group. However the user may

VLC doesn't play videos anymore since the PowerPC fixes 5.1-3

2019-04-03 Thread Christian Zigotzky
On 03 April 2019 at 07:05AM, Christophe Leroy wrote: Le 03/04/2019 à 05:52, Christian Zigotzky a écrit : Please test VLC with the RC3 of kernel 5.1. The removing of the PowerPC fixes 5.1-3 has solved the VLC issue. Another user has already confirmed that [1]. This isn’t an April Fool‘s. ;-)

Re: [PATCH AUTOSEL 5.0 015/262] memblock: memblock_phys_alloc_try_nid(): don't panic

2019-04-03 Thread Sasha Levin
On Thu, Mar 28, 2019 at 07:57:21AM +0200, Mike Rapoport wrote: Hi, On Wed, Mar 27, 2019 at 01:57:50PM -0400, Sasha Levin wrote: From: Mike Rapoport [ Upstream commit 337555744e6e39dd1d87698c6084dd88a606d60a ] The memblock_phys_alloc_try_nid() function tries to allocate memory from the

Re: VLC doesn't play videos anymore since the PowerPC fixes 5.1-3

2019-04-03 Thread Christophe Leroy
Le 04/04/2019 à 02:58, Christian Zigotzky a écrit : On 03 April 2019 at 07:05AM, Christophe Leroy wrote: Le 03/04/2019 à 05:52, Christian Zigotzky a écrit : Please test VLC with the RC3 of kernel 5.1. The removing of the PowerPC fixes 5.1-3 has solved the VLC issue. Another user has

Re: [PATCH 5/6 v3] syscalls: Remove start and number from syscall_get_arguments() args

2019-04-03 Thread Paul Burton
Hi Steven, On Mon, Apr 01, 2019 at 09:41:09AM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > At Linux Plumbers, Andy Lutomirski approached me and pointed out that the > function call syscall_get_arguments() implemented in x86 was horribly > written and not optimized for the

Re: [PATCH] powerpc/xmon: add read-only mode

2019-04-03 Thread Andrew Donnellan
On 4/4/19 12:02 am, Christopher M Riedl wrote: On March 29, 2019 at 12:49 AM Andrew Donnellan wrote: On 29/3/19 3:21 pm, cmr wrote: Operations which write to memory should be restricted on secure systems and optionally to avoid self-destructive behaviors. For reference: -

Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere

2019-04-03 Thread Jens Axboe
On 4/3/19 5:11 AM, Will Deacon wrote: > Hi Michael, > > On Wed, Apr 03, 2019 at 01:47:50PM +1100, Michael Ellerman wrote: >> Arnd Bergmann writes: >>> diff --git a/arch/powerpc/kernel/syscalls/syscall.tbl >>> b/arch/powerpc/kernel/syscalls/syscall.tbl >>> index b18abb0c3dae..00f5a63c8d9a 100644

Re: [PATCH -next] ocxl: remove set but not used variables 'tid' and 'lpid'

2019-04-03 Thread Frederic Barrat
Le 29/03/2019 à 16:44, Yue Haibing a écrit : From: YueHaibing Fixes gcc '-Wunused-but-set-variable' warning: drivers/misc/ocxl/link.c: In function 'xsl_fault_handler': drivers/misc/ocxl/link.c:187:17: warning: variable 'tid' set but not used [-Wunused-but-set-variable]

Re: [PATCH 0/6] convert locked_vm from unsigned long to atomic64_t

2019-04-03 Thread Steven Sistare
On 4/2/2019 4:41 PM, Daniel Jordan wrote: > Hi, > > From patch 1: > > Taking and dropping mmap_sem to modify a single counter, locked_vm, is > overkill when the counter could be synchronized separately. > > Make mmap_sem a little less coarse by changing locked_vm to an atomic, > the

Re: [PATCH] powerpc/xmon: add read-only mode

2019-04-03 Thread Christopher M Riedl
> On March 29, 2019 at 12:49 AM Andrew Donnellan > wrote: > > > On 29/3/19 3:21 pm, cmr wrote: > > Operations which write to memory should be restricted on secure systems > > and optionally to avoid self-destructive behaviors. > > For reference: > -

Re: [PATCH] powerpc/xmon: add read-only mode

2019-04-03 Thread Christopher M Riedl
> On April 3, 2019 at 12:15 AM Christophe Leroy wrote: > > > > > Le 03/04/2019 à 05:38, Christopher M Riedl a écrit : > >> On March 29, 2019 at 3:41 AM Christophe Leroy > >> wrote: > >> > >> > >> > >> > >> Le 29/03/2019 à 05:21, cmr a écrit : > >>> Operations which write to memory should be

Re: [PATCH 0/4] Enabling secure boot on PowerNV systems

2019-04-03 Thread Michael Ellerman
Hi Claudio, Thanks for posting this. Claudio Carvalho writes: > This patch set is part of a series that implements secure boot on > PowerNV systems. > > In order to verify the OS kernel on PowerNV, secure boot requires X.509 > certificates trusted by the platform, the secure boot modes, and