Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751632AbdFHS0m (ORCPT ); Thu, 8 Jun 2017 14:26:42 -0400 Received: from g2t2352.austin.hpe.com ([15.233.44.25]:51356 "EHLO g2t2352.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445AbdFHS0k (ORCPT ); Thu, 8 Jun 2017 14:26:40 -0400 X-Greylist: delayed 2878 seconds by postgrey-1.27 at vger.kernel.org; Thu, 08 Jun 2017 14:26:39 EDT From: "Kani, Toshimitsu" To: "dan.j.williams@intel.com" , "Knippers, Linda" CC: "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" , "linux-acpi@vger.kernel.org" , "rjw@rjwysocki.net" , "vishal.l.verma@intel.com" Subject: Re: [PATCH] Add support of NVDIMM memory error notification in ACPI 6.2 Thread-Topic: [PATCH] Add support of NVDIMM memory error notification in ACPI 6.2 Thread-Index: AQHS3770gIvIG2RgykSVdl0qpZhIVKIZw7kAgAAeJICAAAKEgIAAB20AgAFOpoCAAAD8AIAAAP6AgAANewA= Date: Thu, 8 Jun 2017 18:26:36 +0000 Message-ID: <1496946370.9288.7.camel@hpe.com> References: <20170607184947.18733-1-toshi.kani@hpe.com> <1496869051.9288.1.camel@hpe.com> <1496871186.9288.3.camel@hpe.com> <1496943475.9288.5.camel@hpe.com> In-Reply-To: <1496943475.9288.5.camel@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.211.195.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DF4PR84MB0076;7:EtnByyfJepSA72A0/KeDs12PnuWc8sg9k/dfKoaI0/YbWGPhowho20ngp4EiSJ4DM7rNK9Bo2mFyOP91+TlJ1BlFE/Vwk6fQD4VQCGMVxjEW/4E+tkQtd4K5svuE7K0foUTnD/KcnXIh4MPSb/+D3+WDvMUqbsVgEhGjXWpYIZBWt5Yu2Bc3Yl7/f7RIBg8wTTilp62P5ZnxHNX4KxJI4nQ0G409W4UuIEEukYZqFNyZiXds8DNaXUFIwKRh7ZdwriPhGkYvAs1/7cVfr9NNH83GI+V95jPamC9q/d4QAxFeUz6Yoc74bVFOGEoL3xcaH+nLwL8ptPGjMuDRwpM32Q== x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10019020)(6009001)(39450400003)(39850400002)(39410400002)(39400400002)(39840400002)(39860400002)(377424004)(24454002)(377454003)(6512007)(66066001)(54356999)(2950100002)(76176999)(33646002)(50986999)(8676002)(81166006)(229853002)(8936002)(5660300001)(86362001)(2501003)(93886004)(478600001)(6636002)(14454004)(305945005)(53546009)(15650500001)(3660700001)(25786009)(102836003)(77096006)(6506006)(3846002)(6436002)(3280700002)(2906002)(36756003)(4326008)(54906002)(2900100001)(38730400002)(122556002)(53936002)(7736002)(189998001)(6246003)(6486002)(103116003);DIR:OUT;SFP:1102;SCL:1;SRVR:DF4PR84MB0076;H:DF4PR84MB0105.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;MLV:sfv;LANG:en; x-ms-traffictypediagnostic: DF4PR84MB0076: x-ms-office365-filtering-correlation-id: 81c42838-f738-4b0d-7596-08d4ae9be604 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081);SRVR:DF4PR84MB0076; 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)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DF4PR84MB0076;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DF4PR84MB0076; x-forefront-prvs: 0332AACBC3 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jun 2017 18:26:36.7204 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR84MB0076 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 v58IQqN8030975 Content-Length: 1860 Lines: 41 On Thu, 2017-06-08 at 11:37 -0600, Toshi Kani wrote: > On Thu, 2017-06-08 at 10:34 -0700, Dan Williams wrote: > > On Thu, Jun 8, 2017 at 10:30 AM, Linda Knippers > .c > > om> wrote: > > [..] > > > Wasn't Dan concerned about how the OS can know whether the FW > > > supports that bit in the Start ARS? > > > > > > The Query ARS Capabilities DSM has a bit that tells the OS > > > whether the platform supports the notification and the point of > > > the notification was to tell the OS it could do a Start ARS with > > > bit 1 set.  Of course, if you get the notification then that > > > means the platform has the capability to deliver it, but it might > > > not hurt to check the flag from the Query Capabilities bit. > > > > Good point, yes, I think it is safe to assume that a BIOS that > > claims to support un-correctable error notification also supports > > this Start ARS flag. > > Yes, ACPI 6.2, section 9.20.7.2, defines that: > >       Upon receiving the notification, the OSPM may decide to issue >       a Start ARS with Flags Bit [1] set to prepare for the retrieval >       of existing records and issue the Query ARS Status function to >       retrieve the records. > > So, I believe it is safe to assume that BIOS supporting 0x81 also > supports flags Bit [1].  Sorry, this is what I should have said in my > previous email... To reiterate my thinking, I believe the statement above clarifies that the OS can assume BIOS support of Flags Bit[1] upon receiving a 0x81 notification. Since BIOS may also support Flags Bit[1] without supporting this 0x81 (in which case I do not know how to detect it, but BIOS should simply ignore this bit when not supporting it), I am not going to add a check/restriction that 0x81 support is necessary to set Bit[1] in the scan function. Thanks, -Toshi