From: Nicholas Piggin <npiggin@gmail.com>
To: Balbir Singh <bsingharora@gmail.com>
Cc: "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)"
<linuxppc-dev@lists.ozlabs.org>,
Michael Ellerman <mpe@ellerman.id.au>
Subject: Re: [PATCH v3 3/3] powernv/kdump: Fix cases where the kdump kernel can get HMI's
Date: Fri, 15 Dec 2017 14:47:33 +1000 [thread overview]
Message-ID: <20171215144733.1ca08521@roar.ozlabs.ibm.com> (raw)
In-Reply-To: <CAKTCnzkn2_LUn=NLQS6-c4hHR4uXt=jX4q-eGO_9xZhjo0v26Q@mail.gmail.com>
On Fri, 15 Dec 2017 14:34:03 +1100
Balbir Singh <bsingharora@gmail.com> wrote:
> On Fri, Dec 15, 2017 at 2:10 PM, Nicholas Piggin <npiggin@gmail.com> wrote:
> > On Fri, 15 Dec 2017 12:27:40 +1100
> > Balbir Singh <bsingharora@gmail.com> wrote:
> > But then you still need an explicit kdump check for non-sreset wakeups
> > because the platform may not implement sreset, or it may fall back to
> > normal IPI if the sreset scom fails. So you then still need your
> >
> > if (kdump) crash_ipi_callback
>
> Yep, its required for the the non NMI case.
>
>
> How does this look -- based on your comment
>
> + } else if ((srr1 & wmask) == SRR1_WAKESRESET) {
> + irq_set_pending_from_srr1(srr1);
> + /* Does not return */
> }
> +
> smp_mb();
>
> /*
> * For kdump kernels, we process the ipi and jump to
> - * handling the system reset exception.
> + * crash_ipi_callback
> */
> - if (kdump_in_progress())
> - irq_set_pending_from_srr1(srr1);
> + if (kdump_in_progress()) {
> + /*
> + * If we got to this point, we've not used
> + * NMI's, otherwise we would have gone
> + * via the SRR1_WAKESRESET path. We are
> + * using regular IPI's for waking up offline
> + * threads.
> + */
> + struct pt_regs regs;
> +
> + ppc_save_regs(®s);
> + crash_ipi_callback(regs);
> + /* Does not return */
> + }
That looks like it should do the trick.
Thanks,
Nick
prev parent reply other threads:[~2017-12-15 4:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-15 1:27 [PATCH v3 1/3] powerpc/crash: Remove the test for cpu_online in the IPI callback Balbir Singh
2017-12-15 1:27 ` [PATCH v3 2/3] powerpc/powernv: Identify scom driven system reset Balbir Singh
2017-12-15 2:44 ` Nicholas Piggin
2017-12-15 2:54 ` Balbir Singh
2017-12-15 2:58 ` Nicholas Piggin
2017-12-15 1:27 ` [PATCH v3 3/3] powernv/kdump: Fix cases where the kdump kernel can get HMI's Balbir Singh
2017-12-15 3:10 ` Nicholas Piggin
2017-12-15 3:34 ` Balbir Singh
2017-12-15 4:47 ` Nicholas Piggin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171215144733.1ca08521@roar.ozlabs.ibm.com \
--to=npiggin@gmail.com \
--cc=bsingharora@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).