Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755386AbdLVAh6 (ORCPT ); Thu, 21 Dec 2017 19:37:58 -0500 Received: from mail-by2nam03on0042.outbound.protection.outlook.com ([104.47.42.42]:51887 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752165AbdLVAhz (ORCPT ); Thu, 21 Dec 2017 19:37:55 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=andrew.cooks@opengear.com; Subject: Re: pinctrl-amd: What hardware does it apply to? To: Mika Westerberg , Linus Walleij Cc: linux-gpio@vger.kernel.org, "linux-kernel@vger.kernel.org" , Nehal Shah , Shyam Sundar S K , Ken Xue , Tobias Diedrich , Sudheesh Mavila , platypus-sw , Timur Tabi References: <6c675643-45ec-c57f-f1b2-afb25f3e947e@opengear.com> <20171221121256.GY27654@lahna.fi.intel.com> From: Andrew Cooks Message-ID: <44f3de2a-4f1b-bc0c-ee5d-3cdf20a766cf@opengear.com> Date: Fri, 22 Dec 2017 10:37:32 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20171221121256.GY27654@lahna.fi.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [59.167.150.161] X-ClientProxiedBy: ME1PR01CA0135.ausprd01.prod.outlook.com (10.171.9.148) To CO2PR15MB0027.namprd15.prod.outlook.com (10.161.86.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eb4a3459-6356-4d08-144f-08d548d43bca X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060);SRVR:CO2PR15MB0027; X-Microsoft-Exchange-Diagnostics: 1;CO2PR15MB0027;3:8HwxEVsTy8X/2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:NJqT05JZi+Ij9JwIm5405oPir2UC7c8HlYwTSq80Y5EOJf+000zyRizwscEW1iJrOsh6Bp7YZeUFcgojrWsWIUfouHa1WY4jjeh8fTor8nJ99MbsEHPJHseXZWvDaQLJz7uDgv3RsuTuEUk3auCetq7ih0af9j3E1HysGj+snAvk2Oplc0XtlyuS2kfmY3M/OimyGmRg87sTYYKBCryrsRw6rlFuSg0+gDOj4ldxY+yEWmopQ8HcOwjtbNv39b8/uNtW6cSZ9RSfoUCl50yKQQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3231023)(3002001)(10201501046)(93006095)(93001095)(6041268)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:CO2PR15MB0027;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CO2PR15MB0027; X-Forefront-PRVS: 05299D545B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(346002)(366004)(376002)(39830400003)(39380400002)(396003)(189003)(199004)(54094003)(24454002)(51444003)(58126008)(83506002)(68736007)(59450400001)(76176011)(16576012)(53546011)(16526018)(65826007)(97736004)(6486002)(6246003)(305945005)(110136005)(5660300001)(50466002)(90366009)(7736002)(54906003)(23676004)(52116002)(478600001)(2486003)(64126003)(77096006)(316002)(52146003)(386003)(53936002)(2950100002)(81166006)(86362001)(81156014)(36756003)(117156002)(8676002)(229853002)(47776003)(66066001)(31686004)(4326008)(65956001)(3846002)(7416002)(230700001)(6666003)(8666007)(31696002)(8936002)(106356001)(25786009)(6116002)(105586002)(65806001)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR15MB0027;H:[192.168.254.67];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?ut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Gla699QDyTIisEwwmBL4FsYZmCRKY99A9tGR9Kjz3sNrcKhoBikFHAEb+yZ5lB12bFvzQzS77VfQK+opW4uX6pEoSp4e4EP1KywiHM0crmiELa/3JzTHxEAZFQxwmo280pAMt/YQejR3LStJbzATmtFrlsCtDTHdto2OKc8x4YnryEkPh1LxEovr1PbznwO9FJj2IT8sEqM8Ho+UoDYwRH1rxkF7HRyuk8bYdUxCbpqG1ZbP+nX1FYtY/M1r SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: opengear.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2017 00:37:48.3815 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb4a3459-6356-4d08-144f-08d548d43bca X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a6251c26-d21f-4164-a225-1f4eaebf5f9a X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR15MB0027 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2460 Lines: 40 On 21/12/17 22:12, Mika Westerberg wrote: > On Thu, Dec 21, 2017 at 11:11:18AM +0100, Linus Walleij wrote: >>> In contrast, the pinctrl-amd driver only mentions the newer KERNCZ platform >>> name and uses ACPI for probing without disclosing any Family or Model numbers. >>> >>> pinctrl-amd applies to "AMD0030" and "AMDI0030" >>> >>> The ACPI HID matching makes it difficult to determine what family and model the >>> driver applies to, or rather, I have not been able to find such a mapping of HIDs >>> to family and model numbers. It's also impossible to guess an ACPI _HID >>> that may or may not exist for the Family 16h Model 30h platform and even if I >>> allocate a new HID for our ACPI implementation, that HID has little hope of >>> being accepted into the mainline driver. >> >> I didn't understand anything of what you just wrote. >> I am basically ignorant when it comes to ACPI details. >> >> So let's CC the GPIO ACPI maintainer, Mika Westerberg. > > If the hardware is not the same that is already supported by the > pinctrl-amd, then you definitely should allocate a new separate ACPI > _HID for it. That's pretty much what we do with every new SoC because > they typically don't have identical pin lists among other things. > Right. I wonder if my reasons for objecting to using ACPI _HID in this way (as the existing drivers do) are being overlooked, or if there's something missing in my understanding. Given the HID "AMDI0030", it is difficult for anyone besides AMD to determine what SoC that is intended to match. Joe Random Developer would not be able to find the datasheet for the SoC and verify that this driver works correctly, or whether it is used by any firmware at all. However, my specific problem is the inverse. Given a SoC without vendor-supplied HID or DSDT ASL (ie. I'm writing the DSDT ASL), I don't know what HID to allocate for the driver and DSDT, and I'm too low in the food chain to allocate the one true HID for this SoC that every firmware developer and driver developer should use. This is not a problem for out-of-tree patches, but it blocks me from contributing usable support for a new SoC. So my objection is that the coupling between the driver and ACPI firmware, caused by these special HID strings, is both unnecessary and disempowering. If an appropriate ID register exists in the MMIO space, I think that would solve this issue. I'm hoping to confirm whether my assessment is correct. Thanks a.