[PATCH] arm64/cpufeature: Remove 4 bit assumption in ARM64_FEATURE_MASK()

Catalin Marinas catalin.marinas at arm.com
Thu Jan 12 09:49:50 PST 2023


On Tue, 27 Dec 2022 13:00:39 +0000, Mark Brown wrote:
> The ARM64_FEATURE_MASK(), used extensively by KVM, assumes that all ID
> register fields are 4 bits wide but this is not the case any more, for
> example there are several 1 bit fields in ID_AA64SMFR0_EL1. Fortunately
> we now have generated constants for all the ID mask registers which can
> be used instead. Rather than create churn from updating existing users
> update the macro to reference the generated constants and replace the
> comment with a note advising against adding new users.
> 
> [...]

Applied to arm64 (for-next/sysreg), thanks!

[1/1] arm64/cpufeature: Remove 4 bit assumption in ARM64_FEATURE_MASK()
      https://git.kernel.org/arm64/c/e978eaca4bee

-- 
Catalin




More information about the linux-arm-kernel mailing list