Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752469AbdFLUTD (ORCPT ); Mon, 12 Jun 2017 16:19:03 -0400 Received: from g4t3427.houston.hpe.com ([15.241.140.73]:37108 "EHLO g4t3427.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752065AbdFLUTB (ORCPT ); Mon, 12 Jun 2017 16:19:01 -0400 From: "Kani, Toshimitsu" To: "dan.j.williams@intel.com" CC: "Knippers, Linda" , "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" , "vishal.l.verma@intel.com" Subject: Re: [PATCH] libnvdimm, pmem: Add sysfs notifications to badblocks Thread-Topic: [PATCH] libnvdimm, pmem: Add sysfs notifications to badblocks Thread-Index: AQHS45r4xPappiS47U6R8lgfNSjyXaIhqseA Date: Mon, 12 Jun 2017 20:18:33 +0000 Message-ID: <1497298683.9288.14.camel@hpe.com> References: <20170612164206.5794-1-toshi.kani@hpe.com> In-Reply-To: <20170612164206.5794-1-toshi.kani@hpe.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=hpe.com; x-originating-ip: [15.219.147.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DF4PR84MB0073;7:jepL8DnvBoikVnMlRy7lGuyau+q9IhrAcWLDzBQCoFtS4NcWbfG1abUOm1+v+l+VUHwa529WelYUg4l6YL6hD/69nwaIhWrFAHdfkHNi+Hq0Qru4ReH6bvwha6/iFKesE/2gBPWJa6k+9NSkvWlO99rcaTykU2oB9EffsNHPrF0Pg1F+vxD6RDdT+WEqomqiyYjVktSNnyuaKo7RqjlvppGLrtVupjrMtumE22GCIziotSQ3OgHqE040vSU9g1U0L+yvAWXyCGaaaTgEiOOksj4NAAmniXWTnswUbZbJ6TJgLn+X208Y24QX9HoHPz+SkMQ4BeMot5aEhASlusfr6Q== x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10019020)(6009001)(39850400002)(39840400002)(39860400002)(39410400002)(39400400002)(39450400003)(24454002)(377424004)(4326008)(2501003)(6512007)(54906002)(25786009)(76176999)(54356999)(2900100001)(110136004)(5660300001)(6486002)(81166006)(6436002)(8676002)(38730400002)(33646002)(5640700003)(36756003)(6246003)(6506006)(3846002)(77096006)(102836003)(478600001)(8936002)(14454004)(103116003)(229853002)(66066001)(86362001)(6916009)(2950100002)(122556002)(2351001)(189998001)(50986999)(3280700002)(7736002)(2906002)(15650500001)(305945005)(53936002)(3660700001);DIR:OUT;SFP:1102;SCL:1;SRVR:DF4PR84MB0073;H:DF4PR84MB0105.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-traffictypediagnostic: DF4PR84MB0073: x-ms-office365-filtering-correlation-id: 5619fa54-084b-498d-2732-08d4b1d03327 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075);SRVR:DF4PR84MB0073; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DF4PR84MB0073;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DF4PR84MB0073; x-forefront-prvs: 03361FCC43 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <1FA8DD5320B3B64C939B0C97E1C8AE0A@NAMPRD84.PROD.OUTLOOK.COM> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2017 20:18:33.4350 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR84MB0073 X-OriginatorOrg: hpe.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v5CKJ8DU008066 Content-Length: 484 Lines: 12 On Mon, 2017-06-12 at 10:42 -0600, Toshi Kani wrote: > Sysfs "badblocks" information may be updated during run-time via > MCE, SCI, and sysfs "scrub". > > Add support to send sysfs notifications to sysfs "badblocks" file > under region and pmem directories when their badblocks information > is re-evaluated (but is not necessarily changed) during run-time. Thinking further, this notification should be sent when a badblock is cleared via _DSM. I will update and send v2. -Toshi