Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754325AbdDQR3O (ORCPT ); Mon, 17 Apr 2017 13:29:14 -0400 Received: from g2t2353.austin.hpe.com ([15.233.44.26]:11363 "EHLO g2t2353.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752223AbdDQR3L (ORCPT ); Mon, 17 Apr 2017 13:29:11 -0400 From: "Kani, Toshimitsu" To: "dan.j.williams@intel.com" , "linux-nvdimm@lists.01.org" CC: "linux-kernel@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "vishal.l.verma@intel.com" Subject: Re: [PATCH 2/5] acpi, nfit: add support for acpi 6.1 dimm state flags Thread-Topic: [PATCH 2/5] acpi, nfit: add support for acpi 6.1 dimm state flags Thread-Index: AQHStUEz21QkPPQf3UOFZyO5Pc7MRKHJ1ZOA Date: Mon, 17 Apr 2017 17:28:56 +0000 Message-ID: <1492450115.26622.3.camel@hpe.com> References: <149218909065.3926.1234846095650907678.stgit@dwillia2-desk3.amr.corp.intel.com> <149218910195.3926.13927602427357940056.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <149218910195.3926.13927602427357940056.stgit@dwillia2-desk3.amr.corp.intel.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.163.8] x-microsoft-exchange-diagnostics: 1;CS1PR84MB0295;7:sgu/OevocMq7gKW9v1w2dgyKX4tJIIHKU8ZUbbcoNOUhZjncheb0MFVFVXdFL/Fqk41uwc8OLbjg3opLvrsbEQu0A68Y734WELnrkXxk1frBK0cQPFpzP9aHlSa/H6R27CwEpmYa29LwfAIoqzXbT9NcOxytz4gUW95lLs9c283B3DeZi6tEcO2JaWALoocaii/TdjnpjGGzNC6yyuhF2DQdc6ktfZvJ24gepZAFsWwtFBzuTtFySfI0EwzF6NL85dJb7AN8vc8TAUbMe9ofDRnjcnIEEVlxiaiNDp9ydzfEWkQtjpwSrGNIBFjIvnp0BHe+uQ9rXzVVwnIa7IQEww== x-ms-office365-filtering-correlation-id: 9e18790f-c89d-475c-b592-08d485b73a27 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075);SRVR:CS1PR84MB0295; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123564025)(20161123560025)(6072148);SRVR:CS1PR84MB0295;BCL:0;PCL:0;RULEID:;SRVR:CS1PR84MB0295; x-forefront-prvs: 02801ACE41 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(39450400003)(39840400002)(39850400002)(39400400002)(377424004)(51914003)(102836003)(7736002)(6116002)(25786009)(76176999)(36756003)(5660300001)(3846002)(305945005)(6246003)(38730400002)(53936002)(54906002)(4326008)(122556002)(6512007)(2501003)(189998001)(86362001)(66066001)(6506006)(6436002)(54356999)(6486002)(33646002)(77096006)(103116003)(2900100001)(8936002)(3280700002)(2906002)(3660700001)(81166006)(2950100002)(50986999)(8676002);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR84MB0295;H:CS1PR84MB0294.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2017 17:28:56.5397 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR84MB0295 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 v3HHTJ6D001040 Content-Length: 1661 Lines: 43 On Fri, 2017-04-14 at 09:58 -0700, Dan Williams wrote: > Add support for the ACPI_NFIT_MEM_MAP_FAILED ("map_fail") and > ACPI_NFIT_MEM_HEALTH_ENABLED ("smart_notify") health state flags. The > "map_fail" flag identifies DIMMs that were not mapped into one or > more physical address ranges. The "health_notify" flag indicates > whether platform firmware will send notifications when there is new > SMART health data to consume. > > Signed-off-by: Dan Williams > --- >  drivers/acpi/nfit/core.c |    6 ++++-- >  1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c > index 53943d6f4214..05829de43b1d 100644 > --- a/drivers/acpi/nfit/core.c > +++ b/drivers/acpi/nfit/core.c > @@ -1246,12 +1246,14 @@ static ssize_t flags_show(struct device *dev, >  { >   u16 flags = to_nfit_memdev(dev)->flags; >   > - return sprintf(buf, "%s%s%s%s%s\n", > + return sprintf(buf, "%s%s%s%s%s%s%s\n", >   flags & ACPI_NFIT_MEM_SAVE_FAILED ? "save_fail " : > "", >   flags & ACPI_NFIT_MEM_RESTORE_FAILED ? "restore_fail > " : "", >   flags & ACPI_NFIT_MEM_FLUSH_FAILED ? "flush_fail " : > "", >   flags & ACPI_NFIT_MEM_NOT_ARMED ? "not_armed " : "", > - flags & ACPI_NFIT_MEM_HEALTH_OBSERVED ? "smart_event > " : ""); > + flags & ACPI_NFIT_MEM_HEALTH_OBSERVED ? "smart_event > " : "", > + flags & ACPI_NFIT_MEM_MAP_FAILED ? "map_fail " : "", > + flags & ACPI_NFIT_MEM_HEALTH_ENABLED ? "smart_notify > " : ""); Thanks for the update! The above change looks good, but we will also need to make the same changes to the dev_info() in acpi_nfit_register_dimms(). -Toshi