Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp5518584pxb; Mon, 28 Mar 2022 13:37:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcJqEdmZLkxFyx6mLPAXggw4bUiqyTut49sUdtF5Mqd6Kw1PE6NGAXq9Rn94aEOIH7fMgJ X-Received: by 2002:ac8:7c45:0:b0:2e2:293a:7966 with SMTP id o5-20020ac87c45000000b002e2293a7966mr24090551qtv.478.1648499878383; Mon, 28 Mar 2022 13:37:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648499878; cv=none; d=google.com; s=arc-20160816; b=y+NKgYak9WAocY3X6i4Q3svRABcZAIJ42vT/Eq5rkb4ffjMCcuNqHIVNsIvyNi9pCG VB75jctzvd3zP2l8rWfNNfNS0HpIjSR8ijFpEw5idJAsUeHBlInM/snetqqT84Emdk8f F+LzGJ6u4MJmWs0eDYlMa5Ycg3QqPrGkSxeR/1I4FdNyd2MPOtMr4dRaJ3dqF79Qjixt uixH0FdOo3sRcsYdYquSg3jcUg15sXbdkb/0vmaMGeCnrgCXfcSaey80aVkghK7xnXIF hOqvBngRxWzs2vPcQEF5altufi4rmEPz9UatHP84G5yi0t6FbR94ocgzlkhGPZBf/AZF 1LtA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mGs8/RPIySOr6V4U17qKx/+GLjIwo12JMetX2CLbSHk=; b=kmREvmIIrrQqLLSIrthyP/9Pfyc6H30x8L6WiabFMH291Nw7ebaNCdMJdF885pg48X 4L6pqmLxue/sn3d2fUI2uPk5jSU+IeggG+P+egsD41B9sKGJfqr8FsetaJ2k9MW0as+4 U8dT30pJJaeSdZOFOMx/xcCS1/A33UoGrJjw3UqtpJp+jjOW+fHlKR0kLBjn6NiId45B 28eCTihRK9SAoj7HZzXYWMvnvKEBBWX+vfYTmQ+APHvpnCOYaB1qNTwp3Vy/LAg+p9F4 Z6T9klhqvznLhF/Hlbdl3pc8j1dZTEHlgN2RJ76t4L4yqDLhQ9MZrked+5xt+tyHd2bI J6aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FVzPbFQE; 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 b6-20020a05620a270600b0067e4be239c5si7333278qkp.522.2022.03.28.13.37.20; Mon, 28 Mar 2022 13:37:58 -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=@kernel.org header.s=k20201202 header.b=FVzPbFQE; 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 S238414AbiC1Pnp (ORCPT + 99 others); Mon, 28 Mar 2022 11:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238421AbiC1Pnn (ORCPT ); Mon, 28 Mar 2022 11:43:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 501D55FF3A for ; Mon, 28 Mar 2022 08:42:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DF0B36132E for ; Mon, 28 Mar 2022 15:42:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1020C004DD; Mon, 28 Mar 2022 15:42:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648482121; bh=LecrlOGYhUWTQmy3YSKQPwgzzb/ltTwmfDXzlpnoeU4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FVzPbFQEvLCu5l5mDoTqHQaHw0RpAAHytExHJGUJHY7SRUrw453TLkXNxLsSwxv7b rUZT6ygBjAlUxZJnCqBIdjihlLJ6RmNG8WSLa4wwJLwLh3n8ZqjcCEaYmvaL8pDSF2 UToAab58jAMgTAIXpqUiR4zw3Qx170PRUF9Wm52JxqQbBcK1RYO3Tg0O1h+ZcLOmUj of0RYdYucrzcrbORmNnKDa/fb2sjsYMOBN99nXPWUA3f5n3ysJV/2KKWPL6aApKy+X +Baiz0McuR3Dm51Mcaf7/JV9P0b+MQqfrqi7WwHj0jwqm1KK+1J31A5Cb4MtDp3Oxc qT2ChP7EQNX+g== Date: Mon, 28 Mar 2022 08:41:53 -0700 From: Nathan Chancellor To: Ingo Molnar Cc: Linus Torvalds , Borislav Petkov , Linux Kernel Mailing List , Peter Zijlstra , Will Deacon , Waiman Long , Boqun Feng , Thomas Gleixner , Andrew Morton , Sebastian Andrzej Siewior Subject: Re: [PATCH] x86/config: Make the x86 defconfigs a bit more usable Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Sun, Mar 27, 2022 at 09:03:14PM +0200, Ingo Molnar wrote: > Yeah, good catch! ... > > I use defconfigs by explicitly adding in the architecture: > > kepler:~/tip> make ARCH=i386 defconfig > > kepler:~/tip> kconfig-arch > i386 > > ... so never I noticed this bug. Ah, good point! > I fixed this in the latest version (attached). > > Arguably 'make ARCH=i386 savedefconfig' should preserve this, so that > refreshing defconfigs on bi-arch architectures is idempotent, but that's no > excuse to regress the existing defconfig behavior. Hmmm, I thought that it would, but I think the behavior of savedefconfig is actually correct with regards to how it handles CONFIG_64BIT in the presence of an explicit ARCH value, based on how CONFIG_64BIT is defined: config 64BIT bool "64-bit kernel" if "$(ARCH)" = "x86" default "$(ARCH)" != "i386" help Say yes to build a 64-bit kernel - formerly known as x86_64 Say no to build a 32-bit kernel - formerly known as i386 As the default is no when ARCH == i386 and there is no prompt in that situation, "# CONFIG_64BIT is not set" gets dropped, as that is the default. Using savedefconfig without the ARCH variable would do the right thing. I tried playing around with these Kconfig symbols to see if I could get something that would work for savedefconfig with or without ARCH, but I could not really come up with anything. I did not try super hard though, it might still be possible. Cheers, Nathan