Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752280AbdHDUjl (ORCPT ); Fri, 4 Aug 2017 16:39:41 -0400 Received: from g4t3426.houston.hpe.com ([15.241.140.75]:51582 "EHLO g4t3426.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751891AbdHDUji (ORCPT ); Fri, 4 Aug 2017 16:39:38 -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 1/7] ACPI / blacklist: add acpi_match_oemlist() interface Thread-Topic: [PATCH v2 1/7] ACPI / blacklist: add acpi_match_oemlist() interface Thread-Index: AQHTDKTt+VwSD/HSn0G3oBdHnu7PUKJzjf4AgAEZnQA= Date: Fri, 4 Aug 2017 20:39:35 +0000 Message-ID: <1501878602.2042.113.camel@hpe.com> References: <20170803215753.30553-1-toshi.kani@hpe.com> <20170803215753.30553-2-toshi.kani@hpe.com> <20170804034206.GB12082@nazgul.tnic> In-Reply-To: <20170804034206.GB12082@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:FIPPfND53b8+XU9yWE/E7k6lBZPDOawrwjkysw/ewsBOt97stcxTfWwXVAWig3iIrmI7DxwX+vdzopo+JUua5W4lOWockxqQVn79Al+3jTcU4bNH4t0OO8zpXHodvSuG4c1hpaVh1ahKlcUhza6nQ+ipzE3HCDtRgsTgXnScJNIwfB5M7RHaEAKMBmT0lBqDf3DYBiVO4ojSdgGqw2fIOVtB/8L2j3NwHOdoL9EHRSK2UH3SJoAXdiKLZ/2aq+i/NnbkxWyJjqaF9K6XxBt3zG9kqiCl+SP0YcrN/3SOCL6NszMj+f4mYMcNP5ntzobwB3LUz4aKOVqhfjhSIguS/g==;5:Qb7wiUoO+6AbXWXrku24o9gJVlhSWgwj2jgkc1UnnaE8VW8fBviqBekjs76e5jFECUMq5AI4VquYGacz75zfwtgcO6faBeJPrBQzn0WbyfAl0zBkPErDmemnsqOpFaIJQB/wXhZ3otC8sIxEMuARfQ==;24:VBleb6SQFx549ajwvpUvrKruR7OaGLQNsT/nXtbHRDoQT2962pfABT8sUtWfk5z+2n3BUZ9ZMmI5Unh9VDiBg/0De4tTlzY9WRXqQKuUFrk=;7:b+8qXWRDsycWtqVsi+tF38Tr/49D8jiLR7bbRhzCH2B7CJLTwGsfhakTuIFiB2cb15AQs6gRu8s4F3C1YwRaa4gnkGCu190VWy9UN+P4v2I/8POmbUcHQUGUyzUEpDS/yiMHJ9VuOXnFVR5m1mmAnZwL/Fr2hNIIakpuR9m1ypWZEhUoPVGugibXMJqq80HIaUdj4bMqLHVl+yT8Ng4iiPlyVZGgtbTAR2wD7lc6BAg= x-ms-office365-filtering-correlation-id: e87ab91b-ee6e-47f3-8ff8-08d4db78eb20 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:; 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)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(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)(39860400002)(39400400002)(39850400002)(39450400003)(39410400002)(39840400002)(24454002)(377424004)(189002)(199003)(36756003)(5640700003)(106356001)(6436002)(6512007)(54906002)(6246003)(81166006)(81156014)(1730700003)(8676002)(5660300001)(8936002)(33646002)(3660700001)(7736002)(305945005)(25786009)(103116003)(2351001)(3280700002)(2501003)(2906002)(105586002)(478600001)(66066001)(189998001)(6916009)(229853002)(86362001)(14454004)(6506006)(101416001)(97736004)(2950100002)(4326008)(68736007)(2900100001)(76176999)(54356999)(38730400002)(53936002)(102836003)(3846002)(110136004)(50986999)(6116002)(77096006)(6486002);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: <9A24415264B8444EA803778488582F0A@NAMPRD84.PROD.OUTLOOK.COM> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2017 20:39:35.1858 (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 v74KdjAF000907 Content-Length: 1596 Lines: 41 On Fri, 2017-08-04 at 05:42 +0200, Borislav Petkov wrote: > On Thu, Aug 03, 2017 at 03:57:47PM -0600, Toshi Kani wrote: > > ACPI OEM ID / OEM Table ID / Revision can be used to identify > > a platform based on ACPI firmware info.  acpi_blacklisted(), > > intel_pstate_platform_pwr_mgmt_exists(), and some other funcs, > > have been using similar check to detect a list of platforms > > that require special handlings. > > > > Move the platform check in acpi_blacklisted() to a new common > > utility function, acpi_match_oemlist(), so that other drivers > > do not have to implement their own version. > > > > There is no change in functionality. : > >  /* > >   * POLICY: If *anything* doesn't work, put it on the blacklist. > >   *    If they are critical errors, mark it critical, and > > abort driver load. > >   */ > > -static struct acpi_blacklist_item acpi_blacklist[] __initdata = { > > +static struct acpi_oemlist acpi_blacklist[] __initdata = { > > All that wasted energy to try to explain to you that "oemlist" is > wrong and that whole rename is pointless, went for nothing. > > So NAK. Well, we did talk a lot about your suggested name, "acpi_blacklist", and I explained that it did not work since it'd be used for both black and white-list. We've agreed on that. You then suggested it's "platform", not "OEM". Since this is an ACPI structure defined in "acpi.h", its terminology generally follows ACPI spec, which I did. I understand that you feel strongly against "OEM" (sorry about that). How about "acpi_platform_list"? Does it work for you? Thanks, -Toshi