Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751563AbdGaUTh (ORCPT ); Mon, 31 Jul 2017 16:19:37 -0400 Received: from g4t3425.houston.hpe.com ([15.241.140.78]:42380 "EHLO g4t3425.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751017AbdGaUTf (ORCPT ); Mon, 31 Jul 2017 16:19:35 -0400 From: "Kani, Toshimitsu" To: "bp@alien8.de" CC: "mchehab@infradead.org" , "linux-kernel@vger.kernel.org" , "tony.luck@intel.com" , "linux-edac@vger.kernel.org" , "rjw@rjwysocki.net" Subject: Re: [PATCH 3/3] EDAC, ghes: Make it a proper module Thread-Topic: [PATCH 3/3] EDAC, ghes: Make it a proper module Thread-Index: AQHTBewsoOaHQfQgAk6o+lOz407qJKJplmgAgADKxoCABAT2gA== Date: Mon, 31 Jul 2017 20:19:32 +0000 Message-ID: <1501531803.2042.95.camel@hpe.com> References: <20170726084827.11447-1-bp@alien8.de> <20170726084827.11447-4-bp@alien8.de> <1501267290.2042.89.camel@hpe.com> <20170729064715.GB30603@nazgul.tnic> In-Reply-To: <20170729064715.GB30603@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.203.227.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DF4PR84MB0185;7:uSdF9Inb6fmK30aPhBjYeJFWBGKoxnrrPjfQZUckVKAwM6JVRG+6TT3iratF9hcNU9T5Turji39vY91L6lQyRewGINVF6inBmSihhRqTcioBy3J40Q509YemwrKqB6Dusj5mqILYppOBSzKPKnZ4/MW3J6HaJA5OGLm338qS4sUKn0gbLhyy2HwBim/r2tzypTqVcEBfWciiIr47+E3zKA+hDDR87oXdIr9cI9ERtEKJX+VRDUp5hB1Lw/Ukv3DrXpwKc4cV3e/bo0sXZMnj/LLBzUKGST0Em3YhX1+C/UZ0LCbiZBgqYh6jDZchZWBVtPmERaqtRSTQG0RrjdHQeGDZCwe/tq3y90rYFVmWwPF/vE8m3nB0fulvzVsG30gr928uGkB9Uq71NRWDYwFwtBbPlWJ4QOkp4/0KxQvGcjokmLU5/DY/JWYw/Uu53+wRJ6XiVzgCNio01z0B526bvTu+7Yf5wFudKSPRf0JbLphSOF/rQRSgAs8HabptFObDB/2tD0leCTFSKxLTOohVLr82J15JLTkWt7ZowSDh+2Cf4xW4Dqr0FPNftxiuk3sQZA2oJ0TS1ll7MK5OudkEPK+vXX6IbQv2BidQtHUzcApCs6nS8rG+6WLOV3Fcr7claR7h7LL85I3tDkIRm6a609CfCM7OQdrpsFJRqDz527cI/JcWayMTZPNymdBlpkhcbZqvmvGMlTzy6O64nl76ocoyndMdGeSSnIw2V8+7Z6V1xBqhvAnSbkDJQkpYa+CgaXl+F/vWOLk11G0RK0alRsK5fh2KoS8wI7S9Lu4zK3w= x-ms-office365-filtering-correlation-id: 0bc035f0-a48e-4c9d-7dcc-08d4d85174db x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(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:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(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: 03853D523D x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(39450400003)(39840400002)(39850400002)(39410400002)(39400400002)(24454002)(189002)(377424004)(199003)(229853002)(4326008)(101416001)(50986999)(33646002)(2900100001)(6436002)(478600001)(66066001)(25786009)(76176999)(54356999)(189998001)(54906002)(102836003)(6116002)(3846002)(6512007)(6246003)(38730400002)(86362001)(36756003)(5640700003)(110136004)(2351001)(53936002)(6506006)(97736004)(103116003)(77096006)(6486002)(3280700002)(8936002)(81156014)(81166006)(106356001)(7736002)(2501003)(3660700001)(305945005)(68736007)(6916009)(14454004)(2950100002)(2906002)(93886004)(8676002)(105586002)(1730700003)(5660300001);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: <699383784790AA4E91263BA861B2F8B3@NAMPRD84.PROD.OUTLOOK.COM> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2017 20:19:33.0106 (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 v6VKJfeI032369 Content-Length: 853 Lines: 26 On Sat, 2017-07-29 at 08:47 +0200, Borislav Petkov wrote: > On Fri, Jul 28, 2017 at 06:50:56PM +0000, Kani, Toshimitsu wrote: > > This simply sets NULL to pvt, and does not initialize ghes_pvt. > > Yeah, I guess we need this ontop: Yes, this fix looks good. > >  As Mauro pointed out, some type of GHES check needs to be in place > > before making this change. > > Your whitelist I guess. We still need the two mechanisms provided by the existing code below. The whitelist simply compliments 1. 1. GHES-presence check. (We can add APEI OSC bit check as well.) 2. Module priority. ghes_edac has higher priority for registration. I'd prefer to add the whitelist check to ghes_edac first. This makes the existing code to work. We can then work on refactoring changes like this on top of it without breaking the functionality. Thanks, -Toshi