arm64: Use Signed/Unsigned enums for TGRAN{4,16,64} and VARange
authorMarc Zyngier <maz@kernel.org>
Mon, 19 Feb 2024 15:13:22 +0000 (15:13 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 19 Feb 2024 16:33:12 +0000 (16:33 +0000)
commit2aea7b77aabc708a9df769ad5fa63e9912ceb7f7
tree659288f5362eb5417479362d9a692b660f8317a7
parent90e636f60b76c590aded72964543945084d97c2f
arm64: Use Signed/Unsigned enums for TGRAN{4,16,64} and VARange

Open-coding the feature matching parameters for LVA/LVA2 leads to
issues with upcoming changes to the cpufeature code.

By making TGRAN{4,16,64} and VARange signed/unsigned as per the
architecture, we can use the existing macros, making the feature
match robust against those changes.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpufeature.c
arch/arm64/tools/sysreg