riscv: Add ARCH_HAS_PREFETCH[W] support with Zicbop
authorGuo Ren <guoren@linux.alibaba.com>
Mon, 21 Apr 2025 14:24:40 +0000 (16:24 +0200)
committerPalmer Dabbelt <palmer@dabbelt.com>
Thu, 5 Jun 2025 18:09:38 +0000 (11:09 -0700)
commita5f947c73115efb6fb0d9579e71ce1ee5cf706aa
tree48b865b7d18f36a47c98a55f753d785aaaad83ab
parent8d496b5a989120c1bce1ad8eb48ebae0350722d7
riscv: Add ARCH_HAS_PREFETCH[W] support with Zicbop

Enable Linux prefetch and prefetchw primitives using Zicbop.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20231231082955.16516-3-guoren@kernel.org
Tested-by: Andrea Parri <parri.andrea@gmail.com>
Link: https://lore.kernel.org/r/20250421142441.395849-4-alexghiti@rivosinc.com
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@dabbelt.com>
arch/riscv/include/asm/processor.h