Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24F443E63AE; Tue, 21 Jul 2026 17:08:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784653696; cv=none; b=BGBAC+1yXZyaL2x2hWFk4hftrbKjnfWNA2+03ly+7pypkw7Ko8dFx3rjnC0wSiU3vpRZEZ4C0abKpYEf+gw6oAti0BBha7O+v8BED9QRI70KknZEX5Lrrcxk0Rkddz7iRHxmcPBeqlidtA4x32vKujQeSCRLHdWNq7bmZOqOtOk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784653696; c=relaxed/simple; bh=EUWP96bu3QfWT1hlltVwZp96/MR6uOc5NEP5wVGMd/o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sf82n5aBqbaII+CuL1C/QrorIQIkwaSbis6xXsYRrOJalEEtmgFIRGxk+193X0xL2AaMGb8elqHnDecANrN0Wz7m6yJEDGwRJBWIoHR39rhV8q1XBVffmkyIUK8S1DeZgkwzRRNQiYCs9fJGjzqqh4lJ23G41ZPc/95Gxch8vfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EjRWs5IQ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EjRWs5IQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 740C21F00A3D; Tue, 21 Jul 2026 17:08:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784653694; bh=TLIw1VsGAov2DitKc+7sYnbkdSiURoQG/dqLsfzNSMM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=EjRWs5IQliwa6Lgx5fRhadawSaf4d3Wfb6D8EGfem1ZmQkyw1oQx8qLHc+iagZ0Zx rEPrXHu8GXqs2GOxXaraJAq8IQ6GoyAGDscz6Acgfprynpf4oNjYb5HX0F1pEHR80y SAPTTyq5WQeb2lJ5NV6o+RW96rsdMS9o+dtBtsxw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bin Guo , Jia He , Mark Brown , Oliver Upton , Marc Zyngier , Will Deacon , Sasha Levin Subject: [PATCH 7.1 1422/2077] arm64/sysreg: Fix BWE field encoding in ID_AA64DFR2_EL1 Date: Tue, 21 Jul 2026 17:18:15 +0200 Message-ID: <20260721152626.342013436@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152552.646164743@linuxfoundation.org> References: <20260721152552.646164743@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jia He [ Upstream commit 6666336d8fe5f3f0cd3f8da2865ca78110a6e170 ] 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 Reviewed-by: Oliver Upton Acked-by: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- 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 6c3ff14e561e69..88b31ae8450f4e 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 EndEnum UnsignedEnum 3:0 STEP 0b0000 NI -- 2.53.0