Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1601573rwn; Fri, 9 Sep 2022 00:35:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR61df2ZqQdSuGraQzNoy3d9uerpusiu2aLr7143YOPlj927DucOxb9mDcY7tKUQHycsjH/q X-Received: by 2002:a17:902:b086:b0:171:2632:cd3b with SMTP id p6-20020a170902b08600b001712632cd3bmr13130348plr.111.1662708949161; Fri, 09 Sep 2022 00:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662708949; cv=none; d=google.com; s=arc-20160816; b=hLXg0kWiqToJ241AYhg2MdVljaYkhLU2mZKKLS8SfEywuVK3NItCMFDGui+4K7+iws kWfsfVGBj3oyzAUpwjJoxF1xr81IB79kac2oPc84d14Vu0XtbbUITN4j/s1xpMSRtmAU VzCTyySlL32Dnjg+orAvTxBYsgEc0lP1dQNzzi2mMTx0+1tMY9lQ7p5HaKQTLpNg254S 54pJy2Mcy7DR0WKuhgzn4Ofq58pcj6+TfTAzNN/us1yfTD3vpvpn6zZcuteHAeYExNac gM9pkksWX9dbJ+7tk33HS7IJptmTZE9xSNRpHz5FP9FbSy2O+j3ud/az+a96XqJ8sUGM +8qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=MYlsGWZEaj6riF53CJWpIUBe3dUwLTh06kCOuMwA78I=; b=t/XAuV177tFzBRqymkv+AuPT8mkBBj5hBjS20ODClwHVvCKyV755YTAm5EH/D1J8ER pwg7WAWaEgXOIioJyVI19/mckWfffOCBs8CdZcyQGN4Jdc2+pYLWLflaGWl4f6Kzm5bq FlmJgUzhrpgYYWkWMhxKv2hVhWY/ZtvwET6ezsRQJIHg5UMZ4MejsM+ENysDsykLy4YK YM4gror6cqp2e2OANbJfP5Q3UXyWDiw4mNw1K20M6bB4YOPJQ2Lti5kBKRmiFhErqkAT Mkd/Y5L3WVxjhjy17eyClU9OzcEG0nT9xVrTvHxgi/fogEBLsznAd3eC4EOHK3obc08t 5CTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=EmF3zkc3; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y42-20020a056a00182a00b0050cfb4ff72dsi7689pfa.52.2022.09.09.00.35.36; Fri, 09 Sep 2022 00:35:49 -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=@nifty.com header.s=dec2015msa header.b=EmF3zkc3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231153AbiIIGbK (ORCPT + 99 others); Fri, 9 Sep 2022 02:31:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbiIIGa6 (ORCPT ); Fri, 9 Sep 2022 02:30:58 -0400 Received: from condef-10.nifty.com (condef-10.nifty.com [202.248.20.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D89CDEE535; Thu, 8 Sep 2022 23:30:55 -0700 (PDT) Received: from conssluserg-05.nifty.com ([10.126.8.84])by condef-10.nifty.com with ESMTP id 2896MtUp010741; Fri, 9 Sep 2022 15:22:55 +0900 Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 2896MbQw025804; Fri, 9 Sep 2022 15:22:37 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 2896MbQw025804 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1662704558; bh=MYlsGWZEaj6riF53CJWpIUBe3dUwLTh06kCOuMwA78I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EmF3zkc3LNSyQbmWSHXGfk4e90+a8K9lM7qun/spg8Uv+kAInTvVhTw/sjDonAAJA xUw0VJKG2lOxoIpdR9vBUJhs6923AKBqB8h/m7RrKUlIUYUDUHf5uMOsN1SmKybUyA R1q2rsiAeqCImofKS5mh8sytxF42GLVvpIqT1oWvYJjiob2iyq9tCj+Fa5dHEGXQfE /itBstjrb9wcEqjRxldkiPS9qpx23RQeVng1seRrfW6x07iM5g8bcMtx+9+cEEaEJj w6dvkeuw2VVsRpUrpabG/pKZWsZlmMzoIy+BCLb0jxbAfEL6u3ubypS/y6/+Foo5Pi RR9GIKIJ4b9Pg== X-Nifty-SrcIP: [209.85.210.52] Received: by mail-ot1-f52.google.com with SMTP id v2-20020a056830090200b006397457afecso470093ott.13; Thu, 08 Sep 2022 23:22:37 -0700 (PDT) X-Gm-Message-State: ACgBeo1dBNuyUH1dFc4BLbCqe3Dq/y+VLxnIJ9LA0ib82l61EbqB1snb PoTqYChOlSvd2I7/Du5WFPdDZnY3+0PrIKJXO/s= X-Received: by 2002:a9d:4806:0:b0:637:cdca:f8d3 with SMTP id c6-20020a9d4806000000b00637cdcaf8d3mr4944442otf.225.1662704556432; Thu, 08 Sep 2022 23:22:36 -0700 (PDT) MIME-Version: 1.0 References: <20220908104337.11940-1-lukas.bulwahn@gmail.com> <20220908104337.11940-3-lukas.bulwahn@gmail.com> In-Reply-To: <20220908104337.11940-3-lukas.bulwahn@gmail.com> From: Masahiro Yamada Date: Fri, 9 Sep 2022 15:22:00 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/6] x86: make config X86_FEATURE_NAMES 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no 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 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 X86_FEATURE_NAMES visible when CONFIG_EXPERT is enabled. > > Signed-off-by: Lukas Bulwahn Reviewed-by: Masahiro Yamada > --- > arch/x86/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 2ec0b1eabe86..7807eb1c8df8 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -438,7 +438,7 @@ config SMP > If you don't know what to do here, say N. > > config X86_FEATURE_NAMES > - bool "Processor feature human-readable names" if EMBEDDED > + bool "Processor feature human-readable names" if EXPERT > default y > help > This option compiles in a table of x86 feature bits and corresponding > -- > 2.17.1 > -- Best Regards Masahiro Yamada