Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp538400pxb; Thu, 30 Sep 2021 11:19:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF4ur4kOfc7f1XeAzhlQlfC5b+/MrZZtPy5IiJ+noxZmTNToPpP1WknU3ltqDbBB2c5CPT X-Received: by 2002:a17:903:228b:b0:13c:94f8:d723 with SMTP id b11-20020a170903228b00b0013c94f8d723mr5474169plh.12.1633025948443; Thu, 30 Sep 2021 11:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633025948; cv=none; d=google.com; s=arc-20160816; b=EhFXX9FeDOO4fLu7cDHF+fSkVWB03wWhPxodv5xaXbm6TSONOYtY4sze24FrNMoxOp DwMvHrEX8TvneYe//asXOF/O3rGcF95PQ07I0XmaW3DyFUWz3GjnqM7Xwmpz6cRblwV9 3PLVcLgOypW24zNjfBERoz+b/nEZLYk68FDjP2WzE3GnjS7jRUn1iPaarPatiaxhtz96 Tr7G3TdKZp1bk1nlKuEN7o7L8Zm5CGlh14whxvEp2EcSmT90A9o4+1vuyusdrUWSD5Gk NfPGSEKsacJklNZpvEzOfHzRrkAYxAwZuY1lYvM85cj+3AAoXandulg8OTgINKkm7k8D PuUg== 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=FR0+kEOcKlq7l4rpUaA/sQX17u3kFeNcfk9lelXlWEg=; b=WcpuSaC47e0Ki7Xn2TuagHAv0I+8wofltfmSRHTfYiVuEk+029cT2jL4y+lNxHJvLz sryo4S7Sr366/N2FzQc9zhZWPcPbn1oa0R2bIabcxcaed30/x2lJL87+sCy0oefvWX54 8Ogn9sUCqRrNETgFnJbXcUX7m7zolwz3Vf8fGLxsnD4J6wC7XrdCoHB3+DXm2d223Vwd 4ucUIqoLs3klvAyiFKu9bywvEKO5lx5qIRUS3ntNuLIdsThghLrwnluQU7ANMpBOqkG9 xKwzGiSiaNvuwIQG7rN5w+fUW99r7+bE/+UDx5HAtVL9X5T1AdA3CnAvgA3T9eSff+xl CWNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U5wgRFM2; 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 e30si4572126pgm.325.2021.09.30.11.18.54; Thu, 30 Sep 2021 11:19:08 -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=U5wgRFM2; 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 S1349439AbhI3Mq6 (ORCPT + 99 others); Thu, 30 Sep 2021 08:46:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350993AbhI3Mq4 (ORCPT ); Thu, 30 Sep 2021 08:46:56 -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 0FAFCC06176C for ; Thu, 30 Sep 2021 05:45:14 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id s21so9824572wra.7 for ; Thu, 30 Sep 2021 05:45:13 -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=FR0+kEOcKlq7l4rpUaA/sQX17u3kFeNcfk9lelXlWEg=; b=U5wgRFM2oZNKQCdACVEnN/PY1pazGShIczlxnlmZx77O+N263dqplEctt/sQaZHpOD hlEcsVqUiTyndbmwPYlr8m3ythPO1FonbuXbGLTb7KuQG3Ck0udU2uwoxhTad5ZQr4NP UdukK7mP5VsgGx+KI0lVPyb5Xm7Uzc8x0kF4I9hpcPCkn7eAnxkWjNN9bZRgOFBGs1QM zenKRBko2C2y0uoROOW+rGj6WIB1ZPFumOLUC7a2TYFR9DhJmNxDO/wELyWA6VIqhzLp ZQ1rXUpnhN/7DeYdfeTKevHyMD4bW3NNzNCQl4UpVd22FMfamW1VNwGN9l/hQxtrxUpe FArQ== 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=FR0+kEOcKlq7l4rpUaA/sQX17u3kFeNcfk9lelXlWEg=; b=stlhz9wdBra9wI2dQB59f1BXMH4www45/nTTYAJNDdnKAncPrJ1ItfHnrOTciwo55t 9l8968wYAnOALb1vnsZtXeVoEA2OCPoOwV87iuY8UJS6owriEO4y3CK1Q2+uKDnq6Dya 5eJPDl/N/5+jHsdlorkXbzxNp5OgikpVUTEkPXHwl03zKEZ05M/0fTIEr7j701wFEe71 2EpyiTxZCZnYj7H2oqpAzxk0xEHRFCCD4aIqWoyumEOOqphxp53tnhbVubu1ILgtOceO hBHJBjgomotGXSuoQxFFCSIP+vP7LhGxlKJfCoRHUUuK+sELActYEsRuY4jYK2PjbADQ 2NnA== X-Gm-Message-State: AOAM530sqgOcTpx4Py/APNYXLUs+v7C+pfKMXlyGzwpSdaegQH0zLm48 +TQiFli4CKLvLcGtl8HR6vzKUA== X-Received: by 2002:a5d:400b:: with SMTP id n11mr6039318wrp.317.1633005912605; Thu, 30 Sep 2021 05:45:12 -0700 (PDT) Received: from google.com ([95.148.6.233]) by smtp.gmail.com with ESMTPSA id g1sm5214172wmk.2.2021.09.30.05.45.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 05:45:12 -0700 (PDT) Date: Thu, 30 Sep 2021 13:45:10 +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日(木) 20:51 Lee Jones : > > > > 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. > > Not necessary the core frameworks, could also be changing the ways the > existing drivers register to allow additional drivers to extend the > functionality rather than completely overwrite them. It's really hard > to tell what the right way would be without knowing the exact things > they find missing in the upstream drivers. As for upstream users, this > is exactly the point - upstream is a bidirectional effort, one takes > from it and should contribute things back. > > Generally, the subsystems being mentioned here are so basic (clock, > pinctrl, rtc), that I really can't imagine what kind of rocket science > one might want to hide for competitive reasons... If it's for an > entire SoC, I wonder why Intel and AMD don't have similar concerns and > contribute support for their newest hardware far before the release. I don't have visibility into the driver-overrides I'm afraid. I do know that code-space can be a problem though. So any way we can make the core binary smaller (i.e. remove anything that can be built as a module) will have a positive effect. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog