]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/mm: Add remaining ID_AA64MMFR0_PARANGE_ macros
authorAnshuman Khandual <anshuman.khandual@arm.com>
Thu, 12 Aug 2021 05:09:50 +0000 (10:39 +0530)
committerMarc Zyngier <maz@kernel.org>
Wed, 18 Aug 2021 08:26:06 +0000 (09:26 +0100)
commit39bab38173ffedc17a5c4b1c2dde8e5a9033af87
tree337e30f3779bc398704d0347893a9ece47508280
parentc5c28e426a9940ca75886ac71c94045f9363c6d1
arm64/mm: Add remaining ID_AA64MMFR0_PARANGE_ macros

Currently there are macros only for 48 and 52 bits parange value extracted
from the ID_AA64MMFR0.PARANGE field. This change completes the enumeration
and updates the helper id_aa64mmfr0_parange_to_phys_shift(). While here it
also defines ARM64_MIN_PARANGE_BITS as the absolute minimum shift value PA
range which could be supported on a given platform.

Cc: Marc Zyngier <maz@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: kvmarm@lists.cs.columbia.edu
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1628744994-16623-2-git-send-email-anshuman.khandual@arm.com
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/sysreg.h