Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752360AbdFQAv1 (ORCPT ); Fri, 16 Jun 2017 20:51:27 -0400 Received: from g4t3425.houston.hpe.com ([15.241.140.78]:20544 "EHLO g4t3425.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752026AbdFQAv0 (ORCPT ); Fri, 16 Jun 2017 20:51:26 -0400 From: "Kani, Toshimitsu" To: Dan Williams CC: "Verma, Vishal L" , "Knippers, Linda" , "linux-nvdimm@lists.01.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2] libnvdimm, pmem: Add sysfs notifications to badblocks Thread-Topic: [PATCH v2] libnvdimm, pmem: Add sysfs notifications to badblocks Thread-Index: AQHS48rXHia2DqmigUe4/diXsaUyG6ImdmGAgAG8HmCAAAxdAIAAAPVQ Date: Sat, 17 Jun 2017 00:51:21 +0000 Message-ID: References: <20170612222511.22030-1-toshi.kani@hpe.com> In-Reply-To: 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: [106.143.130.118] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CS1PR84MB0069;7:77KribAvsng8iEfnrj8dqQUu5tQZaWiE8Z1h+UNFEFW0bnq+CwEX9ajV3ozOy8kjb5wJ6BzLnD3FqPvhesvYWPPP4d6jV123Ejcf2eNM3EV+jQKpZ4Rt70+oDUTSXk9cQD9BWEU/+UFNPLfZHLCgbP59O3iBhQ4j3Ni6/KsGOGe1v68/OdljSkDQfnFYDVJ5Mwqu4WDdi3GUj0cxT77hnKi4BoaRJNDkuo1wiF/ZGxFJHGqKXGxOA4zMdpojd+PEviWLf18K2h+6vzdvpMvIMWJof/b12JimHJAkRtgzDjEafmiN73cW/7EBAIP/KqzrQUeeVqxHkSMruoT60DYx9WS5N6jsogN3XTk78BnINpN7V11bb6WheKw46dL2uMnCzuYLuu0Qb+FqdWoWRWXQNtsP9KDoXyFArxDLwO31G3rjWWeDptdHlXLCfao6e84iXlals3UDOfeF67EukIsjw2NCxtbUJCyF7tG/YhDCuEaglJoidZ6vdsqeEjr+6+SYFy/T8f+61E9xppjp4pzK0KW3uRCwObEPEXsnC5FqlnirxzTuUOaK7pIeWkf28y0FZVOTv6/dBebdGUwtvERHuwn9rg2JbNkfdAB29/UhLPQQEhJHW/td0U5cYLfFDCzu5/NET5KxFdp1+Af5HYb08cxitG6fSnJ83lkbRr9kHPkv2WCB3EjrNkP7GhmoRgPsi5QP8V/o2rhT7xbGtS6s+bDdCocQMHsk8O0b8tqSE1ijpMNniPnECuI7bABEoEuw2gdA/31LG9BjUsLA4CNRXkPd+ta+51q03LM3Fs3bG4Q= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(39850400002)(39410400002)(39400400002)(39450400003)(39840400002)(377454003)(24454002)(15650500001)(6116002)(8676002)(229853002)(93886004)(6506006)(81166006)(2950100002)(3846002)(102836003)(2900100001)(7696004)(478600001)(6916009)(122556002)(14454004)(50986999)(54356999)(76176999)(2906002)(53546009)(25786009)(5660300001)(33656002)(66066001)(77096006)(8936002)(305945005)(4326008)(3660700001)(3280700002)(38730400002)(110136004)(7736002)(86362001)(55016002)(5890100001)(9686003)(54906002)(74316002)(6246003)(53936002)(6436002)(189998001);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR84MB0069;H:CS1PR84MB0104.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-office365-filtering-correlation-id: 40a2e634-2ed5-4a51-f873-08d4b51af8a2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081);SRVR:CS1PR84MB0069; x-ms-traffictypediagnostic: CS1PR84MB0069: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(227479698468861)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6041248)(20161123558100)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CS1PR84MB0069;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CS1PR84MB0069; x-forefront-prvs: 034119E4F6 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2017 00:51:21.0195 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR84MB0069 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 v5H0pb3k018717 Content-Length: 1470 Lines: 33 > On Fri, Jun 16, 2017 at 5:35 PM, Kani, Toshimitsu wrote: > >> On Mon, Jun 12, 2017 at 3:25 PM, Toshi Kani wrote: > >> > Sysfs "badblocks" information may be updated during run-time that: > >> > - MCE, SCI, and sysfs "scrub" may add new bad blocks > >> > - Writes and ioctl() may clear bad blocks > >> > > >> > 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. > >> > > >> > Signed-off-by: Toshi Kani > >> > Cc: Dan Williams > >> > Cc: Vishal Verma > >> > Cc: Linda Knippers > >> > --- > >> > v2: Send notifications for the clearing case > >> > --- > >> > >> This looks good to me, I've applied it, but I also want to extend the > >> ndctl unit tests to cover this mechanism. > > > > Right. For the time being, would you mind to use the attached test > > program for your sanity tests? It simply monitors sysfs notifications > > and prints badblocks info... Sorry for inconvenience. > > > > Since I am not familiar with the ndctl unit tests and I am traveling for > > the rest of the month, I may have to look into it after I am back. > > > > No worries, I'll take a look at integrating this. Have a nice trip! Thanks Dan!! I really appreciate it! -Toshi