From: Chen Yucong <slaoub@gmail.com>
To: gong.chen@linux.intel.com
Cc: andi@firstfloor.org, linux-edac@vger.kernel.org,
linux-kernel@vger.kernel.org, Borislav Petkov <bp@alien8.de>,
"Luck, Tony" <tony.luck@intel.com>
Subject: Re: [PATCH] x86, MCE: support raising machine check poll for software MCE injection in IRQ context
Date: Sun, 28 Sep 2014 11:38:13 +0800 [thread overview]
Message-ID: <1411875493.2029.78.camel@cyc> (raw)
In-Reply-To: <1407847544-13224-1-git-send-email-slaoub@gmail.com>
On Tue, 2014-08-12 at 20:45 +0800, Chen Yucong wrote:
> At present MCJ_NMI_BROADCAST(same for raise_local) supports both raise_exception()
> and raise_poll(), but MCJ_IRQ_BROADCAST only supports raise_exception(). The goal
> of this patch is that MCJ_IRQ_BROADCAST can support raising machine check poll.
>
> Signed-off-by: Chen Yucong <slaoub@gmail.com>
> ---
> arch/x86/kernel/cpu/mcheck/mce-inject.c | 10 ++++++----
> 1 file changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/mcheck/mce-inject.c b/arch/x86/kernel/cpu/mcheck/mce-inject.c
> index 5ac2d1f..97e4f7a 100644
> --- a/arch/x86/kernel/cpu/mcheck/mce-inject.c
> +++ b/arch/x86/kernel/cpu/mcheck/mce-inject.c
> @@ -99,11 +99,13 @@ static void mce_irq_ipi(void *info)
> int cpu = smp_processor_id();
> struct mce *m = &__get_cpu_var(injectm);
>
> - if (cpumask_test_cpu(cpu, mce_inject_cpumask) &&
> - m->inject_flags & MCJ_EXCEPTION) {
> - cpumask_clear_cpu(cpu, mce_inject_cpumask);
> + if (!cpumask_test_cpu(cpu, mce_inject_cpumask))
> + return;
> + cpumask_clear_cpu(cpu, mce_inject_cpumask);
> + if (m->inject_flags & MCJ_EXCEPTION)
> raise_exception(m, NULL);
> - }
> + else if (m->status)
> + raise_poll(m);
> }
>
> /* Inject mce on current CPU */
Hi Chen Gong,
Can you review the above patch?
thx!
cyc
prev parent reply other threads:[~2014-09-28 3:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-12 12:45 Chen Yucong
2014-09-28 3:38 ` Chen Yucong [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=1411875493.2029.78.camel@cyc \
--to=slaoub@gmail.com \
--cc=andi@firstfloor.org \
--cc=bp@alien8.de \
--cc=gong.chen@linux.intel.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tony.luck@intel.com \
/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
Powered by JetHome