Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752448AbdGRVWY (ORCPT ); Tue, 18 Jul 2017 17:22:24 -0400 Received: from g9t5009.houston.hpe.com ([15.241.48.73]:37528 "EHLO g9t5009.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751647AbdGRVWW (ORCPT ); Tue, 18 Jul 2017 17:22:22 -0400 From: "Kani, Toshimitsu" To: "tony.luck@intel.com" , "bp@alien8.de" CC: "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , "mchehab@kernel.org" , "rjw@rjwysocki.net" , "srinivas.pandruvada@linux.intel.com" , "lenb@kernel.org" , "linux-acpi@vger.kernel.org" , "linux-edac@vger.kernel.org" Subject: Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac Thread-Topic: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac Thread-Index: AQHS/0lGOl4i5ss6QUSn88C0VF1rJqJZF6OAgAAj5gCAANq7AA== Date: Tue, 18 Jul 2017 21:20:44 +0000 Message-ID: <1500412288.2042.25.camel@hpe.com> References: <20170717215912.26070-1-toshi.kani@hpe.com> <20170717215912.26070-4-toshi.kani@hpe.com> <20170718060007.GB8736@nazgul.tnic> <20170718080836.GB8372@nazgul.tnic> In-Reply-To: <20170718080836.GB8372@nazgul.tnic> 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;DF4PR84MB0185;7:zBpykjAWwTL+/bdk3rZuRR6TEb+Q4WhcfSGihU3u0nFxUuz8GHHyfBWlM6oa0WbhaDil/53OeXW/lFWFBvZxUVLeCA/wG1PaN375LJyrLRLAYD8O0yWCfalVoCoH4Ek4IosX2MblSU2Kyn2N0oNz1nXjdS4yLjPx4x1xIripSqg66NmaApxjuja95ZaasTiLOfNVnde+riA4i69W6ubCqxUKvyhTuJl7H5h/obzK4lmRXtTSxdanjbs6Nn3L0ucSFqtn4A5gHk7u2EEOLdUOjuiktWibNLxXi/0cRXkJJiZM/3IFDfcjzQjtNF55sZ3/GuLc1bnfGbbEtavGK14rdjsUSbBW35NHmWzZrV1FYGgK4VrR3hjIYNliT2ix+g+wikoXJx5IFdeJ+nghN0tLXSP9WnlfI3iAGNBfRQ45VbywZpTPjU0WQ3yqhRFHYpwjJbZCOW7einvx+sM7BczGigqWSzdnFZacjCk5L3siGO22J35d67AkhAwQSBvJ8cteMGYESJgdDu7oMbNL06BgvW0AJjpalBD7BfWkzzUXZpIjzbxO3WcG+Xs1nH6HVE/3I52ryT3hp6tIm9U2QS4SjB4duHtqQQDDfsnAZeBx51tn2njHLZdo9mQ9tu3wJ3XYSdqCFyb2zQwwOdQo1TaABzhsJGfRGkxkksoelJ0E6TcMxXTM0OACvh1X4RypEFLmaQgeoMVH06+vMZcMLNXYrq1ultq4JwmROKc5MxAgYqGdCJfIs7vnY0FDCRUh2ye8e0HHsaLydSC7jJgXj720A8CcPgYn5g9Kz5gnn4I7bJs= x-ms-office365-filtering-correlation-id: b9f384c1-edde-4c5a-a4eb-08d4ce22d9d7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DF4PR84MB0185; x-ms-traffictypediagnostic: DF4PR84MB0185: x-exchange-antispam-report-test: UriScan:(236129657087228); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123562025)(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: 037291602B x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39400400002)(39850400002)(39410400002)(39840400002)(39450400003)(39860400002)(377424004)(24454002)(6512007)(189998001)(33646002)(2501003)(36756003)(229853002)(54356999)(14454004)(6486002)(76176999)(77096006)(86362001)(25786009)(6436002)(54906002)(6506006)(103116003)(478600001)(4326008)(66066001)(50986999)(6246003)(93886004)(3846002)(102836003)(6116002)(38730400002)(53936002)(3660700001)(81166006)(8676002)(8936002)(5660300001)(3280700002)(305945005)(2950100002)(2906002)(2900100001)(7416002)(7736002);DIR:OUT;SFP:1102;SCL:1;SRVR:DF4PR84MB0185;H:DF4PR84MB0187.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: 18 Jul 2017 21:20:44.3205 (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 v6ILMU6L001173 Content-Length: 1418 Lines: 32 On Tue, 2017-07-18 at 10:08 +0200, Borislav Petkov wrote: > On Tue, Jul 18, 2017 at 08:00:07AM +0200, Borislav Petkov wrote: > > And I think we should try this first: have the firmware disable > > detection methods so that the platform drivers don't load. > > Btw, in looking at this more, what about the firmware-first thing? > > I.e., the firmware-first detection with apei_osc_setup() at the end > of ghes_init(). > > Can we make ghes_edac loading dependent on that? I mean, that was > *the* predicate for exactly that - to have the firmware look at the > errors first. No need for platform whitelisting and so on. I agree that 'osc_sb_apei_support_acked' should be checked when enabling ghes_edac. I do not know the details of existing issues, but it sounds unlikely that this will address all of them since bugs can be everywhere. For instance, ghes_edac relies on DMI/SMBIOS info, unlike other EDAC drivers, which can be buggy regardless of this _OSC info. > I'd still decouple ghes_edac loading from ghes_probe() even though > loading the platform driver should've been done *after* the > firmware-first detection regardless. > > So what we could do is make ghes_edac a normal module and have the > relevant x86 EDAC modules query FF mode and if enabled, fail loading. I agree that making ghes_edac as a normal module is a good thing, but I do not think it's going to solve this issue. Thanks, -Toshi