Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1327427pxb; Thu, 4 Feb 2021 10:05:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzun15QcTQZoqpxx4OP9Lv1hYQWftHrNhb+Bme1hZPqWCHlIN2EEbbXVMX2vcVP6Sru8kIq X-Received: by 2002:a05:6402:b85:: with SMTP id cf5mr182292edb.368.1612461909219; Thu, 04 Feb 2021 10:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612461909; cv=none; d=google.com; s=arc-20160816; b=UcsZLppQmDSi3XvR0AuytCwiSDhyZDFM8Z32iPc6JqX9FN436mxich0BTp/CRQiD/l DWtmHP5GRqzR+aJvT+d4Q/UduymLQfKDUqAjq4WLO9Kk0SkIZ1cMiVa9h5EKjAC6iBzP 5CosfVEvxKZsuhdIn63ZT2rWN1kJ5JY9DVZg07HjJxX04S7ChBNUjlHZGBNqmPxlBcHx J/QFB9jan/rB6wc96lsUFpV0ZofHer4IFVa+FrD0BPK0kwaCBeLF/wQLKYzkwCe1ptQ6 FYKU999clSkxBbiY+fUp3xdUDyZ9gU/6D1A4007Qh6zzwt5u0WrJCd3mAiF9Wh0jI1L8 jxJA== 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:references:cc :to:from:subject:dkim-signature; bh=groOvpZHMZyHgxdUVvwlzsM6SyqTW79Xsu2YuNOmFXE=; b=EP2bCr/wfBnlTLTHMFNK/2/NOw4U0XIAY2MzDDKaudcRhpxff3T5yxkozu16Q72WmQ wuMEpjFPLrT9DhhJ9YoE1EqqPh07cOGP7K36UAiP/s4YFc7daXByoUTEv7UYaQuQwt72 QSUBcCur4GV5CJSRAUvbdzRRpiw6Ju3MBfszoUoDMA3k9PM7URQrsCTWS3a6f6ncEbJX fsvwuesEiLNDd00AuaMddtikmf3dQd6qEcCnDEEFaRdWrq6zcW5kj3Kl9ZjKqDhUwDjO Wf5EpRQsA7Ux2S5/TDb7cQiC5CskzD/McJ3C17qlbe0EmwspAE1zXkgSFxXzLM6ymGhO /vsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b="mU/t9aSY"; 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 i4si3790565edg.119.2021.02.04.10.04.42; Thu, 04 Feb 2021 10:05:09 -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="mU/t9aSY"; 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 S238229AbhBDSB2 (ORCPT + 99 others); Thu, 4 Feb 2021 13:01:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238464AbhBDSAP (ORCPT ); Thu, 4 Feb 2021 13:00:15 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82581C0613D6 for ; Thu, 4 Feb 2021 09:59:35 -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:References:Cc:To:From:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=groOvpZHMZyHgxdUVvwlzsM6SyqTW79Xsu2YuNOmFXE=; b=mU/t9aSYssATh0B9Vt+JLpTFxc l+ciyHV/9BeR3fjF35avc9JVX+dz5c4yv8lS5XUJJtiyw90FECRa6hyxBNVXkUyA7dGFSN63sSh7c 6ohYZt563aWIKUnh3xcaihN3boGwMCSPHVz+NrOHPgUlGt8R4DLq60zLHY29/VEbUqiBNCZuz0yd9 lutTAjopBACkD1Slvk6NCYcaGr6c3We9Abh1X3Jb0EbtNUCOT8P5SOmYMn169wE9dYeF+u3sxRTnq ARSWWqc22PLZoXFHNe+/yaQqKHrGPp/dVi/mL6XP9cChI1iKok42xh33SpBftOcxWyvkAXznVNLgC B/yZOHLA==; Received: from [2601:1c0:6280:3f0::aec2] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7iuj-0005Ph-EF; Thu, 04 Feb 2021 17:59:33 +0000 Subject: Re: [PATCH] x86: Add a prompt for HPET_EMULATE_RTC From: Randy Dunlap To: "Anand K. Mistry" Cc: x86@kernel.org, Borislav Petkov , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Linux Kernel Mailing List References: <20210204132043.1.I2392cf11fb353d10459958100b69d93346fa167c@changeid> <507e5062-f575-e034-d6fa-f1dca4bbbcc9@infradead.org> <586ac6a2-0b2b-1f15-47f6-8c42444133be@infradead.org> Message-ID: Date: Thu, 4 Feb 2021 09:59:29 -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: <586ac6a2-0b2b-1f15-47f6-8c42444133be@infradead.org> 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/4/21 9:37 AM, Randy Dunlap wrote: > On 2/3/21 10:55 PM, Anand K. Mistry wrote: >> On Thu, 4 Feb 2021 at 17:30, Randy Dunlap wrote: >>> >>> On 2/3/21 10:13 PM, Anand K. Mistry wrote: >>>>> Hi, >>>>> >>>>> When you run "make olddefconfig", should this "depends on" >>>>> line evaluate to true or false? >>>> >>>> True. RTC_DRV_CMOS=y by default on x86 systems and HPET_TIMER also >>>> appears to default yes (on x86-64 if I'm reading this right). >>>> >>>> Oddly, the RTC config option doesn't appear to exist. Probably a separate issue. >>> >>> Yes, just a separate simple patch. >>> >>>>> 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) >>>> >>>> Actually, none of these options are set in the old config. >>>> RTC_DRV_CMOS and HPET_TIMER appear to default to yes. >>>> >>>> % grep HPET .config >>>> CONFIG_HPET=y >>>> # CONFIG_HPET_EMULATE_RTC is not set >>>> # CONFIG_HPET_MMAP is not set >>>> % grep RTC .config >>>> CONFIG_RTC_CLASS=y >>>> # CONFIG_HPET_EMULATE_RTC is not set >>>> CONFIG_PM_TRACE_RTC=y >>>> # CONFIG_RTC_HCTOSYS is not set >>>> >>>>> >>>>> If not, is there some out-of-tree driver involved? >>>> >>>> No out of tree drivers involved. I tried this on a vanilla 5.11-rc6. >>>> >>>>> I'm having a little trouble seeing why this is needed. >>>> >>>> So am I. But this is the magic that lets me keep >>>> CONFIG_HPET_EMULATE_RTC from the old config. I did manage to trace >>>> where the option is being overridden in the conf tool, but the >>>> reasoning why is beyond my knowledge. >>> >>> Can you post the .config that you are feeding to 'make olddefconfig', please. >>> I'll take a look (or the x86 guys can do so). >> >> Sure. Here it is: > > Hi, > > On plain vanilla 5.11-rc6, when I take this (partial) .config file > which contains: > > CONFIG_HPET=y > # CONFIG_HPET_EMULATE_RTC is not set > # CONFIG_HPET_MMAP is not set > > and run > $ make olddefconfig > > my new .config file contains > > CONFIG_HPET_TIMER=y > CONFIG_HPET_EMULATE_RTC=y > CONFIG_HPET=y > # CONFIG_HPET_MMAP is not set > > > Isn't that what you are expecting? > or are you trying to keep the opposite? > > # CONFIG_HPET_EMULATE_RTC is not set > > Hm, I bet that I misunderstood you and you want to keep > it disabled. Is that right? If that's the case, then I agree that your original patch to make HPET_EMULATE_RTC user-visible is needed. Sorry to be so slow about understanding your goal (if I do understand it now). -- ~Randy