Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp474438imw; Wed, 13 Jul 2022 01:57:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v05TYEnYCEbGT+HJlKuF+qNnW0c3rF444NFR3y45iqa/jXLI1w6WPMbzUd+mj1wByTNW1s X-Received: by 2002:a05:6402:3690:b0:43a:83f8:93bf with SMTP id ej16-20020a056402369000b0043a83f893bfmr3332600edb.49.1657702665839; Wed, 13 Jul 2022 01:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657702665; cv=none; d=google.com; s=arc-20160816; b=yb0hY6/Cup8OwxQaEtWDTwXlK0go6FHRwfOTs4qx8qGL5w8CfJGgXaSYZiFvBlCyvZ vVRY9QAI3cNt3b1AK/bGdbn3C8pSbsSEIF+HW3hdpw0JygiIOpHzheyZUWgnZjBrpM9T AK/vJsX+dfH86NEyyrxCLZ5iHBvW7dD7QmG8vIRdCrjvT34aky9nJaVwBBCa1UXV2jIA au6YGh2p4DqHiJE2AjlidDOg0Crw3cjfq2cFvLolfTxqYv8LmW6m/TO1esz+Xl6Oh5XY IpLLZBK4fMXNlu2PZX3aHrhoE4HyRUn846hE8ehRtK5ux+ONxy6z5sxiuuC60RrmUSji /bEw== 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=rFBl54go6bbp895f6CpJo/cJgp+SQIq2apGuPfKEw8I=; b=hpw+bZTANjaMFIvWyXF65uBt362LW5+PBAs9OfdkSQKaoZbMYBFroixWFbh+2zq4jX rL0onNbMhycbMeDOE5sxGHHA18BuuxiXx7dBPt7qWJTjizyIlM1AVdQl41V06wQuekUA PkYyiwDzm+7XKSUviCXIPNX364BjYPA08fr1jLns5AJYN3Kj/CfcoVreGjtbvpo0cw7v wLPgoEK2XWQ5WCkPEVmBrpgKxVLGVSXD6HQTKudh5+Oh3WE++dZY8x1Vk1SYNI5GwK8V 4pc0lBYYBRDuYQFLXVpacGa/ujtVQuNc7mCb9lxW+ZUrQT2mxH26V4G2jBcMaexM/n7y I6hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HJy70qwl; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gm1-20020a1709073d0100b007111f8df172si17993554ejc.271.2022.07.13.01.57.21; Wed, 13 Jul 2022 01:57:45 -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=@linaro.org header.s=google header.b=HJy70qwl; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234894AbiGMIkQ (ORCPT + 99 others); Wed, 13 Jul 2022 04:40:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235702AbiGMIkM (ORCPT ); Wed, 13 Jul 2022 04:40:12 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31115E3C3F for ; Wed, 13 Jul 2022 01:40:11 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id p6so9874581ljc.8 for ; Wed, 13 Jul 2022 01:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=rFBl54go6bbp895f6CpJo/cJgp+SQIq2apGuPfKEw8I=; b=HJy70qwl9lN8HnV2r/htxl8ByNBeHMo2DaIIq8mk7an1rDp/Hy4hkXfktfvmdxUaxv 3A8sUvjtVkw53mw340DrAJeHLmOzxTyLbalQEkV/XibwwFuwinmbY8O4rPtYpX5yrLiy JCufh3uEsQSrI+YvGbyX9Y+722Yi/OGL4EsdeTD0EdSrLJ29gdu6g6g4kPCs/WNN/s56 Ok1r003S2vR+FcsNad/mJW0vO/uHVdrcEbuS7mChc7ssvfhznEANrqB0zDNs+h4LpO7Z +re5NfTf0wvT6R8Qp16Ggu7kuyCNhK8MTP9WtoFIw6A9JRGk4YAt/6tiRiaJDLitsXUv FA8w== 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=rFBl54go6bbp895f6CpJo/cJgp+SQIq2apGuPfKEw8I=; b=SWsSvX76WjdCD4lIsjGcHDh81yWIDcZGrC6XAC/IhwZBfYrhjsgGe2FcD78UkVgs1b vCRrjtKoVXn7Br3aaSmkPu5AaboekjO+SJFlFRm4M7sVpDuLtiFLxhXVZdBrk3jU+ApN krUBzaAgCtg7Ie34lzkiWYy9OSbUVWFZMSNTOL+wgootoxfzpiEVOr5WlisBVPJdBNYA JxoKrBZSa/fmXSwrIz/MQpor+4lJvGi5NM/6N0rZgT+3FXwRjQSSU8udQ7JxQPSL4ejF MSfNtMfTgSq8O9ATMWIPI95Ob747LTb6bQHjeeZ3U/LtZxQFtEzT3bxavb+ExTLZpr7k uPYA== X-Gm-Message-State: AJIora9Xa+e05jB8xmj8yVn1T1xU+LeX1NLvdbponDt7PBxuCU8iac53 PvvNUpnWGw9cOldCMftwAoZkBQBrK+hedQ== X-Received: by 2002:a05:651c:1038:b0:25d:53cb:ba22 with SMTP id w24-20020a05651c103800b0025d53cbba22mr1104823ljm.407.1657701609473; Wed, 13 Jul 2022 01:40:09 -0700 (PDT) Received: from [10.0.0.8] (fwa5da9-171.bb.online.no. [88.93.169.171]) by smtp.gmail.com with ESMTPSA id 11-20020a05651c128b00b0025d6ecbc897sm1720865ljc.46.2022.07.13.01.40.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 01:40:08 -0700 (PDT) Message-ID: <0131e1d6-09c0-31a4-5b9d-0e2fc49d61ac@linaro.org> Date: Wed, 13 Jul 2022 10:40:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] arm64: Kconfig.platforms: Re-organized Broadcom menu Content-Language: en-US To: Arnd Bergmann , Florian Fainelli Cc: 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> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 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,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 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. Or we could choose d) d) keep arch/arm64 list of platforms as short as possible, but sub-archs can do whatever they like on drivers/soc. Personally, I find fine-grained SoC selection a bit ridiculous optimization, like compiling kernel, Glibc and userspace with -O3, -funroll-loops and many other flags. One gets smaller size but looses multi-platform and ability to test one kernel on different boards. Therefore I would vote for b) with disallowing drivers/soc defining more ARCH_ and more SOC_. Best regards, Krzysztof