]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/cpufeature: Drop open encodings while extracting parange
authorAnshuman Khandual <anshuman.khandual@arm.com>
Wed, 13 May 2020 09:03:34 +0000 (14:33 +0530)
committerWill Deacon <will@kernel.org>
Wed, 20 May 2020 17:40:13 +0000 (18:40 +0100)
commit2993ae1180128c3c9bbdbb046bda1127853af852
treecde6d2dc288cf9a07106718615fcf1b6a8d899f6
parent2b1e5cdc1e8285c8e6c215d7305d4f9ca17005c7
arm64/cpufeature: Drop open encodings while extracting parange

Currently there are multiple instances of parange feature width mask open
encodings while fetching it's value. Even the width mask value (0x7) itself
is not accurate. It should be (0xf) per ID_AA64MMFR0_EL1.PARange[3:0] as in
ARM ARM (0487F.a). Replace them with cpuid_feature_extract_unsigned_field()
which can extract given standard feature (4 bits width i.e 0xf mask) field.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: James Morse <james.morse@arm.com>
Cc: kvmarm@lists.cs.columbia.edu
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/1589360614-1164-1-git-send-email-anshuman.khandual@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c
arch/arm64/kvm/reset.c