arm64: lib: patch in prfm for copy_page if requested
authorAndrew Pinski <apinski@cavium.com>
Tue, 2 Feb 2016 12:46:26 +0000 (12:46 +0000)
committerAlex Shi <alex.shi@linaro.org>
Wed, 11 May 2016 14:19:19 +0000 (22:19 +0800)
commite46018fe4fd741b5f58b6c3cf8b94ed34603c325
tree807370ed9e832c0fbe7cb085b2f505e4ea0c9769
parent93c384820cf3c1db51073e746980866d2bce8af9
arm64: lib: patch in prfm for copy_page if requested

On ThunderX T88 pass 1 and pass 2, there is no hardware prefetching so
we need to patch in explicit software prefetching instructions

Prefetching improves this code by 60% over the original code and 2x
over the code without prefetching for the affected hardware using the
benchmark code at https://github.com/apinski-cavium/copy_page_benchmark

Signed-off-by: Andrew Pinski <apinski@cavium.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Tested-by: Andrew Pinski <apinski@cavium.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 60e0a09db24adc8809696307e5d97cc4ba7cb3e0)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/lib/copy_page.S