From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1B63ECAAA1 for ; Fri, 9 Sep 2022 06:24:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Yhzbo+mKO1LUA881HSXZKq2F1A9KyDKxyq4z7RMXjGk=; b=DHTP7xy41AZLEL 8BrJLjGXOrhzfvgfaXBDJpIeTEjWqq6IIEhSCe0JjoDpJDgTESLEw9AzW7BZjQw1SKV2BYgjjtUXI BhI8vQAMwy6SyRuukwLRjG6tEPB+98r6qFAvxITyg44nPDZPAeVEEiYHjLB9EANNFO2C+grDi3SGD SkvvcXpiwZ71auc30KlzMqB09sWuS2KmHaZGUmeippk/FpuMpeU4y0WHYMZjwkutn3wO5t4PwXsVy 6pkSAKkZYJqWSRKuJjCLtBhUGXByT2mTD84jv/cVqb1yPANsME9ZU8UXscfLX7FpCuFEHzrfkmkOn gqeH0uXnT3BcEUo1x9ZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWXPh-00DFxT-O1; Fri, 09 Sep 2022 06:22:54 +0000 Received: from conssluserg-06.nifty.com ([210.131.2.91]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWXPW-00DFsN-47 for linux-arm-kernel@lists.infradead.org; Fri, 09 Sep 2022 06:22:44 +0000 Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 2896MLfY029731 for ; Fri, 9 Sep 2022 15:22:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 2896MLfY029731 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1662704542; bh=5gq83gYMVKdRU9r4hYVd7D4iDUbndUfSB3Fa4VRbM4A=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AnqLwOKSyV1yvR9h2eklSSZLeceed6RdO2Gf/5J9GCEA+KUZUte/VCxEIe566Bx5W z8xGHUohBHNbDCpQR9FliNJVlObeKgjMNVNlLKRwdkMeLCGNNA/MDArrpocDwVPu4I eNfzeSKSR+NdTMp11/S5g7cpZ6tOJRciR8UnV1BN68Rw4rY4mWjT99JxjYDUHg17Ad cPk8Ge+dVWYT1ujNt1x5J1TofMVley7cGfi5zO0B8sqk3LvbMYQDS32So6+cvHaCOe DGToSLfQpqXjB8JIck1Rum68RwwzfeeVjcnf6pn73m1fME0xswf2zUwYNbtz4zgXdV 4jYavkTsmmSNw== X-Nifty-SrcIP: [209.85.160.45] Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-12803ac8113so1498918fac.8 for ; Thu, 08 Sep 2022 23:22:22 -0700 (PDT) X-Gm-Message-State: ACgBeo2dENmIhxNdp0gd4a3vytowWvMiqv+W761DEMQUBfb9g+nBfKdb zNsNGPlE3B/cXhNmZM3GS4ixuOrxwj+j26SVPVc= X-Google-Smtp-Source: AA6agR5EfzPia/RtqfbgAaGxxK9GzsmSY41Hz6mLA8v9uVa6Dj7ot+FeljQw/MpvxviU07INWGgyx2GDfngU3/ZEkp4= X-Received: by 2002:a05:6870:c58b:b0:10b:d21d:ad5e with SMTP id ba11-20020a056870c58b00b0010bd21dad5emr3918880oab.287.1662704541192; Thu, 08 Sep 2022 23:22:21 -0700 (PDT) MIME-Version: 1.0 References: <20220908104337.11940-1-lukas.bulwahn@gmail.com> <20220908104337.11940-2-lukas.bulwahn@gmail.com> In-Reply-To: <20220908104337.11940-2-lukas.bulwahn@gmail.com> From: Masahiro Yamada Date: Fri, 9 Sep 2022 15:21:44 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/6] arm: make config ARM_PATCH_PHYS_VIRT visible with EXPERT To: Lukas Bulwahn Cc: Russell King , linux-arm-kernel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , X86 ML , Mauro Carvalho Chehab , Linux Media Mailing List , Peter Chen , Greg Kroah-Hartman , linux-usb , Andrew Morton , Mike Rapoport , Linux Memory Management List , Linux Kbuild mailing list , kernel-janitors@vger.kernel.org, Linux Kernel Mailing List X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220908_232242_420920_5A67C06D X-CRM114-Status: GOOD ( 38.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 8, 2022 at 7:43 PM Lukas Bulwahn wrote: > > Commit 6a108a14fa35 ("kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT") > introduces CONFIG_EXPERT to carry the previous intent of CONFIG_EMBEDDED > and just gives that intent a much better name. That has been clearly a good > and long overdue renaming, and it is clearly an improvement to the kernel > build configuration that has shown to help managing the kernel build > configuration in the last decade. > > However, rather than bravely and radically just deleting CONFIG_EMBEDDED, > this commit gives CONFIG_EMBEDDED a new intended semantics, but keeps it > open for future contributors to implement that intended semantics: > > A new CONFIG_EMBEDDED option is added that automatically selects > CONFIG_EXPERT when enabled and can be used in the future to isolate > options that should only be considered for embedded systems (RISC > architectures, SLOB, etc). > > Since then, this CONFIG_EMBEDDED implicitly had two purposes: > > - It can make even more options visible beyond what CONFIG_EXPERT makes > visible. In other words, it may introduce another level of enabling the > visibility of configuration options: always visible, visible with > CONFIG_EXPERT and visible with CONFIG_EMBEDDED. > > - Set certain default values of some configurations differently, > following the assumption that configuring a kernel build for an > embedded system generally starts with a different set of default values > compared to kernel builds for all other kind of systems. > > Considering the first purpose, at the point in time where CONFIG_EMBEDDED > was renamed to CONFIG_EXPERT, CONFIG_EXPERT already made 130 more options > become visible throughout all different menus for the kernel configuration. > Over the last decade, this has gradually increased, so that currently, with > CONFIG_EXPERT, roughly 170 more options become visible throughout all > different menus for the kernel configuration. In comparison, currently with > CONFIG_EMBEDDED enabled, just seven more options are visible, one in x86, > one in arm, and five for the ChipIdea Highspeed Dual Role Controller. > > As the numbers suggest, these two levels of enabling the visibility of even > more configuration options---beyond what CONFIG_EXPERT enables---never > evolved to a good solution in the last decade. In other words, this > additional level of visibility of configuration option with CONFIG_EMBEDDED > compared to CONFIG_EXPERT has since its introduction never become really > valuable. It requires quite some investigation to actually understand what > is additionally visible and it does not differ significantly in complexity > compared to just enabling CONFIG_EXPERT. This CONFIG_EMBEDDED---or any > other config to show more detailed options beyond CONFIG_EXPERT---is > unlikely to be valuable unless somebody puts significant effort in > identifying how such visibility options can be properly split and creating > clear criteria, when some config option is visible with CONFIG_EXPERT and > when some config option is visible only with some further option enabled > beyond CONFIG_EXPERT, such as CONFIG_EMBEDDED attempted to do. For now, it > is much more reasonable to simply make those additional seven options that > visible with CONFIG_EMBEDDED, visible with CONFIG_EXPERT, and then remove > CONFIG_EMBEDDED. If anyone spends significant effort in structuring the > visibility of config options, they may re-introduce suitable new config > options simply as they see fit. > > Make the config ARM_PATCH_PHYS_VIRT visible when CONFIG_EXPERT is enabled. > > Signed-off-by: Lukas Bulwahn Reviewed-by: Masahiro Yamada > --- > arch/arm/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 4adfa5dd3556..4b212ab1b281 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -243,7 +243,7 @@ config ARCH_MTD_XIP > bool > > config ARM_PATCH_PHYS_VIRT > - bool "Patch physical to virtual translations at runtime" if EMBEDDED > + bool "Patch physical to virtual translations at runtime" if EXPERT > default y > depends on !XIP_KERNEL && MMU > help > -- > 2.17.1 > -- Best Regards Masahiro Yamada _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel