Message ID | 20221024195118.871907-1-code@tyhicks.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp696049wru; Mon, 24 Oct 2022 16:10:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM54MKSJ3Ap+XyNwli70UUKXukGRxz7Pe4vKTB4CGlGklcwZPlQrH/dsuBXaWBbo8oNa7yju X-Received: by 2002:aa7:cc90:0:b0:458:b07c:f35f with SMTP id p16-20020aa7cc90000000b00458b07cf35fmr32020008edt.310.1666653034294; Mon, 24 Oct 2022 16:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666653034; cv=none; d=google.com; s=arc-20160816; b=DwtKYJDdDSVMtb825Ognrpcl3K2wvtQn6bnQN1VJ/sYAlqtB25Eu6PYsibkdHCq14N UdhGZJ6pV5J2bcE+zvMrN0QO27gqZ8F8r+p/AMcnSpc8sK34ZbfORq4WOIg2U5D+kHD6 bx/GvkZHRpMEv9YfhpQdZs15yp7uRxiU7Z1i1GXgxnA4GfFvCwdxHwQQqU5n52NZN0C+ McEfcBwC4F5K8dt9qGAS+5H7Bm942mpG5gOMUb2gQpSHk3DCkBKOCEACLFAoUXyc3VUK Nj47O8SLfrlUuql+J1UsuOvxuMPaPIaZSEIV6LGYgxbBa9aLMNbC253GVg7ODNC1FNgz fFnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=twRoZ2KpBnvB6wrQLeM2uyyTgjNvfcSP6xQ7nW7TV8Q=; b=wfBe7ZE5EVsh9T3Ci6GwFbXvQafniFY9DNa5WtgLkdjk9DXrj0lz+LQXeZJlrKvTU0 sJHH7+D+oJZZkhOSibCbktfADbm1Iu0veoL4W0qHqYZkbMfccFyKg3ONrEPgfJ8ZAp38 9LLLcTmZyHbV4lix2Lw0nJ5Wr5hdkThNiWZrnP7GvpcMuUwKP7m6kcLlHnFoUh+gWSoE NRExbFDWGCCR60jc+XYaxtY0jwe6s4htCDi+vI/tYKKFgf/OGHQEWpExQcfEe8rDcq0U fHrdJh2C2X1Adwx7CU7GQAoaXr0Cn5lUgKjLih1Pnj8i9tifI4FaDspXmI25N3M/T9// 9vow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tyhicks.com header.s=fm2 header.b=AZtaBxHo; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=XgMjUmcx; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id uz15-20020a170907118f00b006feb76dbd51si933932ejb.289.2022.10.24.16.10.10; Mon, 24 Oct 2022 16:10:34 -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=@tyhicks.com header.s=fm2 header.b=AZtaBxHo; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=XgMjUmcx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231875AbiJXWzR (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Mon, 24 Oct 2022 18:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232023AbiJXWyt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 24 Oct 2022 18:54:49 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00F381F812E for <linux-kernel@vger.kernel.org>; Mon, 24 Oct 2022 14:16:40 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4E7435C0134; Mon, 24 Oct 2022 15:52:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 24 Oct 2022 15:52:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tyhicks.com; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1666641130; x=1666727530; bh=twRoZ2KpBnvB6wrQLeM2uyyTg jNvfcSP6xQ7nW7TV8Q=; b=AZtaBxHoaQ3HD2AgvGP+yfeYyN4z2M7Fs8qrjTikC 5jUoIcMCYsCmYraTxoMFVGiYIJSVaktBNY+rI/FlTF/AQ+EedWEoi3kyJ7FruGMO a0N1Et/Va9Oy6t8hbUrD+lJk7+AeMddcolgiE+DVSzuutFbg7c0riO6aTKyJmdj1 s1B5n2zwm3U/jfwcwZQUrrx1KRSGIRwzbr2oYlqixf1MiI6U9kn6HZieXwkkVypb i/zWJ3N9aOCEpvV4peUDRSN9qNwp6wAFzepgGyWs2ApIYt12IDdiWOwx4ZgyIXi8 W0F4YEjLjrbtG8YSQtOLEzkTEuiuv8cwEKcekIllYxnpg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1666641130; x=1666727530; bh=twRoZ2KpBnvB6wrQLeM2uyyTgjNvfcSP6xQ 7nW7TV8Q=; b=XgMjUmcxiVD/upZDJ/21JxmEuTeUcKmLNaieVDS7D6l26yL/6VQ bXgnHhcGwiCu+XWVPAjXozAI+RS+dN7WVy/duPjbBbmVNbzU+ehHnAAOF5SzoLtg 5+5enBl/5LK6ja5QAvCdsw2G3ZCERtpv2r2GFl7WO9H47bhgfBCBVdJh/KXsRStA UzAJVItzjVpf2xQJUdu6HTdCxOAm6KMNYUWEr1PecwkkgVquDTS7u2tOxxKSmWr9 cewvGK1RykzeBd0ziHQPW0ZwPnWZDk5GQP1iUdGSxAMO+mHpuhWWMyLeZLxrWFUK NA6QrCUA9W0tdT3ehH1o3ybTJ7Fpk5Z591A== X-ME-Sender: <xms:6exWY7Rcj2FZcZPmtHEZK-CiTn3GwJqeMT_J9b49lJSHAQ3AZZx17A> <xme:6exWY8xMOi3ueJHI5qWBLyBvrFisrFUsJESb0NiWdqJh6IdzxgxmdMYPHImSQ1hEz wciIQyVSpDYdkC_I9k> X-ME-Received: <xmr:6exWYw1TQk54hi-z-7_c9YdxBtUCdXxPmr6iQp2eN_5v5lC-IFt2_dK-_w5IIbM94PszTiUOPBv5nla_VJ4N> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgedtgedgudefjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhihlvghr ucfjihgtkhhsuceotghouggvsehthihhihgtkhhsrdgtohhmqeenucggtffrrghtthgvrh hnpeejteetjedvfeelkedutdfgleegjedufeeigeefkeejheetvdeggfefffdvgedukeen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegtohguvg esthihhhhitghkshdrtghomh X-ME-Proxy: <xmx:6exWY7B2ugMUNfPaMD62N01CmHBxTvxmejzpgd-xuj34WH8_k3h3vg> <xmx:6exWY0htimNCu-YVzHoyh0CLLkYqsa4Hk4Th6kT5wgHaifxOKxVHMQ> <xmx:6exWY_rTZW8uEdVb76-Ogh_yvuxLFvRK86HyzryYVZ5RP-_F9-3DSA> <xmx:6uxWYwiiQC9sNadlJ2OMYqS042aD96O2oq1TuDEWkub-Cnl_a1GJLA> Feedback-ID: i78e14604:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 Oct 2022 15:52:09 -0400 (EDT) From: Tyler Hicks <code@tyhicks.com> To: Mark Rutland <mark.rutland@arm.com>, Marc Zyngier <maz@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Thomas Gleixner <tglx@linutronix.de> Cc: Vijay Balakrishna <vijayb@linux.microsoft.com>, Will Deacon <will@kernel.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clocksource/drivers/arm_arch_timer: Fix event stream param in Kconfig Date: Mon, 24 Oct 2022 14:51:18 -0500 Message-Id: <20221024195118.871907-1-code@tyhicks.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747612371770522298?= X-GMAIL-MSGID: =?utf-8?q?1747612371770522298?= |
Series |
clocksource/drivers/arm_arch_timer: Fix event stream param in Kconfig
|
|
Commit Message
Tyler Hicks
Oct. 24, 2022, 7:51 p.m. UTC
From: "Tyler Hicks (Microsoft)" <code@tyhicks.com> Fix the event stream timer command line parameter name that's documented in the Kconfig description for CONFIG_ARM_ARCH_TIMER_EVTSTREAM. It didn't match the command line parameter name that's actually honored in the source code. Reported-by: Vijay Balakrishna <vijayb@linux.microsoft.com> Fixes: 46fd5c6b3059 ("clocksource/drivers/arm_arch_timer: Control the evtstrm via the cmdline") Cc: stable@vger.kernel.org Signed-off-by: Tyler Hicks (Microsoft) <code@tyhicks.com> --- drivers/clocksource/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Tyler, On Mon, 24 Oct 2022 20:51:18 +0100, Tyler Hicks <code@tyhicks.com> wrote: > > From: "Tyler Hicks (Microsoft)" <code@tyhicks.com> > > Fix the event stream timer command line parameter name that's documented > in the Kconfig description for CONFIG_ARM_ARCH_TIMER_EVTSTREAM. It > didn't match the command line parameter name that's actually honored in > the source code. > > Reported-by: Vijay Balakrishna <vijayb@linux.microsoft.com> > Fixes: 46fd5c6b3059 ("clocksource/drivers/arm_arch_timer: Control the evtstrm via the cmdline") > Cc: stable@vger.kernel.org No, this really doesn't deserve a Cc: stable. This bit may be wrong, but we have the correct information in the kernel-parameters.txt file, which is authoritative AFAIC. > Signed-off-by: Tyler Hicks (Microsoft) <code@tyhicks.com> > --- > drivers/clocksource/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig > index 4469e7f555e9..dcc274460973 100644 > --- a/drivers/clocksource/Kconfig > +++ b/drivers/clocksource/Kconfig > @@ -315,7 +315,7 @@ config ARM_ARCH_TIMER_EVTSTREAM > executing the wfe instruction at a frequency represented as a > power-of-2 divisor of the clock rate. The behaviour can also be > overridden on the command line using the > - clocksource.arm_arch_timer.evtstream parameter. > + clocksource.arm_arch_timer.evtstrm parameter. > The main use of the event stream is wfe-based timeouts of userspace > locking implementations. It might also be useful for imposing timeout > on wfe to safeguard against any programming errors in case an expected With this tag dropped, Acked-by: Marc Zyngier <maz@kernel.org> M.
On 2022-10-25 11:24:55, Marc Zyngier wrote: > Hi Tyler, > > On Mon, 24 Oct 2022 20:51:18 +0100, > Tyler Hicks <code@tyhicks.com> wrote: > > > > From: "Tyler Hicks (Microsoft)" <code@tyhicks.com> > > > > Fix the event stream timer command line parameter name that's documented > > in the Kconfig description for CONFIG_ARM_ARCH_TIMER_EVTSTREAM. It > > didn't match the command line parameter name that's actually honored in > > the source code. > > > > Reported-by: Vijay Balakrishna <vijayb@linux.microsoft.com> > > Fixes: 46fd5c6b3059 ("clocksource/drivers/arm_arch_timer: Control the evtstrm via the cmdline") > > Cc: stable@vger.kernel.org > > No, this really doesn't deserve a Cc: stable. This bit may be wrong, > but we have the correct information in the kernel-parameters.txt file, > which is authoritative AFAIC. Thanks for the review! I added the stable tag because it caused an actual waste of time in an investigation. Upon discovering this option, I didn't notice the subtle difference in cmdline parameter name from the Kconfig, to the kernel-parameters.txt file and the code. I ran long-running stress tests with the incorrect parameter name copied and pasted from the Kconfig. This error resulted in a bad data point in the investigation and it took a second set of eyes (Vijay's) to uncover my mistake days later when we were trying to reconcile the bad data point with other good data points. It is no big deal if it is merged with the tag dropped but I wanted to provide my reasoning of why I personally felt this was a more than just a comment typo fix or something along those lines. Thanks, again! Tyler > > > Signed-off-by: Tyler Hicks (Microsoft) <code@tyhicks.com> > > --- > > drivers/clocksource/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig > > index 4469e7f555e9..dcc274460973 100644 > > --- a/drivers/clocksource/Kconfig > > +++ b/drivers/clocksource/Kconfig > > @@ -315,7 +315,7 @@ config ARM_ARCH_TIMER_EVTSTREAM > > executing the wfe instruction at a frequency represented as a > > power-of-2 divisor of the clock rate. The behaviour can also be > > overridden on the command line using the > > - clocksource.arm_arch_timer.evtstream parameter. > > + clocksource.arm_arch_timer.evtstrm parameter. > > The main use of the event stream is wfe-based timeouts of userspace > > locking implementations. It might also be useful for imposing timeout > > on wfe to safeguard against any programming errors in case an expected > > With this tag dropped, > > Acked-by: Marc Zyngier <maz@kernel.org> > > M. > > -- > Without deviation from the norm, progress is not possible.
Hi Tyler, On Tue, 25 Oct 2022 15:18:54 +0100, "Tyler Hicks (Microsoft)" <code@tyhicks.com> wrote: > > On 2022-10-25 11:24:55, Marc Zyngier wrote: > > Hi Tyler, > > > > On Mon, 24 Oct 2022 20:51:18 +0100, > > Tyler Hicks <code@tyhicks.com> wrote: > > > > > > From: "Tyler Hicks (Microsoft)" <code@tyhicks.com> > > > > > > Fix the event stream timer command line parameter name that's documented > > > in the Kconfig description for CONFIG_ARM_ARCH_TIMER_EVTSTREAM. It > > > didn't match the command line parameter name that's actually honored in > > > the source code. > > > > > > Reported-by: Vijay Balakrishna <vijayb@linux.microsoft.com> > > > Fixes: 46fd5c6b3059 ("clocksource/drivers/arm_arch_timer: Control the evtstrm via the cmdline") > > > Cc: stable@vger.kernel.org > > > > No, this really doesn't deserve a Cc: stable. This bit may be wrong, > > but we have the correct information in the kernel-parameters.txt file, > > which is authoritative AFAIC. > > Thanks for the review! > > I added the stable tag because it caused an actual waste of time in an > investigation. Upon discovering this option, I didn't notice the subtle > difference in cmdline parameter name from the Kconfig, to the > kernel-parameters.txt file and the code. I ran long-running stress tests > with the incorrect parameter name copied and pasted from the Kconfig. > This error resulted in a bad data point in the investigation and it took > a second set of eyes (Vijay's) to uncover my mistake days later when we > were trying to reconcile the bad data point with other good data points. I appreciate this has caused a certain waste of time, but the rules for stable inclusion are pretty clear: it has to be a runtime bug. Documentation bugs, as irritating as they are, do not fall into this category (it really *is* a typo). Thanks, M.
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 4469e7f555e9..dcc274460973 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -315,7 +315,7 @@ config ARM_ARCH_TIMER_EVTSTREAM executing the wfe instruction at a frequency represented as a power-of-2 divisor of the clock rate. The behaviour can also be overridden on the command line using the - clocksource.arm_arch_timer.evtstream parameter. + clocksource.arm_arch_timer.evtstrm parameter. The main use of the event stream is wfe-based timeouts of userspace locking implementations. It might also be useful for imposing timeout on wfe to safeguard against any programming errors in case an expected