|
|
Subscribe / Log in / New account

riscv: Add Zicbop & prefetchw support

From:  guoren-AT-kernel.org
To:  paul.walmsley-AT-sifive.com, palmer-AT-dabbelt.com, guoren-AT-kernel.org, panqinglin2020-AT-iscas.ac.cn, bjorn-AT-rivosinc.com, conor.dooley-AT-microchip.com, leobras-AT-redhat.com, peterz-AT-infradead.org, keescook-AT-chromium.org, wuwei2016-AT-iscas.ac.cn, xiaoguang.xing-AT-sophgo.com, chao.wei-AT-sophgo.com, unicorn_wang-AT-outlook.com, uwu-AT-icenowy.me, jszhang-AT-kernel.org, wefu-AT-redhat.com, atishp-AT-atishpatra.org, ajones-AT-ventanamicro.com
Subject:  [PATCH V2 0/3] riscv: Add Zicbop & prefetchw support
Date:  Sun, 31 Dec 2023 03:29:50 -0500
Message-ID:  <20231231082955.16516-1-guoren@kernel.org>
Cc:  linux-riscv-AT-lists.infradead.org, linux-kernel-AT-vger.kernel.org, Guo Ren <guoren-AT-linux.alibaba.com>
Archive-link:  Article

From: Guo Ren <guoren@linux.alibaba.com>

This patch series adds Zicbop support and then enables the Linux
prefetchw feature. It's based on v6.7-rc7.

PATCH[1] - Add Zicbop support
PATCH[2] - Add prefetchw support
PATCH[3] - Enhance xchg_small

Changelog:
V2:
 - Separate from the qspinlock series
 - Optimize coding convention with last review advice
 - Add DEFINE_INSN_S type in insn-def.h
 - Add CBO_PREFETCH_I/R/W

V1:
https://lore.kernel.org/linux-riscv/20230910082911.337878...

Guo Ren (3):
  riscv: Add Zicbop instruction definitions & cpufeature
  riscv: Add ARCH_HAS_PRETCHW support with Zibop
  riscv: xchg: Prefetch the destination word for sc.w

 arch/riscv/Kconfig                 | 15 ++++++++
 arch/riscv/include/asm/cmpxchg.h   |  4 +-
 arch/riscv/include/asm/hwcap.h     |  1 +
 arch/riscv/include/asm/insn-def.h  | 60 ++++++++++++++++++++++++++++++
 arch/riscv/include/asm/processor.h | 16 ++++++++
 arch/riscv/kernel/cpufeature.c     |  1 +
 6 files changed, 96 insertions(+), 1 deletion(-)

-- 
2.40.1




Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds