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;
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
-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
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
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
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
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
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
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
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
10 matches
Mail list logo