Re: [PATCH] powerpc: fix distclean with Makefile.postlink

2017-05-08 Thread Justin Forbes
On Mon, May 8, 2017 at 8:50 AM, Horia Geantă wrote: > On 5/8/2017 2:57 PM, Michael Ellerman wrote: >> Horia Geantă writes: >> >>> Makefile.postlink always includes include/config/auto.conf, however >>> this file is not present in a clean kernel tree,

Re: [kernel-hardening] [PATCH] add the option of fortified string.h functions

2017-05-08 Thread Kees Cook
On Mon, May 8, 2017 at 1:50 PM, Daniel Micay wrote: > On Tue, 2017-05-09 at 03:57 +1000, Daniel Axtens wrote: >> Hi Daniel and ppc people, >> >> (ppc people: this does some compile and run time bounds checking on >> string functions. It's cool - currently it picks up a lot

Re: [kernel-hardening] [PATCH] add the option of fortified string.h functions

2017-05-08 Thread Daniel Micay
On Tue, 2017-05-09 at 03:57 +1000, Daniel Axtens wrote: > Hi Daniel and ppc people, > > (ppc people: this does some compile and run time bounds checking on > string functions. It's cool - currently it picks up a lot of random > things so it will require some more work across the tree, but >

Re: [kernel-hardening] [PATCH] add the option of fortified string.h functions

2017-05-08 Thread Daniel Axtens
Hi Daniel and ppc people, (ppc people: this does some compile and run time bounds checking on string functions. It's cool - currently it picks up a lot of random things so it will require some more work across the tree, but hopefully it will eventually hit mainline.) I've tested this on ppc with

Re: [PATCH] powerpc/64e: Don't place the stack beyond TASK_SIZE

2017-05-08 Thread Scott Wood
On Tue, 2017-05-09 at 00:09 +1000, Michael Ellerman wrote: > Scott Wood writes: > > > Commit f4ea6dcb08ea ("powerpc/mm: Enable mappings above 128TB") increased > > the task size on book3s, and introduced a mechanism to dynamically > > control whether a task uses these larger

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-08 Thread Daniel Axtens
Hi all, I've had a look at the API as it was a big thing I didn't like in the earlier version. I am much happier with this one. Some comments: - I'm no longer subscribed to skiboot but I've had a look at the patches on that side: * in patch 9 should opal_imc_counters_init return

Re: [PATCH] powerpc/64e: Don't place the stack beyond TASK_SIZE

2017-05-08 Thread Michael Ellerman
Scott Wood writes: > Commit f4ea6dcb08ea ("powerpc/mm: Enable mappings above 128TB") increased > the task size on book3s, and introduced a mechanism to dynamically > control whether a task uses these larger addresses. While the change to > the task size itself was

Re: [linux-next][bock] WARNING: CPU: 22 PID: 0 at block/blk-core.c:2655 .blk_update_request+0x4f8/0x500

2017-05-08 Thread Jens Axboe
On 05/08/2017 01:13 AM, Abdul Haleem wrote: > On Fri, 2017-05-05 at 08:02 -0600, Jens Axboe wrote: >> On 05/05/2017 12:25 AM, Abdul Haleem wrote: >>> Hi, >>> >>> 4.11.0 Linus mainline booted with Warnings on PowerPC. >>> >>> We did not see this on next-20170407 but on next-20170410 and later. >>

Re: [PATCH] powerpc: fix distclean with Makefile.postlink

2017-05-08 Thread Horia Geantă
On 5/8/2017 2:57 PM, Michael Ellerman wrote: > Horia Geantă writes: > >> Makefile.postlink always includes include/config/auto.conf, however >> this file is not present in a clean kernel tree, causing make to fail: >> >> arch/powerpc/Makefile.postlink:10:

Re: [PATCH] powerpc: fix distclean with Makefile.postlink

2017-05-08 Thread Michael Ellerman
Horia Geantă writes: > Makefile.postlink always includes include/config/auto.conf, however > this file is not present in a clean kernel tree, causing make to fail: > > arch/powerpc/Makefile.postlink:10: include/config/auto.conf: No such file or > directory > make[1]: ***

Re: [v3 9/9] s390: teach platforms not to zero struct pages memory

2017-05-08 Thread Heiko Carstens
On Fri, May 05, 2017 at 01:03:16PM -0400, Pavel Tatashin wrote: > If we are using deferred struct page initialization feature, most of > "struct page"es are getting initialized after other CPUs are started, and > hence we are benefiting from doing this job in parallel. However, we are > still

[PATCH] powerpc: fix distclean with Makefile.postlink

2017-05-08 Thread Horia Geantă
Makefile.postlink always includes include/config/auto.conf, however this file is not present in a clean kernel tree, causing make to fail: arch/powerpc/Makefile.postlink:10: include/config/auto.conf: No such file or directory make[1]: *** No rule to make target `include/config/auto.conf'. Stop.

Re: [linux-next][bock] WARNING: CPU: 22 PID: 0 at block/blk-core.c:2655 .blk_update_request+0x4f8/0x500

2017-05-08 Thread Abdul Haleem
On Fri, 2017-05-05 at 08:02 -0600, Jens Axboe wrote: > On 05/05/2017 12:25 AM, Abdul Haleem wrote: > > Hi, > > > > 4.11.0 Linus mainline booted with Warnings on PowerPC. > > > > We did not see this on next-20170407 but on next-20170410 and later. > > Have you tried current Linus -git? Both of

[PATCH 2/2] selftests/powerpc: Test TM and VMX register state

2017-05-08 Thread Michael Neuling
Test that the VMX checkpointed register state is maintained when a VMX unavailable exception is taken during a transaction. Thanks to Breno Leitao and Gustavo Bueno Romero for the original test this is based heavily on. Signed-off-by: Michael Neuling

[PATCH 1/2] powerpc/tm: Fix FP and VMX register corruption

2017-05-08 Thread Michael Neuling
In this commit: commit dc3106690b20305c3df06b42456fe386dd632ac9 Author: Cyril Bur powerpc: tm: Always use fp_state and vr_state to store live registers A section of code was removed that copied the current state to checkpointed state. This should not have been removed.

[PATCH] powerpc: Fix asm offsets to point to actual FP and VMX regs

2017-05-08 Thread Michael Neuling
The asm code assumes the FP regs are at the start of fp_state. While this is true now, it may not always be the case and there is nothing enforcing it. This fixes the asm-offsets to point to the actual FP registers inside the fp_state. Similarly for VMX. Signed-off-by: Michael Neuling

[PATCH] powerpc/tm: Fix comment

2017-05-08 Thread Michael Neuling
Update to real function name. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/tm.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/tm.S b/arch/powerpc/kernel/tm.S index 3a2d04134d..c4ba37822b 100644 ---