Message ID | 20170425210740.GA15722@omniknight.lm.intel.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
T24gVHVlLCAyMDE3LTA0LTI1IGF0IDE1OjA3IC0wNjAwLCBWaXNoYWwgVmVybWEgd3JvdGU6DQo+ IE9uIDA0LzI0LCBCb3Jpc2xhdiBQZXRrb3Ygd3JvdGU6DQo+ID4gRnJvbTogQm9yaXNsYXYgUGV0 a292IDxicEBzdXNlLmRlPg0KPiA+IERhdGU6IE1vbiwgMjQgQXByIDIwMTcgMTM6MTY6NTAgKzAy MDANCj4gPiBTdWJqZWN0OiBbUEFUQ0ggMS8yXSB4ODYvTUNFOiBFeHBvcnQgbWVtb3J5X2Vycm9y KCkNCj4gPiANCj4gPiBFeHBvcnQgdGhlIGZ1bmN0aW9uIHdoaWNoIGNoZWNrcyB3aGV0aGVyIGFu IE1DRSBpcyBhIG1lbW9yeSBlcnJvciB0bw0KPiA+IG90aGVyIHVzZXJzIHNvIHRoYXQgd2UgY2Fu IHJldXNlIHRoZSBsb2dpYy4gRHJvcCB0aGUgYm9vdF9jcHVfZGF0YQ0KPiA+IHVzZSwNCj4gPiB3 aGlsZSBhdCBpdCwgYXMgbWNlLmNwdXZlbmRvciBhbHJlYWR5IGhhcyB0aGUgQ1BVIHZlbmRvciBp biB0aGVyZS4NCj4gPiANCj4gPiBTaWduZWQtb2ZmLWJ5OiBCb3Jpc2xhdiBQZXRrb3YgPGJwQHN1 c2UuZGU+DQo+ID4gLS0tDQo+ID4gwqBhcmNoL3g4Ni9pbmNsdWRlL2FzbS9tY2UuaMKgwqDCoMKg wqDCoMKgfMKgwqAxICsNCj4gPiDCoGFyY2gveDg2L2tlcm5lbC9jcHUvbWNoZWNrL21jZS5jIHwg MTIgKysrKystLS0tLS0tDQo+ID4gwqAyIGZpbGVzIGNoYW5nZWQsIDYgaW5zZXJ0aW9ucygrKSwg NyBkZWxldGlvbnMoLSkNCj4gPiANCg0KSGkgQm9yaXMvVG9ueSwNCg0KSSB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pc19tZW1vcnlfZXJyb3IpOw0KPiDC oA0KPiDCoHN0YXRpYyBib29sIGNlY19hZGRfbWNlKHN0cnVjdCBtY2UgKm0pDQo+IMKgew0KPiBk aWZmIC0tZ2l0IGEvZHJpdmVycy9hY3BpL25maXQvbWNlLmMgYi9kcml2ZXJzL2FjcGkvbmZpdC9t Y2UuYw0KPiBpbmRleCAzYmExYzM0Li5mZDg2YmVjIDEwMDY0NA0KPiAtLS0gYS9kcml2ZXJzL2Fj cGkvbmZpdC9tY2UuYw0KPiArKysgYi9kcml2ZXJzL2FjcGkvbmZpdC9tY2UuYw0KPiBAQCAtMjYs NyArMjYsNyBAQCBzdGF0aWMgaW50IG5maXRfaGFuZGxlX21jZShzdHJ1Y3Qgbm90aWZpZXJfYmxv Y2sNCj4gKm5iLCB1bnNpZ25lZCBsb25nIHZhbCwNCj4gwqAJc3RydWN0IG5maXRfc3BhICpuZml0 X3NwYTsNCj4gwqANCj4gwqAJLyogV2Ugb25seSBjYXJlIGFib3V0IG1lbW9yeSBlcnJvcnMgKi8N Cj4gLQlpZiAoIShtY2UtPnN0YXR1cyAmIE1DQUNPRCkpDQo+ICsJaWYgKCFtY2VfaXNfbWVtb3J5 X2Vycm9yKG1jZSkpDQo+IMKgCQlyZXR1cm4gTk9USUZZX0RPTkU7DQo+IMKgDQo+IMKgCS8q -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, May 10, 2017 at 07:31:30PM +0000, Verma, Vishal L wrote:
> I didn't see the above patches in the RAS branches of the tip tree -
You need to be patient - we have merge window right now. Next week,
after -rc1 releases, it is business as usual again.
On Wed, 2017-05-10 at 22:04 +0200, Borislav Petkov wrote: > On Wed, May 10, 2017 at 07:31:30PM +0000, Verma, Vishal L wrote: > > I didn't see the above patches in the RAS branches of the tip tree - > > You need to be patient - we have merge window right now. Next week, > after -rc1 releases, it is business as usual again. > Ah I was under the impression that this can go in for 4.12..
On Wed, May 10, 2017 at 08:06:53PM +0000, Verma, Vishal L wrote:
> Ah I was under the impression that this can go in for 4.12..
... and the reason for hurrying it into 4.12 is?
On Wed, 2017-05-10 at 22:08 +0200, Borislav Petkov wrote: > On Wed, May 10, 2017 at 08:06:53PM +0000, Verma, Vishal L wrote: > > Ah I was under the impression that this can go in for 4.12.. > > ... and the reason for hurrying it into 4.12 is? > The memory error check in the nfit handler is a valid, and simple fix. That said, I understand if you want additional soak time for the full set. Thanks, -Vishal
On Wed, May 10, 2017 at 09:12:12PM +0000, Verma, Vishal L wrote:
> The memory error check in the nfit handler is a valid, and simple fix.
I need the big picture here: "Without this fix, the nfit handler ...".
Then, if the stable rules apply, we can always expedite it through
urgent/stable.
On Wed, 2017-05-10 at 23:57 +0200, Borislav Petkov wrote: > On Wed, May 10, 2017 at 09:12:12PM +0000, Verma, Vishal L wrote: > > The memory error check in the nfit handler is a valid, and simple > > fix. > > I need the big picture here: "Without this fix, the nfit handler ...". ..will potentially add bogus address to an 'error list', even when there may not have been a memory error. (can mce->addr have an address when the mce is not due to a memory error?) The result of adding an address to this list is that future accesses to this location will prematurely error out. Depending on how frequently machine checks happen that are not memory errors but have the addr field set (hopefully rare anyway), we could be incorrectly marking a lot of locations as media errors. > > Then, if the stable rules apply, we can always expedite it through > urgent/stable. >
On Wed, May 10, 2017 at 10:03:42PM +0000, Verma, Vishal L wrote: > ... Depending on how frequently machine checks happen that are not > memory errors but have the addr field set (hopefully rare anyway), we > could be incorrectly marking a lot of locations as media errors. Sounds serious enough to me, thanks. I'll prep the queue next week and run tests.
On Thu, 2017-05-11 at 00:16 +0200, Borislav Petkov wrote: > On Wed, May 10, 2017 at 10:03:42PM +0000, Verma, Vishal L wrote: > > ... Depending on how frequently machine checks happen that are not > > memory errors but have the addr field set (hopefully rare anyway), > > we > > could be incorrectly marking a lot of locations as media errors. > > Sounds serious enough to me, thanks. > > I'll prep the queue next week and run tests. > Ok, Thanks Boris! -Vishal
On Wed, May 10, 2017 at 10:22:32PM +0000, Verma, Vishal L wrote: > > I'll prep the queue next week and run tests. > > > Ok, Thanks Boris! Ok, I've pushed a branch: https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/log/?h=tip-ras-pending Please have a look, test, poke, etc... Thanks.
On Wed, 2017-05-17 at 14:38 +0200, Borislav Petkov wrote: > On Wed, May 10, 2017 at 10:22:32PM +0000, Verma, Vishal L wrote: > > > I'll prep the queue next week and run tests. > > > > > > > Ok, Thanks Boris! > > Ok, I've pushed a branch: > > https://git.kernel.org/pub/scm/linux/kernel/git/bp/bp.git/log/?h=tip-r > as-pending > > Please have a look, test, poke, etc... Quick/minor observation - you moved the EXPORT_SYMBOL_GPL into your original patch, but the commit message of mine still talks about exporting. Perhaps it should read: "Use the new mce_is_memory_error() helper.." Thanks, Vishal > > Thanks. >
On Wed, May 17, 2017 at 06:58:00PM +0000, Verma, Vishal L wrote: > Quick/minor observation - you moved the EXPORT_SYMBOL_GPL into your Yes, it belongs there conceptually. > original patch, but the commit message of mine still talks about > exporting. Perhaps it should read: > > "Use the new mce_is_memory_error() helper.." Fixed, thanks.
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 361865ca..5cfbaeb 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -527,6 +527,7 @@ bool mce_is_memory_error(struct mce *m) return false; } +EXPORT_SYMBOL_GPL(mce_is_memory_error); static bool cec_add_mce(struct mce *m) { diff --git a/drivers/acpi/nfit/mce.c b/drivers/acpi/nfit/mce.c index 3ba1c34..fd86bec 100644 --- a/drivers/acpi/nfit/mce.c +++ b/drivers/acpi/nfit/mce.c @@ -26,7 +26,7 @@ static int nfit_handle_mce(struct notifier_block *nb, unsigned long val, struct nfit_spa *nfit_spa; /* We only care about memory errors */ - if (!(mce->status & MCACOD)) + if (!mce_is_memory_error(mce)) return NOTIFY_DONE; /*