Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1347341ybt; Thu, 9 Jul 2020 04:58:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhO7HR4kAdZWp3ofJtNhS2zFEN6X2ct1eGEr9kgiwVP25F/Rhqkgc1TJoIiaNfDeTdDohr X-Received: by 2002:a17:906:4757:: with SMTP id j23mr28932682ejs.431.1594295922674; Thu, 09 Jul 2020 04:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594295922; cv=none; d=google.com; s=arc-20160816; b=RS848BwJ/lbL1jBdWeTdUlpZrxBGV/vVZ4hS4S9qlWo06nlflk3W1pOrz1iWKTMfEw r6utKX0z12vP4NbWfnG8t0i6S4KjFe96XNZGeHxpSK4hZPaVEfWYIkl5TlJMFrme8CzW S4a4NaJFYzRNqHZ08IMY+tMhIhnlHWF4G/NlE55pOHlpY58Yfe/6Wxw6EP1r7Wu+KlvD IoSTg0fOnKLsFsygahZgZtovjlNSj75vbPV+4+kkXNi4fTmEsmgu1jQAn+Ev6aUVIAbY NZw4BvC0xNl61ru0ixLpB7r32otVjRcOFhpiYHIHl1RFsOwEDmHCgTqDCyGIrQyZic1L ffWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=YRGv8i1NLqF5y2cs67EYKyYOieD8C2J3kdBQDbuxrSI=; b=wctPDMBeZRtWG+SRjk9eZwO4VeLoMm8juMFM7Zkfx6YL3kK5Z3V5QcTLnC92PXpBRA Pb311590IMwRADs8qifBgs7Mw/0xKsYpjhHcOld+jd9Ns5eeh9UEc1xPZTawdfBbac5L Nx/pXgNpRpb/hjLNJOj8a3JW3ql1hsyXZ9vV+SpmSr8qnhdKEret6DHoryFDWF10R6Xg 6uFhPGfbmL0guanHIGKJretxEV4TZdbXjzVj4QVFIcFIFcraUaq8LnCUP0CHzshbKQLX vx5PcM+KbgnMulUttypwy1sNymi0uQOBYhfO4qzXm+ZyN74qpxIhEyAc6ex/mpQrYzth 1AdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si1906588eds.309.2020.07.09.04.58.17; Thu, 09 Jul 2020 04:58:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbgGIL6O (ORCPT + 99 others); Thu, 9 Jul 2020 07:58:14 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:38341 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbgGIL6N (ORCPT ); Thu, 9 Jul 2020 07:58:13 -0400 Received: by mail-ot1-f67.google.com with SMTP id t18so1496429otq.5; Thu, 09 Jul 2020 04:58:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YRGv8i1NLqF5y2cs67EYKyYOieD8C2J3kdBQDbuxrSI=; b=pAUWclLshRVyqEbv0JlwPDmuho7COzzOulHdseu51BTzo3+s0qhRNSXI8EtjNi1S3S qGO/zbHghsnOaL0ABAWW/BAjK/3CLqe43sgOCpkNyUqJE7wAZscyA4krAgFrvMTE9/kI 89Zz7OJsqCWYoXQSS2BUGPiUlHBejdzO8lAJcSZNLai4rlj2P0ZvKQJ+fnrfFXevm+RC qIQSbo3Ego1l+nTKaPQu58gRNOprm9k58UB+kuWCjkewW9WwEUqYvezMQMsYa0Y243mM Rnf0ozoFh/S6nlneOM4n4LN1ecpPh+CzI8C3c92X7504hQsnubybUwujedf7CceECG61 RT5A== X-Gm-Message-State: AOAM530w0vr0tQ+UfKBuBs+qEoHNFGnmB78DyCJiAHsAe/leIVJaM2id 0F9xGWsji8Bs/OWSVz6pFPVKQ2Gc0xeKp9lp/dY= X-Received: by 2002:a9d:590a:: with SMTP id t10mr17093644oth.262.1594295891970; Thu, 09 Jul 2020 04:58:11 -0700 (PDT) MIME-Version: 1.0 References: <20200413134611.478441-1-enric.balletbo@collabora.com> <10490419.gsntqH5CaE@kreacher> <4e7f8bf3-b72b-d418-ec95-e1f8c3d61261@collabora.com> <59771d3689da41a5bbc67541aa6f4777@AUSX13MPC105.AMER.DELL.COM> <20200610214033.GB248110@dtor-ws> <20200610224305.GC248110@dtor-ws> <1e32b7db-5457-e0cf-5e5e-36f21d5a91eb@collabora.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 9 Jul 2020 13:57:59 +0200 Message-ID: Subject: Re: [PATCH v4] platform: x86: Add ACPI driver for ChromeOS To: Enric Balletbo i Serra Cc: Dmitry Torokhov , Mario Limonciello , "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux Kernel Mailing List , ACPI Devel Maling List , Len Brown , Collabora Kernel ML , Guenter Roeck , Benson Leung , Dmitry Torokhov , Gwendal Grignou , vbendeb@chromium.org, Andy Shevchenko , Ayman Bagabas , Benjamin Tissoires , =?UTF-8?Q?Bla=C5=BE_Hrastnik?= , Darren Hart , Greg Kroah-Hartman , Hans de Goede , Jeremy Soller , Mattias Jacobsson <2pi@mok.nu>, Mauro Carvalho Chehab , Rajat Jain , Srinivas Pandruvada , Platform Driver Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 9, 2020 at 11:31 AM Enric Balletbo i Serra wrote: > > Hi Rafael, > > On 11/6/20 13:06, Enric Balletbo i Serra wrote: > > Hi, > > > > On 11/6/20 0:43, Dmitry Torokhov wrote: > >> On Wed, Jun 10, 2020 at 09:52:12PM +0000, Mario.Limonciello@dell.com wrote: > >>>> -----Original Message----- > >>>> From: Dmitry Torokhov > >>>> Sent: Wednesday, June 10, 2020 4:41 PM > >>>> To: Limonciello, Mario > >>>> Cc: enric.balletbo@collabora.com; rjw@rjwysocki.net; rafael@kernel.org; > >>>> linux-kernel@vger.kernel.org; linux-acpi@vger.kernel.org; lenb@kernel.org; > >>>> kernel@collabora.com; groeck@chromium.org; bleung@chromium.org; > >>>> dtor@chromium.org; gwendal@chromium.org; vbendeb@chromium.org; > >>>> andy@infradead.org; ayman.bagabas@gmail.com; benjamin.tissoires@redhat.com; > >>>> blaz@mxxn.io; dvhart@infradead.org; gregkh@linuxfoundation.org; > >>>> hdegoede@redhat.com; jeremy@system76.com; 2pi@mok.nu; > >>>> mchehab+samsung@kernel.org; rajatja@google.com; > >>>> srinivas.pandruvada@linux.intel.com; platform-driver-x86@vger.kernel.org > >>>> Subject: Re: [PATCH v4] platform: x86: Add ACPI driver for ChromeOS > >>>> > >>>> > >>>> [EXTERNAL EMAIL] > >>>> > >>>> On Wed, Jun 10, 2020 at 09:28:36PM +0000, Mario.Limonciello@dell.com wrote: > >>>>>> > >>>>>> To give you some references, if I'm not wrong, this prefix is used in > >>>> all > >>>>>> or > >>>>>> almost all Intel Chromebook devices (auron, cyan, eve, fizz, hatch, > >>>>>> octopus, > >>>>>> poppy, strago ...) The ACPI source for this device can be found here > >>>> [1], > >>>>>> and, > >>>>>> if not all, almost all Intel based Chromebooks are shipped with the > >>>>>> firmware > >>>>>> that supports this. > >>>>> > >>>>> You can potentially carry a small patch in your downstream kernel for the > >>>>> legacy stuff until it reaches EOL. At least for the new stuff you could > >>>>> enact a process that properly reserves unique numbers and changes the > >>>> driver > >>>>> when the interface provided by the ACPI device has changed. > >>>> > >>>> If we use this prefix for hatch EOL is ~7 years from now. > >>>> > >>> > >>> Isn't the whole point of the ACPI registry and choosing an ID? You know internally > >>> if you need to change the interface that a new ID is needed and a new driver will > >>> be needed that comprehends that ID change. So if you can't guarantee that 0001 is > >>> the same driver interface in every firmware implementation google used then that is > >>> where this falls apart. > >>> > > > > As far as I know GGL0001 has the same driver interface in every firmware > > implementation Google used. But I'll ask to make sure. > > > >>> I know there is a long support lifecycle but you're talking about rebasing > >>> to new LTS kernels a handful of times between now and then. If the interface really > >>> is stable the patch should be small and it shouldn't be a large amount of technical > >>> debt to carry downstream until EOL. > >> > >> I think we are talking about different things actually. Let's forget > >> about Chrome OS and downstream kernels. We have devices that have > >> already been shipped and in hands of users. Some of them are old, some > >> of them are new. We can't not enforce that firmware for these devices > >> will be either released or updated. Therefore, if we want expose this > >> device in mainline kernel, we need to have it handle "GGL0001" HID in > >> addition to whatever proper HID we may select for it. > >> > > > > FWIW, after investigate a bit more, although GGL is not in the ACPI ID list it > > is in the PNP ID list [1]. So as far as I understand GGL0001 is valid ID. I know > > that PNP ID is the legacy identifier but since this was here for long time and > > will be here also for long time, I am wondering if we can take that as an > > argument to have GGL0001 as a valid device to be exposed in the kernel. > > > > So, as the GGL prefix is a valid ID in the PNP ID list, is this a valid argument > to take in consideration this patch and resolves your concern regarding the ID? Yes, it does, thanks!