Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1210924imw; Wed, 13 Jul 2022 15:54:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1usJLMheQq0OP/2SMVDwXjJSDiAV+QCa62hCh1Wt4GGWIttdDpE7PlqSiCip1e5ILN2lj8w X-Received: by 2002:a17:907:7388:b0:72b:9be1:e32d with SMTP id er8-20020a170907738800b0072b9be1e32dmr5219069ejc.611.1657752862605; Wed, 13 Jul 2022 15:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657752862; cv=none; d=google.com; s=arc-20160816; b=E9N+ygedxEWTAMjM60Eq05ICH2x6JNGfsFr8H2EXF3bku5VrF6KYMsOzidCAwLNFuw CT5T9FBVIto8Nr9EWjg6QKhCI7CA14S/Ke0HPzi5CjGSVz/IVLynjqOdboStCp8+dW9G sjkzC0o4CSIwDM+PRDF3yIqDHZGvTS9K7+5zSiulbbJRT9tKxqzGCcyAVKoHWZdd3cMF GdfF2hJ8nmX4mGdaLxWRgaLfdBTeMqebpM4Hz8A9mY5oTxk67aP7tW552pXmNZv+UA4M QNgZsVzMiK5ZDXUtEB4wj8wbI3McheVfVIJ2C37P47zxEmXEQf8fLwhjpRWsLjmYQ5LG zglA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uOBKq9yzkPX8ihcF5QdXtzsKbLEa/eP+OCHtDKfv5N0=; b=F7YWLVC4a64lPGsVaPgy/tPgtOKvO8UDdtBvE5jrZWyLJLf4rUR7R9PqA50OBBjXXF jmKiBUOCoHbewaOlkeo0pmzYx/c2DswqGxibZOm6PZ17/pDnSwacBWwpggdJHeeFR3lg yeyO6JRVtV5p039xLT25ahxN7tCCdQnkzLYQNpG7CshYivTU9oriN2m7O5GsYD9y93kl GMW9vpLUgnEFdyKneUTJ5KnPztD/hBYL6n7yNRdPFswpvhr7qn+gHOP3NuRMLOFfnLHH AlrVbd61tEeIZhIvX0+n2zl8VZGy0yWmvxiLMcJO0IzKi/F+G0OGULEWBP9jN7HSj/7Y /W6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hk176+zL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a73-20020a509ecf000000b0043a6e52f68dsi20413543edf.502.2022.07.13.15.53.57; Wed, 13 Jul 2022 15:54:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hk176+zL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237010AbiGMWFa (ORCPT + 99 others); Wed, 13 Jul 2022 18:05:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236181AbiGMWF2 (ORCPT ); Wed, 13 Jul 2022 18:05:28 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D37F845049; Wed, 13 Jul 2022 15:05:27 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id f11so10779507pgj.7; Wed, 13 Jul 2022 15:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=uOBKq9yzkPX8ihcF5QdXtzsKbLEa/eP+OCHtDKfv5N0=; b=hk176+zLssVNRft8dirHFUQSzDMI0whOu6+6yXw9L8L7d0wLw7U16maq1hJRXPZTq/ Gz/tk/9k5ncT0FkQbbwWFHn+Pbt8O7O5TawARP5Ey5PdgOfYEEgoTvfNvjwaKlC2Fp+u /yc6TfI2wpFGrTa7ELUtOTilQC8x/WO/N5T2D8R57dpFGws1xuiH5hYBGa0wwi3eo4hN f5S77L0OFyouEIHVUdo1qtgyMETHSDVdDO9i7srid340U9uCEKObdUPpsjKnJGrtF46J gnb7/zaBOGh40U273oDZM0oA/ohc98tEWGZ+o/mSmHyWI2/5r6+mUVZip7FZc9yew0w6 weVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=uOBKq9yzkPX8ihcF5QdXtzsKbLEa/eP+OCHtDKfv5N0=; b=lIIJth0Ot2coM+RxAyU0K5xL6fAmHxVkdgzZleB7HvdEJCV4ZV+xRf6j9lw3E37tFa qlkeJNmledY5FEPCuTgBwMkx0XmWFEk0EH2OrIdzCyqUj/m6jHBlSsWWecsnVEwWFkVB zIQ7FUygsq4mGLcm8j8Hnb/1Dmc8QU4IF+hOE+8QB/qLgyNXxE3DaPr9rm+FTb4gXz7a UdRUADvTxLpQ07JG2+nqVJO6laZyB3CLhJPzjFGPU2hg0z2P5dzkmymGSC/O11tI+nJF vhiBot9yAJSK+sB9wgHPe9LURPq4z9/f4cfeO5iks7VWyoCrg24aSZVCNrDllPqofgos QxXA== X-Gm-Message-State: AJIora+P3UwtVRVK3V2hP2EHIEl2FEiWBHS3OKiADIba1tBZ8HTStdkE 0wa4m3yOsyr6uVn7wWBtjMY= X-Received: by 2002:a65:4501:0:b0:3fc:4895:283b with SMTP id n1-20020a654501000000b003fc4895283bmr4726104pgq.231.1657749927276; Wed, 13 Jul 2022 15:05:27 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id x7-20020a634847000000b0040c97f0057dsm7946127pgk.17.2022.07.13.15.05.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 15:05:26 -0700 (PDT) Message-ID: Date: Wed, 13 Jul 2022 15:05:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] arm64: Kconfig.platforms: Re-organized Broadcom menu Content-Language: en-US To: Geert Uytterhoeven , Krzysztof Kozlowski Cc: Arnd Bergmann , Florian Fainelli , Linux ARM , SoC Team , bcm-kernel-feedback-list , william.zhang@broadcom.com, anand.gore@broadcom.com, Olof Johansson , Catalin Marinas , Will Deacon , open list , Shawn Guo , Li Yang , Wei Xu , Andrew Lunn , Gregory Clement , "moderated list:ARM/Mediatek SoC..." , Microchip Linux Driver Support , Matthias Brugger , linux-arm-msm , Geert Uytterhoeven , "moderated list:ARM/SAMSUNG EXYNOS ARM ARCHITECTURES" , Dinh Nguyen References: <20220712164235.40293-1-f.fainelli@gmail.com> <0131e1d6-09c0-31a4-5b9d-0e2fc49d61ac@linaro.org> From: Florian Fainelli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/13/22 02:17, Geert Uytterhoeven wrote: > Hi Krzysztof, > > On Wed, Jul 13, 2022 at 10:40 AM Krzysztof Kozlowski > wrote: >> On 13/07/2022 10:25, Arnd Bergmann wrote: >>> On Tue, Jul 12, 2022 at 6:42 PM Florian Fainelli wrote: >>>> There are now multiple Broadcom SoCs supported so group them under their >>>> own menu such that the selection is visually more appealing and we can >>>> easily add new platforms there in the future. This allows us to move >>>> ARCH_BRCMSTB back to its siblings. >>>> >>>> No functional changes introduced. >>>> >>>> Signed-off-by: Florian Fainelli >>>> --- >>>> >>>> Note this is based on "arm64: bcmbca: add arch bcmbca machine entry" >>> >>> Hi Florian, >>> >>> So far, we have tried to keep the Kconfig.platforms file rather coarse-grained, >>> mainly limiting it to company names and high-level families, but avoiding >>> sub-menus or adding too many sub-families. >>> >>> If we add per-vendor submenus, we should probably first decide how we >>> want to structure this across vendors. I've added maintainers and lists to >>> Cc for a couple of the ones that are in a similar situation. >>> >>> I can see a couple of ways we can do this: >>> >>> a) keep the list of platforms as short as possible, combining related >>> SoC families from a single vendor wherever possible, but no sub-menus >>> (same as today) >>> >>> b) Always use sub-menus when there is more than one family, but >>> keep relatively coarse platform selection. >>> >>> c) Use sub-menus and also move to a more fine-grained SoC >>> selection, similar to what we have on 32-bit arm. >>> >>> I would not really want to go to c), but a) and b) both make sense to >>> me as long as do it consistently across all platforms. >>> >>> Any other ideas or opinions? >> >> Whatever we decide here, the SoC can override in drivers/soc, just like >> Renesas did. I think Renesas chose option c), but made it in >> drivers/soc. I would vote to have consistent policy, so if arch/arm64 is >> a) or b), sub-archs should not redefine it in drivers/soc. > > We did so because of the "only a single symbol in > arch/arm64/Kconfig.platforms"-policy. I was not aware of that rule. It is a bit of a mixed situation with Broadcom SoCs but in essence, each Kconfig entry denotes a deeply different SoC architecture at the memory subsystem, bus, security or product space that you might not want to enable in your kernel. There is definitively sharing of drivers between all of the platforms and a lot of cross pollination too but usually these are deeply different that different kernel images do make sense. The itch that I wanted to calm was that ARCH_BRCMSTB was after the other Broadcom platforms separated by ARCH_BERLIN. if you prefer a pair of KConfig comments to delineate them and flatten the platform selection, that works for me, too. -- Florian