arm64: Use FEAT_HAFDBS to track dirty pages when available
authorMarc Zyngier <maz@kernel.org>
Fri, 17 Mar 2023 16:22:51 +0000 (00:22 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 19:31:27 +0000 (15:31 -0400)
commit6cdf6b7a340db4ddd008516181de7e08e3f8c213
tree74bd932309359be5b6dec15dcf822bafc75a0f97
parentbad2618b8c5c7e18dcfb9ff6a7d108e389d20cf7
arm64: Use FEAT_HAFDBS to track dirty pages when available

Some recent arm64 cores have a facility that allows the page
table walker to track the dirty state of a page. This makes it
really efficient to perform CMOs by VA as we only need to look
at dirty pages.

Signed-off-by: Marc Zyngier <maz@kernel.org>
[ Paul: pick from the Android tree. Rebase to the upstream ]
Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Cc: Tom Rini <trini@konsulko.com>
Link: https://android.googlesource.com/platform/external/u-boot/+/3c433724e6f830a6b2edd5ec3d4a504794887263
arch/arm/cpu/armv8/cache_v8.c
arch/arm/include/asm/armv8/mmu.h
arch/arm/include/asm/global_data.h