Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp353677pxb; Thu, 30 Sep 2021 07:29:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+q1XbDTFAyhtflONQ7DE1rdBpu18XTU7IFVIZJDRsj0GMyAFKjpFAnpzIvQjFi8NwnP8e X-Received: by 2002:a17:902:aa89:b029:12c:17dc:43b0 with SMTP id d9-20020a170902aa89b029012c17dc43b0mr4409722plr.81.1633012164439; Thu, 30 Sep 2021 07:29:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633012164; cv=none; d=google.com; s=arc-20160816; b=fs9kftiWrBtZvEDXNW32tmUiVIqzrtzjyxs+Jnh/OUVYFNG1BIP3GgeocYHzLlt/ox 3czMOdEHTJrzEOln7yl6EJPAuKdzypSPc3l/KSr+5+c5UvB5kcYHjjXcqOOFQXuC1FBT ZCVehr+DlCgO7I4e5M6RvkdeI5LhoevTwy5XAzt8a8tX3h1M4sixW9rRX2n+6DL8j3xT jt1r7RwxeUKWJvJfUhL9lj5k83C0jACUqtkP5/0jO9ARGY0P0lbYpVl57d8wSBYEy8zH sAmnagayJfkRjckpw7hxRKpbQoFCd+pyYQlRXPuFc85hiF9Bt/IBCIPa+o9CFbOlae06 KVbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xlLchu9pA+HRuQy8Eh7M3MggbaSXnYTP34T1WmzkkE0=; b=zNh0i3RIVDj9IAs56gjY97goqD8ZI9/kVuUSXkwwM1QUCcgD4MjwMBgRkOZCcD5n4F zsLL+85HkEIe3bPo/2cIRsfVB6VQkKPfkFFdqis0UNAMWiam5/kufYGQTkN7/9xZPUh/ h19kpcbzz3pBiE3iW+wKj3J/AY+EePniQ6RONEc7Nn7qoiGAQQN/rn1vOdaFLSe5fNLS 9X63VpBnJNiErACJB2oBJT130+HP1SW2iSjQZJAFRjqfZvt/kV7crk1m8Osgrd8Pw0b0 3lA8BVF75e+2fjpaQbcMrNCex/LlajhJqyIXTmf8gD5Ke2KouHUy0F5QLVF3qxSObFYw Jl1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=axY0QMNM; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qe18si7369184pjb.127.2021.09.30.07.29.11; Thu, 30 Sep 2021 07:29:24 -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; dkim=pass header.i=@linaro.org header.s=google header.b=axY0QMNM; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350630AbhI3LxW (ORCPT + 99 others); Thu, 30 Sep 2021 07:53:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350623AbhI3LxV (ORCPT ); Thu, 30 Sep 2021 07:53:21 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 158C1C06176A for ; Thu, 30 Sep 2021 04:51:39 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id d26so9575291wrb.6 for ; Thu, 30 Sep 2021 04:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=xlLchu9pA+HRuQy8Eh7M3MggbaSXnYTP34T1WmzkkE0=; b=axY0QMNME8v2dkmouaen9wXhMHTziGIxO+d3340F3bqI30XnGOl9s11e9PQPj9B6CZ OL367phLiuLJ5gav9xVeJLM30zfF2SO0h7hI9Y8ZvfRQTlfSoQcgv2T3RrhAwE2RrFIO O85fkjz3VPpjbw4b073M7Ef91b85Z6X7ZHiqLXSXBRuTBxxkxoCV2mKyeZWHjwg6pzX4 5ieLzIZXyVyCKUj9ytGX1phVaaUeuJ6QCcZckMwGYCSLmJ1dlyk2Fta5Cx5DePvFMlgI ekL9QU9TXEW/VD8pMjE8tGTe3qvoiy3LKbJ8I/YMXozS+ANaV4A+9Ds2WVmxtfOEGffL XfAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=xlLchu9pA+HRuQy8Eh7M3MggbaSXnYTP34T1WmzkkE0=; b=A9ZltIF0UTUDXwldWOr28sSPxwzdKLPa4vpZbINqraOKGMGh6171zyw2SRUkM7G3kc 05G3GSh6Zi6e3U2+B+up6gkE3NsCbCzXlWbZtuf8RIB080my89XDo1m10pkr6YQagbHw 18TdKqQttByVreM3QdQoAoTXe3PIZUsVNGqPojZG3YD3Yx1JwMfETaA3CYqnJ33wrg9i f26rYLMVTcMP8pStqw5QQWEncGL2cT6SUYw1BF90ZlbzbR5LNzlBnBHbBVRCA7N8F6ho E56HUwpK/vnK7Nfy5ZBv8Xnbz5z0o39ahdiWjWgTJHSbVFdjth9XbYKakqVnHGs3llOl l+Bg== X-Gm-Message-State: AOAM533tf1cljy7PczGd6DsmH+lHt27pno8DOPtEB6KGOevG//fRky86 v8N378hc1zP3sjiaiV2Ay8FcBg== X-Received: by 2002:a5d:47ad:: with SMTP id 13mr5741091wrb.77.1633002697676; Thu, 30 Sep 2021 04:51:37 -0700 (PDT) Received: from google.com ([95.148.6.233]) by smtp.gmail.com with ESMTPSA id y11sm3419023wrg.18.2021.09.30.04.51.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 04:51:37 -0700 (PDT) Date: Thu, 30 Sep 2021 12:51:34 +0100 From: Lee Jones To: Tomasz Figa Cc: Krzysztof Kozlowski , Will McVicker , Russell King , Catalin Marinas , Will Deacon , Michael Turquette , Stephen Boyd , Sylwester Nawrocki , Chanwoo Choi , Linus Walleij , Alessandro Zummo , Alexandre Belloni , John Stultz , Thomas Gleixner , Geert Uytterhoeven , Saravana Kannan , "Cc: Android Kernel" , Linux ARM , Linux Kernel Mailing List , linux-samsung-soc , linux-clk , "open list:GPIO SUBSYSTEM" , linux-rtc@vger.kernel.org, Arnd Bergmann , Olof Johansson Subject: Re: [PATCH v2 00/12] arm64: Kconfig: Update ARCH_EXYNOS select configs Message-ID: References: <20210928235635.1348330-1-willmcvicker@google.com> <7766faf8-2dd1-6525-3b9a-8ba790c29cff@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Sep 2021, Tomasz Figa wrote: > 2021年9月30日(木) 18:23 Lee Jones : > > > > I've taken the liberty of cherry-picking some of the points you have > > reiteratted a few times. Hopefully I can help to address them > > adequently. > > > > On Thu, 30 Sep 2021, Krzysztof Kozlowski wrote: > > > Reminder: these are essential drivers and all Exynos platforms must have > > > them as built-in (at least till someone really tests this on multiple > > > setups). > > > > > Therefore I don't agree with calling it a "problem" that we select > > > *necessary* drivers for supported platforms. It's by design - supported > > > platforms should receive them without ability to remove. > > > > > The selected drivers are essential for supported platforms. > > > > SoC specific drivers are only essential/necessary/required in > > images designed to execute solely on a platform that requires them. > > For a kernel image which is designed to be generic i.e. one that has > > the ability to boot on vast array of platforms, the drivers simply > > have to be *available*. > > > > Forcing all H/W drivers that are only *potentially* utilised on *some* > > platforms as core binary built-ins doesn't make any technical sense. > > The two most important issues this causes are image size and a lack of > > configurability/flexibility relating to real-world application i.e. > > the one issue we already agreed upon; H/W or features that are too > > new (pre-release). > > > > Bloating a generic kernel with potentially hundreds of unnecessary > > drivers that will never be executed in the vast majority of instances > > doesn't achieve anything. If we have a kernel image that has the > > ability to boot on 10's of architectures which have 10's of platforms > > each, that's a whole host of unused/wasted executable space. > > > > In order for vendors to work more closely with upstream, they need the > > ability to over-ride a *few* drivers to supplement them with some > > functionality which they believe provides them with a competitive edge > > (I think you called this "value-add" before) prior to the release of a > > device. This is a requirement that cannot be worked around. > > [Chiming in as a clock driver sub-maintainer and someone who spent a > non-insignificant part of his life on SoC driver bring-up - not as a > Google employee.] > > I'd argue that the proper way for them to achieve it would be to > extend the upstream frameworks and/or existing drivers with > appropriate APIs to allow their downstream modules to plug into what's > already available upstream. Is that the same as exporting symbols to framework APIs? Since this is already a method GKI uses to allow external modules to interact with the core kernel/frameworks. However, it's not possible to upstream these without an upstream user for each one. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog