Re: [PATCH] powerpc/mm: tell if a bad page fault on data is read or write.

2019-11-25 Thread Michael Ellerman
On Wed, 2019-08-21 at 15:21:55 UTC, Christophe Leroy wrote: > DSISR has a bit to tell if the fault is due to a read or a write. > > Display it. > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/46ddcb3950a28c0df4815e8dbb8d4b91d5d9f22d cheers

Re: [PATCH] powerpc/mm: tell if a bad page fault on data is read or write.

2019-08-30 Thread Christophe Leroy
Le 29/08/2019 à 14:14, Michael Ellerman a écrit : Christophe Leroy writes: DSISR has a bit to tell if the fault is due to a read or a write. Except some CPUs don't have a DSISR? Which is why we have page_fault_is_write() that's used in __do_page_fault(). And that's why I'm also using p

Re: [PATCH] powerpc/mm: tell if a bad page fault on data is read or write.

2019-08-29 Thread Christophe Leroy
Le 29/08/2019 à 14:14, Michael Ellerman a écrit : Christophe Leroy writes: DSISR has a bit to tell if the fault is due to a read or a write. Except some CPUs don't have a DSISR? Which is why we have page_fault_is_write() that's used in __do_page_fault(). Or is that old cruft? I see eg.

Re: [PATCH] powerpc/mm: tell if a bad page fault on data is read or write.

2019-08-29 Thread Michael Ellerman
Christophe Leroy writes: > DSISR has a bit to tell if the fault is due to a read or a write. Except some CPUs don't have a DSISR? Which is why we have page_fault_is_write() that's used in __do_page_fault(). Or is that old cruft? I see eg. in head_40x.S we pass r5=0 for error code, and we don't

Re: [PATCH] powerpc/mm: tell if a bad page fault on data is read or write.

2019-08-25 Thread Santosh Sivaraj
Christophe Leroy writes: > DSISR has a bit to tell if the fault is due to a read or a write. > > Display it. > > Signed-off-by: Christophe Leroy Reviewed-by: Santosh Sivaraj > --- > arch/powerpc/mm/fault.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/arch/po

[PATCH] powerpc/mm: tell if a bad page fault on data is read or write.

2019-08-21 Thread Christophe Leroy
DSISR has a bit to tell if the fault is due to a read or a write. Display it. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/fault.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 8432c281de92..b5047f9b5dec