Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1664142 > unrolled thread
| Started by | "Luck, Tony" <tony.luck@intel.com> |
|---|---|
| First post | 2017-06-12 20:10 +0200 |
| Last post | 2017-06-12 21:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] x86/mce: Always save severity in machine_check_poll "Luck, Tony" <tony.luck@intel.com> - 2017-06-12 20:10 +0200
RE: [PATCH] x86/mce: Always save severity in machine_check_poll "Ghannam, Yazen" <Yazen.Ghannam@amd.com> - 2017-06-12 21:00 +0200
| From | "Luck, Tony" <tony.luck@intel.com> |
|---|---|
| Date | 2017-06-12 20:10 +0200 |
| Subject | Re: [PATCH] x86/mce: Always save severity in machine_check_poll |
| Message-ID | <tRBWN-5Ex-5@gated-at.bofh.it> |
On Mon, Jun 12, 2017 at 11:54:06AM -0500, Yazen Ghannam wrote: > - severity = mce_severity(&m, mca_cfg.tolerant, NULL, false); > - > - if (severity == MCE_DEFERRED_SEVERITY && mce_is_memory_error(&m)) > - if (m.status & MCI_STATUS_ADDRV) > - m.severity = severity; > + m.severity = mce_severity(&m, mca_cfg.tolerant, NULL, false); So that isn't quite the same. Before we only set m.severity for memory errors where we had a valid address. Now you unconditionally set it. Maybe that's more useful. But it now needs an audit of the code the registered notifiers to make sure they didn't assume that severity set meant that this is a memory error. -Tony
[toc] | [next] | [standalone]
| From | "Ghannam, Yazen" <Yazen.Ghannam@amd.com> |
|---|---|
| Date | 2017-06-12 21:00 +0200 |
| Message-ID | <tRCJb-5Vh-3@gated-at.bofh.it> |
| In reply to | #1664142 |
> -----Original Message----- > From: linux-edac-owner@vger.kernel.org [mailto:linux-edac- > owner@vger.kernel.org] On Behalf Of Luck, Tony > Sent: Monday, June 12, 2017 2:08 PM > To: Ghannam, Yazen <Yazen.Ghannam@amd.com> > Cc: linux-edac@vger.kernel.org; Borislav Petkov <bp@suse.de>; > x86@kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] x86/mce: Always save severity in machine_check_poll > > On Mon, Jun 12, 2017 at 11:54:06AM -0500, Yazen Ghannam wrote: > > - severity = mce_severity(&m, mca_cfg.tolerant, NULL, false); > > - > > - if (severity == MCE_DEFERRED_SEVERITY && > mce_is_memory_error(&m)) > > - if (m.status & MCI_STATUS_ADDRV) > > - m.severity = severity; > > + m.severity = mce_severity(&m, mca_cfg.tolerant, NULL, false); > > So that isn't quite the same. Before we only set m.severity for memory errors > where we had a valid address. Now you unconditionally set it. > > Maybe that's more useful. But it now needs an audit of the code the > registered notifiers to make sure they didn't assume that severity set meant > that this is a memory error. > Only the SRAO notifier checks for severity as far as I can tell, and it specifically checks for m.serverity=MCE_SRAO_SEVERITY. However, it looks like all the other actionable notifiers check for a memory error either using mce_is_memory_error() or by checking the status bits directly. Thanks, Yazen
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web