Re: [v2 09/12] powerpc/mce: Enable MCE notifiers in external modules

2019-07-08 Thread Reza Arbab
On Fri, Jul 05, 2019 at 03:29:39PM +1000, Nicholas Piggin wrote: Okay. It might be possible to save the address in the kernel and then notify the driver afterward. For user-mode and any non-atomic user copy AFAIK the irq_work should practically run synchronously after the machine check returns

Re: [v2 09/12] powerpc/mce: Enable MCE notifiers in external modules

2019-07-04 Thread Nicholas Piggin
Reza Arbab's on July 5, 2019 12:50 pm: > On Thu, Jul 04, 2019 at 12:36:18PM +1000, Nicholas Piggin wrote: >>Reza Arbab's on July 4, 2019 3:20 am: >>> Since the notifier chain is actually part of the decision between (1) >>> and (2), it's a hard limitation then that callbacks be in real address >>>

Re: [v2 09/12] powerpc/mce: Enable MCE notifiers in external modules

2019-07-04 Thread Reza Arbab
On Thu, Jul 04, 2019 at 12:36:18PM +1000, Nicholas Piggin wrote: Reza Arbab's on July 4, 2019 3:20 am: Since the notifier chain is actually part of the decision between (1) and (2), it's a hard limitation then that callbacks be in real address space. Is there any way to structure things so

Re: [v2 09/12] powerpc/mce: Enable MCE notifiers in external modules

2019-07-03 Thread Nicholas Piggin
Reza Arbab's on July 4, 2019 3:20 am: > On Tue, Jul 02, 2019 at 04:17:11PM +1000, Nicholas Piggin wrote: >>Santosh Sivaraj's on July 2, 2019 3:19 pm: >>> --- a/arch/powerpc/kernel/exceptions-64s.S >>> +++ b/arch/powerpc/kernel/exceptions-64s.S >>> @@ -458,6 +458,12 @@

Re: [v2 09/12] powerpc/mce: Enable MCE notifiers in external modules

2019-07-03 Thread Reza Arbab
On Tue, Jul 02, 2019 at 04:17:11PM +1000, Nicholas Piggin wrote: Santosh Sivaraj's on July 2, 2019 3:19 pm: --- a/arch/powerpc/kernel/exceptions-64s.S +++ b/arch/powerpc/kernel/exceptions-64s.S @@ -458,6 +458,12 @@ EXC_COMMON_BEGIN(machine_check_handle_early) bl machine_check_early

Re: [v2 09/12] powerpc/mce: Enable MCE notifiers in external modules

2019-07-02 Thread Mahesh Jagannath Salgaonkar
On 7/2/19 11:47 AM, Nicholas Piggin wrote: > Santosh Sivaraj's on July 2, 2019 3:19 pm: >> From: Reza Arbab >> >> Signed-off-by: Reza Arbab >> --- >> arch/powerpc/kernel/exceptions-64s.S | 6 ++ >> arch/powerpc/kernel/mce.c| 2 ++ >> 2 files changed, 8 insertions(+) >> >> diff

Re: [v2 09/12] powerpc/mce: Enable MCE notifiers in external modules

2019-07-02 Thread Nicholas Piggin
Santosh Sivaraj's on July 2, 2019 3:19 pm: > From: Reza Arbab > > Signed-off-by: Reza Arbab > --- > arch/powerpc/kernel/exceptions-64s.S | 6 ++ > arch/powerpc/kernel/mce.c| 2 ++ > 2 files changed, 8 insertions(+) > > diff --git a/arch/powerpc/kernel/exceptions-64s.S >

[v2 09/12] powerpc/mce: Enable MCE notifiers in external modules

2019-07-01 Thread Santosh Sivaraj
From: Reza Arbab Signed-off-by: Reza Arbab --- arch/powerpc/kernel/exceptions-64s.S | 6 ++ arch/powerpc/kernel/mce.c| 2 ++ 2 files changed, 8 insertions(+) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index