From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43BFCC43458 for ; Wed, 1 Jul 2026 14:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=W9jOzjqG5Rzz//GfX0/ecAtlcngTzgF0sG7TCjmqoyY=; b=qyQLr5zUzcwCZ9wW/fxle0ufyI zA9kD4vxML0pygdeDE1ahE0Sdoww3xghvqnSCpX7eGCXBK0G8HAMRYF9LDVN92jxRjfeTt+/aGpWP RfOxkli5UT+0Ea9vGNEvn8TSZ7skFB4S18Jy5wPzT0WZCieNI1ABNGU+kNZ24GPJgCUslXIFROxes KUp/5tHVt+TXsb5Jsmr3bt6gbGzi9oGmF/NibsJ1P3AZiVosqg4UmPn1ClTiOGtUM3WKnQTGmdYCH pfqO3Zv8WDQuF7KD17p4iBpXsD5ZByOufqYCXSRk99KfV1RWyBY2zFspQ13d8cXbRTFINax1EruLj UETF6vGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wevwK-00000002II3-1jGM; Wed, 01 Jul 2026 14:29:24 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wevwI-00000002IHv-427k for linux-arm-kernel@lists.infradead.org; Wed, 01 Jul 2026 14:29:23 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 0B2A36001D; Wed, 1 Jul 2026 14:29:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B44951F00A3A; Wed, 1 Jul 2026 14:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782916161; bh=W9jOzjqG5Rzz//GfX0/ecAtlcngTzgF0sG7TCjmqoyY=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=MTKAp6KDEBhKMoaPtJO55E+C0RCxTAs+m6/7FjA8iAg8mDk29k/jdue8RDXN9mGdG adZ05+g9EFew11Gr1OQXKN+l6M4wMSe2/6WkhU78nwIPpzmd6TvT5urLlR5ka9dmDQ tjDfgC5ZWpqfoE1cQ6zhbcI+SooxCxIq7IHfxHqZ+fB2pwopY09CBTNoSQfolkIZ9a QL3VKqXUp636SWu4o1IDdO5x5tSzWk9mOT/CxaixNzLR2a9gbpWSLAm76KKh7S2kEG eBcp0ZON02Mwl7dHsDcl000YDW1BZ3ToXm4QUdjBVYjCZi6vxoSUmSwHtgwTpMTJpY OPw3DSppGeHgw== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wevwF-00000000LyA-1YM0; Wed, 01 Jul 2026 14:29:19 +0000 Date: Wed, 01 Jul 2026 15:29:18 +0100 Message-ID: <86v7aypyv5.wl-maz@kernel.org> From: Marc Zyngier To: Jia He Cc: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Lorenzo Pieralisi , Mark Brown , Sascha Bischoff , Fuad Tabba , Anshuman Khandual , Oliver Upton , linux-kernel@vger.kernel.org, Bin Guo Subject: Re: [PATCH] arm64/sysreg: Fix BWE field encoding in ID_AA64DFR2_EL1 In-Reply-To: <20260630222347.1449737-1-justin.he@arm.com> References: <20260630222347.1449737-1-justin.he@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: justin.he@arm.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, lpieralisi@kernel.org, broonie@kernel.org, Sascha.Bischoff@arm.com, tabba@google.com, anshuman.khandual@arm.com, oupton@kernel.org, linux-kernel@vger.kernel.org, guobin@linux.alibaba.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 30 Jun 2026 23:23:47 +0100, Jia He wrote: > > Commit 93d7356e4b30 ("arm64: sysreg: Describe ID_AA64DFR2_EL1 fields") > encodes the FEAT_BWE2 value of the BWE field as '0b0002'. Binary > literals only accept the digits 0 and 1, so the intended value is 2, > i.e. 0b0010. > > The macro generated by gen-sysreg.awk currently expands to > #define ID_AA64DFR2_EL1_BWE_FEAT_BWE2 UL(0b0002) > is not legal C and would fail to compile if any in-tree code referenced > it. At present no caller uses this enum value, so the kernel still > builds cleanly, but the bug is latent. > > Fix the typo by using the correct binary literal 0b0010. > > Cc: Bin Guo > Fixes: 93d7356e4b30 ("arm64: sysreg: Describe ID_AA64DFR2_EL1 fields") > Signed-off-by: Jia He > Reviewed-by: Mark Brown > --- > arch/arm64/tools/sysreg | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg > index bc1788b1662b..7cb61aca3797 100644 > --- a/arch/arm64/tools/sysreg > +++ b/arch/arm64/tools/sysreg > @@ -1806,7 +1806,7 @@ Res0 15:8 > UnsignedEnum 7:4 BWE > 0b0000 NI > 0b0001 FEAT_BWE > - 0b0002 FEAT_BWE2 > + 0b0010 FEAT_BWE2 Well, that was embarrassing. FWIW (and given the original patch, that's not much): Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.