Re: [PATCH v11 10/26] mm: protect VMA modifications using VMA sequence count

2018-11-04 Thread vinayak menon
Hi Laurent, On Thu, May 17, 2018 at 4:37 PM Laurent Dufour wrote: > > The VMA sequence count has been introduced to allow fast detection of > VMA modification when running a page fault handler without holding > the mmap_sem. > > This patch provides protection against the VMA modification done in

Re: [PATCH] powerpc/32: Avoid unsupported flags with clang

2018-11-04 Thread Joel Stanley
On Mon, 5 Nov 2018 at 14:18, Michael Ellerman wrote: > > I considered putting these behind a cc-option test. If someone has an > > opinion on that I'm happy to change. > > -CFLAGS-$(CONFIG_PPC32) := -ffixed-r2 $(MULTIPLEWORD) > > +ifndef CONFIG_CC_IS_CLANG > > +#CFLAGS-$(CONFIG_PPC32)

[PATCH] arch/powerpc: Use dma_zalloc_coherent

2018-11-04 Thread Sabyasachi Gupta
Replaced dma_alloc_coherent + memset with dma_zalloc_coherent Signed-off-by: Sabyasachi Gupta --- arch/powerpc/platforms/pasemi/dma_lib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/pasemi/dma_lib.c b/arch/powerpc/platforms/pasemi/dma_lib.c

[PATCH] arch/powerpc: Use dma_zalloc_coherent

2018-11-04 Thread Sabyasachi Gupta
Replaced dma_alloc_coherent + memset with dma_zalloc_coherent Signed-off-by: Sabyasachi Gupta --- arch/powerpc/sysdev/fsl_rmu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_rmu.c b/arch/powerpc/sysdev/fsl_rmu.c index 88b35a3d..8b0ebf3 100644 ---

Re: [PATCH -next 0/3] Add support for fast mremap

2018-11-04 Thread William Kucharski
> On Nov 3, 2018, at 12:32 PM, Joel Fernandes wrote: > > Looks like more architectures don't define set_pmd_at. I am thinking the > easiest way forward is to just do the following, instead of defining > set_pmd_at for every architecture that doesn't care about it. Thoughts? > > diff --git

Re: [Skiboot] Important details about race condition in EEH/NVMe-issue on ppc64le.

2018-11-04 Thread Oliver
On Tue, Oct 30, 2018 at 1:28 AM Koltsov Dmitriy wrote: > > Hello. > > There is an EEH/NVMe-issue on SUT ppc64le POWER8-based server Yadro VESNIN > (with minimum 2 NVMe disks) with > Linux OS kernel 4.15.17/4.15.18/4.16.7 (OS - Ubuntu 16.04.5 LTS(hwe)/18.04.1 > LTS or Fedora 27). > > The issue

Re: [PATCH] powerpc/32: Avoid unsupported flags with clang

2018-11-04 Thread Michael Ellerman
Joel Stanley writes: > When building for ppc32 with clang these flags are unsupported: > > -ffixed-r2 and -mmultiple > > llvm's lib/Target/PowerPC/PPCRegisterInfo.cpp marks r2 as reserved on > when building for SVR4ABI and !ppc64: > > // The SVR4 ABI reserves r2 and r13 > if

Re: [PATCH 1/2] Makefile: Export clang toolchain variables

2018-11-04 Thread Masahiro Yamada
Hi Joel, On Mon, Nov 5, 2018 at 9:53 AM Joel Stanley wrote: > > The powerpc makefile will use these in it's boot wrapper. > > Signed-off-by: Joel Stanley > --- > Makefile | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Makefile b/Makefile > index 9aa352b38815..a2db3c885b38 100644

Re: [PATCH 2/2] powerpc/boot: Set target when cross-compiling for clang

2018-11-04 Thread Daniel Axtens
Joel Stanley writes: Hi Joel, Thanks! Tested-by: Daniel Axtens # powerpc 64-bit BE This solves one of the 2 issues I have in building for 64-bit BE with clang. The other is the VDSO32 stuff, and I hope to send a patch for that soon. Regards, Daniel > Clang needs to be told which target it

Re: [PATCH 1/2] Makefile: Export clang toolchain variables

2018-11-04 Thread Daniel Axtens
Hi Joel, Thanks! Tested-by: Daniel Axtens # powerpc 64-bit BE Regards, Daniel > The powerpc makefile will use these in it's boot wrapper. > > Signed-off-by: Joel Stanley > --- > Makefile | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Makefile b/Makefile > index

[PATCH 2/2] powerpc/boot: Set target when cross-compiling for clang

2018-11-04 Thread Joel Stanley
Clang needs to be told which target it is building for when cross compiling. Link: https://github.com/ClangBuiltLinux/linux/issues/259 Signed-off-by: Joel Stanley --- arch/powerpc/boot/Makefile | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/boot/Makefile

[PATCH 1/2] Makefile: Export clang toolchain variables

2018-11-04 Thread Joel Stanley
The powerpc makefile will use these in it's boot wrapper. Signed-off-by: Joel Stanley --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 9aa352b38815..a2db3c885b38 100644 --- a/Makefile +++ b/Makefile @@ -495,6 +495,9 @@ endif ifneq

[PATCH 0/2] poewrpc/Boot: Fix cross compiling with clang

2018-11-04 Thread Joel Stanley
Hello, These patches allow clang to cross-compile the powerpc boot wrapper. The boot wrapper constructs it's own compiler flags as it may not be built for the same arch as the kernel. The powerpc64le kernel builds natively with clang and with this patch it can cross compile too. Joel Stanley

[PATCH v2] ppc4xx: ocm: fix errnous "failed to create file" errors

2018-11-04 Thread Christian Lamparter
Previously, the kernel would complain: | debugfs ppc4xx ocm: failed to create file But the "info" file was still created and working. This is because debugfs_create_file() returns a pointer to a struct *dentry on success or -ENODEV when debugfs isn't available. This patch fixes both the

Re: [PATCH] ppc4xx: ocm: fix errnous "failed to create file" errors

2018-11-04 Thread Christian Lamparter
On Thursday, November 1, 2018 12:45:00 PM CET Michael Ellerman wrote: > Hi Christian, > > Christian Lamparter writes: > > Previously, the kernel would complain: > > > > | debugfs ppc4xx ocm: failed to create file > > > > But the "info" file was still created and working. This > > is because