From: Borislav Petkov <bp@alien8.de>
To: "Ghannam, Yazen" <Yazen.Ghannam@amd.com>
Cc: "linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>,
Tony Luck <tony.luck@intel.com>,
"x86@kernel.org" <x86@kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86/mce: Always save severity in machine_check_poll
Date: Mon, 19 Jun 2017 18:48:40 +0200 [thread overview]
Message-ID: <20170619164840.xzo45lyprm3h4yat@pd.tnic> (raw)
In-Reply-To: <BN6PR1201MB0131254195FEF7C8049C20E9F8C10@BN6PR1201MB0131.namprd12.prod.outlook.com>
On Fri, Jun 16, 2017 at 02:49:58PM +0000, Ghannam, Yazen wrote:
> The code block being removed here was added in the following commit to decide
> whether or not to schedule work.
>
> fa92c58 x86, mce: Support memory error recovery for both UCNA and Deferred error in machine_check_poll
Are you sure?
That commit makes the code log poison memory errors which have a valid
address. The work being scheduled is only an implementation detail for
how we're doing the logging and calling to the userspace handlers to
start consuming.
Btw, do
$ git config --replace-all core.abbrev 12
to set your commit abbreviation length to 12 so that there's no
ambiguity for the recent years. :)
> The following commit based the decision to schedule work on if we have a usable
> address and made this decision later in machine_check_poll().
> 8b38937b x86/mce: Do not enter deferred errors into the generic pool twice
Yes, because we were logging them twice.
> Then the following commit removed m.usable_addr from the code block.
>
> c0ec382 x86/RAS: Remove mce.usable_addr
That's just a cleanup.
> So now this code block just decides whether or not to save the severity. We can
> remove this block, since the original purpose of this code (to schedule work) is no
> longer happening.
Not really. The original purpose of this code was to log deferred errors
with AddrV set - the work scheduling is just an implementation detail,
as I mentioned above.
> Tony has a concern that some notifiers may assume that the severity being
> set means that the error is a memory error. As far as I can tell, the only notifier
> that uses severity is the SRAO notifier and it doesn't make an assumption.
>
> We schedule work if we want to log the error or if we have a usable address.
> So there's no reason not to save the severity anymore.
Just forget the work scheduling - it is only a marginal implementation
thing - you only want to say that we want to log the severity since we
already have it. And the most important aspect in your v2 commit message
is explaining *why* we want the severity. And yes, it is possible to
simply say, this is a cleanup and we can just as well always save it
because it is a valid reason. And it makes sense too.
All I'm trying to remind you of, is, you should explain in your commit
message what the issue is and *why* you're doing the change. When the
first sentence of your commit message is "Remove code that was used
to decide whether to schedule work." I'm starting to scratch my head,
wondering, what the actual problem is and what you're trying to fix.
Ok?
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
next prev parent reply other threads:[~2017-06-19 16:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-12 16:54 Yazen Ghannam
2017-06-12 18:07 ` Luck, Tony
2017-06-12 18:55 ` Ghannam, Yazen
2017-06-14 14:20 ` Borislav Petkov
2017-06-16 14:49 ` Ghannam, Yazen
2017-06-19 16:48 ` Borislav Petkov [this message]
2017-06-21 19:41 ` Ghannam, Yazen
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=20170619164840.xzo45lyprm3h4yat@pd.tnic \
--to=bp@alien8.de \
--cc=Yazen.Ghannam@amd.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
/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
all inboxes | Powered by JetHome®