Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752483AbdHDUt5 (ORCPT ); Fri, 4 Aug 2017 16:49:57 -0400 Received: from g4t3427.houston.hpe.com ([15.241.140.73]:35362 "EHLO g4t3427.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751260AbdHDUtz (ORCPT ); Fri, 4 Aug 2017 16:49:55 -0400 From: "Kani, Toshimitsu" To: "bp@alien8.de" CC: "linux-edac@vger.kernel.org" , "lenb@kernel.org" , "mchehab@kernel.org" , "tony.luck@intel.com" , "linux-kernel@vger.kernel.org" , "rjw@rjwysocki.net" , "linux-acpi@vger.kernel.org" Subject: Re: [PATCH v2 3/7] ACPI / APEI: add OSC APEI bit check for ghes_edac Thread-Topic: [PATCH v2 3/7] ACPI / APEI: add OSC APEI bit check for ghes_edac Thread-Index: AQHTDKTz8eNAH6BISUyEA4riB59+h6JzjpuAgAEb3wA= Date: Fri, 4 Aug 2017 20:49:51 +0000 Message-ID: <1501879218.2042.115.camel@hpe.com> References: <20170803215753.30553-1-toshi.kani@hpe.com> <20170803215753.30553-4-toshi.kani@hpe.com> <20170804034417.GC12082@nazgul.tnic> In-Reply-To: <20170804034417.GC12082@nazgul.tnic> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=toshi.kani@hpe.com; x-originating-ip: [15.219.147.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DF4PR84MB0185;6:l7+2KebXT4qgyUizwfTsEIHydcvOXY1ygJr830tts+JZjn7ZzVfPKa76wWCFARCxaHlPA5/xQQAHqLyiMromH3FCvEUFpogRI40m3XVGISyMLTRPoAYCygQvHGK6GDxcOPIXtcvYfp9D6ueuvz27l6LtGsp0ixNvHcvyQW2MLj9NBEskv7z4fYP3HKdl9ubAzEQttPIV0OBZ+gpOHWB1yYo8Q5TJNBqYR6rO51YYk95RbNVI/EI0zArtKMPdL63QR6Goh5wsoDULqdvN6eUld2Num8D6r+kvNlFk0VnQkGv94eB0TkE3wIwfrVP7tDnNxQzyikbdZvU6p7hMTVJI6g==;5:ORBB0GTexggII4CcAgK3i7PNhcRBBD7tZng3QZ1LLBj+oPxG7KJzJj7Eo9RmWvMoM2dulx20TZcTkntfWHTqYJbZudDEtoAuJzQ3q62J/6UwHHXp47OiP7o6qBb3aOQ2OJ8/hiWhM2L6/JTMD8ehEg==;24:ta6mWNRWWqSFky11wQcJWOJ0nxssqUT/py0QH8+pqQRzhIGzIhr/kpom6uqlbeGQiZUPtMGySk1ENqe7h8WuRY9jGzdh0w3G/qZPuRqUfvA=;7:CFaL7FjeLdzLFQezygOS899CyFN3r8eeo0A5GwPHMn9A7THxzsUfqh+of6Yy3Py9d+ijtP6t9lYxmhm+k9p/98f37yq27JCBuouXEGub5zn1IAgxkJ84cLD+0kT/xYQ3tzKsukz1HAqVkyJZTiFjQfm3hXcpp7Cz1sbMnvYDo/FrjwY/YTb2rR5KYYXLttyCbkNCpc9BesHebHwRUNNk60DewC9SEqV8D/I6m5oXGMo= x-ms-office365-filtering-correlation-id: 830f713a-16fc-493b-9712-08d4db7a5a5b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DF4PR84MB0185; x-ms-traffictypediagnostic: DF4PR84MB0185: x-exchange-antispam-report-test: UriScan:(227479698468861)(228905959029699); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123560025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DF4PR84MB0185;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DF4PR84MB0185; x-forefront-prvs: 0389EDA07F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39840400002)(39450400003)(39850400002)(39400400002)(39410400002)(39860400002)(189002)(199003)(377424004)(24454002)(97736004)(6506006)(14454004)(101416001)(68736007)(4326008)(2950100002)(6916009)(189998001)(229853002)(86362001)(102836003)(3846002)(110136004)(6486002)(6116002)(50986999)(77096006)(2900100001)(76176999)(54356999)(53936002)(38730400002)(66066001)(1730700003)(8676002)(6246003)(81166006)(81156014)(8936002)(5660300001)(5640700003)(6436002)(106356001)(36756003)(54906002)(6512007)(2906002)(105586002)(478600001)(7736002)(3660700001)(33646002)(305945005)(2351001)(3280700002)(2501003)(25786009)(103116003)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DF4PR84MB0185;H:DF4PR84MB0187.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;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: 04 Aug 2017 20:49:51.3589 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR84MB0185 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 nfs id v74Ko242004394 Content-Length: 1722 Lines: 44 On Fri, 2017-08-04 at 05:44 +0200, Borislav Petkov wrote: > On Thu, Aug 03, 2017 at 03:57:49PM -0600, Toshi Kani wrote: > > When 'osc_sb_apei_support_acked' is set, it indicates that > > the platform supports APEI, firmware-first mode, as ACPI _OSC > > capability bit 4, APEI Support, was set in query.  While _OSC > > is an optional method, platforms with APEI support should > > implement it to inform its capability to the OS properly. > > > > Add check to 'osc_sb_apei_support_acked' before calling > > ghes_edac_register() to restrict that ghes_edac is enabled > > on platforms with APEI support capability set in _OSC. > > > > Signed-off-by: Toshi Kani > > Cc: "Rafael J. Wysocki" > > Cc: Borislav Petkov > > Cc: Mauro Carvalho Chehab > > Cc: Tony Luck > > --- > >  drivers/acpi/apei/ghes.c |    8 +++++--- > >  1 file changed, 5 insertions(+), 3 deletions(-) > > > > diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c > > index d661d45..49d75eb 100644 > > --- a/drivers/acpi/apei/ghes.c > > +++ b/drivers/acpi/apei/ghes.c > > @@ -1139,9 +1139,11 @@ static int ghes_probe(struct platform_device > > *ghes_dev) > >   goto err; > >   } > >   > > - rc = ghes_edac_register(ghes, &ghes_dev->dev); > > - if (rc < 0) > > - goto err; > > + if (osc_sb_apei_support_acked) { > > What for when we have the whitelist? Some firmware features can be enabled / disabled in BIOS. While HPE firmware does not allow to disable FF, it's possible that other vendors might allow such and still have the same OEM ID info. So, this check makes sure that FF is in fact enabled in firmware. Thanks, -Toshi