Re: [PATCH 02/24] powerpc/mm: Pre-filter SRR1 bits before do_page_fault()

2017-07-22 Thread Benjamin Herrenschmidt
On Sat, 2017-07-22 at 18:43 +0200, LEROY Christophe wrote: > > > @@ -203,23 +203,13 @@ static int __do_page_fault(struct pt_regs > > *regs, unsigned long address, > > unsigned int flags = FAULT_FLAG_ALLOW_RETRY | FAULT_FLAG_KILLABLE; > > int code = SEGV_MAPERR; > > int is_write = 0;

Re: [PATCH 07/24] powerpc/mm: Move out definition of CPU specific is_write bits

2017-07-22 Thread Benjamin Herrenschmidt
On Sat, 2017-07-22 at 18:40 +0200, LEROY Christophe wrote: > Benjamin Herrenschmidt a écrit : > > > Define a common page_fault_is_write() helper and use it > > > > Signed-off-by: Benjamin Herrenschmidt > > --- > > arch/powerpc/mm/fault.c | 18 +++--- > > 1 file changed, 11 insertio

Re: [PATCH] powerpc/vdso64: Add support for CLOCK_{REALTIME/MONOTONIC}_COARSE

2017-07-22 Thread kbuild test robot
-for-CLOCK_-REALTIME-MONOTONIC-_COARSE/20170722-235025 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: powerpc-defconfig (attached as .config) compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https

Re: [PATCH 02/24] powerpc/mm: Pre-filter SRR1 bits before do_page_fault()

2017-07-22 Thread LEROY Christophe
Benjamin Herrenschmidt a écrit : By filtering the relevant SRR1 bits in the assembly rather than in do_page_fault() itself, we avoid a conditional branch (since we already come from different path for data and instruction faults). This will allow more simplifications later Signed-off-by: Benj

Re: [PATCH 07/24] powerpc/mm: Move out definition of CPU specific is_write bits

2017-07-22 Thread LEROY Christophe
Benjamin Herrenschmidt a écrit : Define a common page_fault_is_write() helper and use it Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/mm/fault.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c

[PATCH 2/2] fsl/qe: Cleanup error paths in ucc_of_parse_tdm()

2017-07-22 Thread Dan Carpenter
The most important part of this change is that it not propogates error codes instead of returning -EINVAL. There was also a tab missing, and a couple other minor cleanups which don't affect runtime. Signed-off-by: Dan Carpenter --- Not tested, but I don't think propogating the errors will cause

[PATCH 1/2] fsl/qe: NULL dereference on error in ucc_of_parse_tdm()

2017-07-22 Thread Dan Carpenter
If "pdev = of_find_device_by_node(np2);" fails then it would lead to a NULL dereference. This function is called from probe() and we're using managed resources so we can just return without doing a manual cleanup. Fixes: 35ef1c20fdb2 ("fsl/qe: Add QE TDM lib") Signed-off-by: Dan Carpenter diff

Re: [PATCH v13 5/5] powerpc/perf: Add thread imc pmu support

2017-07-22 Thread Madhavan Srinivasan
my bad, missed to change the authership of this patch. From: Anju T Sudhakar On Wednesday 19 July 2017 03:06 AM, Madhavan Srinivasan wrote: Add support to register Thread In-Memory Collection pmu counters. Patch adds thread imc specific data structures, along with memory init functions and cpu

Re: [PATCH v13 4/5] powerpc/perf: Add core imc pmu support

2017-07-22 Thread Madhavan Srinivasan
my bad, missed to change the authership of this patch. From: Anju T Sudhakar On Wednesday 19 July 2017 03:06 AM, Madhavan Srinivasan wrote: Add support to register Core In-Memory Collection pmu counters. Patch adds core imc specific data structures, along with memory init functions and cpuhotp

Re: [PATCH v13 3/5] powerpc/perf: Add nest imc pmu support

2017-07-22 Thread Madhavan Srinivasan
my bad, missed to change the authership of this patch. From: Anju T Sudhakar On Wednesday 19 July 2017 03:06 AM, Madhavan Srinivasan wrote: Add support to register Nest In-Memory Collection pmu counters. Patch adds a new device file called "imc-pmu.c" under powerpc/perf folder to contain all t