[PATCH 6/6] arm64: Remove the CONFIG_ARM64_HW_AFDBM option
From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2017-08-18 15:54:35
On Thu, Aug 17, 2017 at 02:31:54PM +0100, Will Deacon wrote:
On Tue, Jul 25, 2017 at 02:53:08PM +0100, Catalin Marinas wrote:quoted
Since the pte handling for hardware AF/DBM works even when the hardware feature is not present, make the implementation permanent and remove the Kconfig option. Cc: Will Deacon <redacted> Cc: Marc Zyngier <redacted> Cc: Christoffer Dall <redacted> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> --- arch/arm64/Kconfig | 17 ----------------- arch/arm64/include/asm/pgtable.h | 9 +-------- arch/arm64/kvm/hyp/s2-setup.c | 2 +- arch/arm64/mm/fault.c | 2 -- arch/arm64/mm/proc.S | 3 +-- 5 files changed, 3 insertions(+), 30 deletions(-)Largely in favour of this, but I'd prefer to keep the option so that we can build kernels where the enabling:quoted
diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S index 877d42fb0df6..ba82f8bf3cf1 100644 --- a/arch/arm64/mm/proc.S +++ b/arch/arm64/mm/proc.S@@ -234,7 +234,7 @@ ENTRY(__cpu_setup) */ mrs x9, ID_AA64MMFR0_EL1 bfi x10, x9, #32, #3 -#ifdef CONFIG_ARM64_HW_AFDBM + /* * Hardware update of the Access and Dirty bits. */@@ -246,7 +246,6 @@ ENTRY(__cpu_setup) orr x10, x10, #TCR_HD // hardware Dirty flag update 1: orr x10, x10, #TCR_HA // hardware Access flag update 2: -#endif /* CONFIG_ARM64_HW_AFDBM */ msr tcr_el1, x10 ret // return to head.S ENDPROC(__cpu_setup)is still configurable. That might help for debugging suspected races in this area.
Makes sense. Fixed it locally. -- Catalin