]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:19:41 +0000 (10:19 +0100)
commit18d26b34d9c971c27b8f75bfe3d6df23fc314f90
treed2ec9a97928a7c1f92ad5ab41e2655465ffbb338
parentdc3c3e164ad1b38ad17f5af7f03906c0f3093a64
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 linux-next commit 60e0a09db24adc8809696307e5d97cc4ba7cb3e0)
Signed-off-by: Dann Frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/arm64/lib/copy_page.S