Skip to contentSkip to conversation

arm64/mm: Replace an open coding with ID_AA64MMFR1_EL1_HAFDBS_MASK

PATCH Applied Anshuman Khandual 2 participants 2 messages Jul 11, 2023 – Jul 27, 2023 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64/mm: Replace an open coding with ID_AA64MMFR1_EL1_HAFDBS_MASK

Replace '0xf' with ID_AA64MMFR1_EL1_HAFDBS_MASK while evaluating if the cpu supports implicit page table entry access flag update in HW.

---
This applies on 6.5-rc1

 arch/arm64/mm/proc.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/mm/proc.S +1 -1
index 2baeec419f62..14fdf645edc8 100644
@@ -447,7 +447,7 @@ SYM_FUNC_START(__cpu_setup)
 	 * via capabilities.
 	 */
 	mrs	x9, ID_AA64MMFR1_EL1
-	and	x9, x9, #0xf
+	and	x9, x9, ID_AA64MMFR1_EL1_HAFDBS_MASK
 	cbz	x9, 1f
 	orr	tcr, tcr, #TCR_HA		// hardware Access flag update
 1:
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 4 lines · Anshuman Khandual

Replace '0xf' with ID_AA64MMFR1_EL1_HAFDBS_MASK while evaluating if the cpu supports implicit page table entry access flag update in HW.

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

[1/1] arm64/mm: Replace an open coding with ID_AA64MMFR1_EL1_HAFDBS_MASK

      https://git.kernel.org/arm64/c/d0999555e306

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev