Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp817586pxb; Wed, 3 Feb 2021 20:02:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBBcsVBKZOSuPPrQ7bBd/PNYj1VzvBaZTmG1el7mDJ3WcoQP6F1ipcgPUd0/KY9poADv/G X-Received: by 2002:a17:906:31c1:: with SMTP id f1mr6112449ejf.263.1612411339821; Wed, 03 Feb 2021 20:02:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612411339; cv=none; d=google.com; s=arc-20160816; b=w0/2/amjUTapoizi2t1VQxkjYhXBSykmXVUzF5blR4A4YnDggugRPN5L+gC81mCaIW VFhZIbVtRxHt/FKcoid6XwboNgiBqn84vJpS/HJWxRtt17iYrWqhSbGIYzGkspiIZpyZ gjsNOXO8hNAnkHRVMbto5sH889H8QKC3JwC7EOMN2pMWS5RB/C9sEzvZWWPgbj0gj8mi iLsQjx6+cKjMCmyWpy5Fe3foPaDgafAqI1GohNN7UhkCsoAEz8bb67cYqxfX7h5XPIQD 6PZ2NiFFzuyNn4oclQwughszDDEDO4QDTxL4p1BgO4pw5dUv/DBByOrlFiAISKd+qg1l B2Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=m4N6QG1HGXV8OFjRl9CFwQATI7lj+7/koIRrBBa17pk=; b=wKRaa/iQftPr3bU05inU1nzYGS3pGisPQtyhzp4HjduMBIp5A2jRnxz/s6rKOPHJ7k sYAqvcnXuzZwaTSscPAyRnlJSWZGVCj8iOEjz66cHnuEsZ86EOrOmu5710VtDZhORubJ hI/SqrjWgtxH3ZVcH6CjrcoWwYDqQQXCrirMHQza2vzF7sqeXzIwtxznsoNpKhrbwoNx G4Jx2gVmhFFTzJ36a7gAaCIUSh/MCnLT2ljTPlUs5mEDhEYztG4JSargxIeT3E0zxqAT IFFFwBlHclgLbfGNxqqggSmO+Vc364RZGW1h+rZdN2z4ud234dbUS80ccDadC54Ke19x v0lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=FaxOUFTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si3247769edi.216.2021.02.03.20.01.55; Wed, 03 Feb 2021 20:02:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=FaxOUFTp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231217AbhBDDsV (ORCPT + 99 others); Wed, 3 Feb 2021 22:48:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbhBDDsU (ORCPT ); Wed, 3 Feb 2021 22:48:20 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC152C061573 for ; Wed, 3 Feb 2021 19:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=m4N6QG1HGXV8OFjRl9CFwQATI7lj+7/koIRrBBa17pk=; b=FaxOUFTpYXYgmSum35WdzHqe30 GX1RrouAL1ktVZBfcSIsrw12No793WITO/2pk1KQRLK5EiWadS56YrSSjZ5gzqlg6BqSTQElK/2ft AMrwKuLwneOroLtwVVPKUNMa7v++ok6h+iSRdkgYEtz7i7GnvCIRZ5DJEpNKFfd+PV71HBS4+HFog AEqtrWbDKeMmWceeo8UZYGn1UcMnVH0wyaznPhbhiS1tq55NUUyDjJNRzs8D355zjaZ3plsk7dpf3 rf7mLPSzLN3YEgKWhyVhKjN7p+G490N0j03KP02z88IDzZdOfeAx1Go8TrFcSGNQH9dNl0gSA5Gfk 8s8qAksw==; Received: from [2601:1c0:6280:3f0::aec2] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7VcF-0008IR-0Z; Thu, 04 Feb 2021 03:47:35 +0000 Subject: Re: [PATCH] x86: Add a prompt for HPET_EMULATE_RTC To: Anand K Mistry , x86@kernel.org Cc: Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org References: <20210204132043.1.I2392cf11fb353d10459958100b69d93346fa167c@changeid> From: Randy Dunlap Message-ID: Date: Wed, 3 Feb 2021 19:47:30 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20210204132043.1.I2392cf11fb353d10459958100b69d93346fa167c@changeid> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/3/21 6:21 PM, Anand K Mistry wrote: > This does two things: > 1. Makes the option visible in menuconfig, allowing the user to easily > disable this option > 2. Allows olddefconfig to respoct the option if it is set in the old > .config file > > It's not clear exactly why the second consequence is true, but it > appears to be because when the conf tool reads the config file, it only > respects the existing setting if the option is "visible" (see > scripts/kconfig/symbol.c:381). > > Signed-off-by: Anand K Mistry > --- Hi, When you run "make olddefconfig", should this "depends on" line evaluate to true or false? I.e., what are the settings of these symbols in the old .config file? depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y) If not, is there some out-of-tree driver involved? I'm having a little trouble seeing why this is needed. > arch/x86/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 21f851179ff0..28f814493c7b 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -890,6 +890,7 @@ config HPET_TIMER > > config HPET_EMULATE_RTC > def_bool y > + prompt "HPET RTC emulation" > depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y) > > config APB_TIMER > thanks. -- ~Randy