| From: |
| Mayuresh Chitale <mchitale-AT-ventanamicro.com> |
| To: |
| palmer-AT-dabbelt.com, aou-AT-eecs.berkeley.edu, paul.walmsley-AT-sifive.com |
| Subject: |
| [RFC PATCH 0/2] Risc-V Svinval support |
| Date: |
| Wed, 16 Feb 2022 10:51:08 +0530 |
| Message-ID: |
| <20220216052110.1053665-1-mchitale@ventanamicro.com> |
| Cc: |
| anup-AT-brainfault.org, atishp-AT-rivosinc.com, linux-riscv-AT-lists.infradead.org, linux-kernel-AT-vger.kernel.org, Mayuresh Chitale <mchitale-AT-ventanamicro.com> |
| Archive-link: |
| Article |
This patch adds support for the Svinval extension version 1.0 as defined in the
Risc V Privileged specification. It depends on and needs to be applied on the
following patchsets from Atish and Anup respectively:
https://patchwork.kernel.org/project/linux-riscv/list/?se...
https://patchwork.kernel.org/project/linux-riscv/list/?se...
The feature was tested with qemu from latest staging branch with following
additional patch:
https://lists.nongnu.org/archive/html/qemu-riscv/2022-02/...
Mayuresh Chitale (2):
riscv: enum for svinval extension
riscv: mm: use svinval instructions instead of sfence.vma
arch/riscv/include/asm/hwcap.h | 1 +
arch/riscv/include/asm/tlbflush.h | 14 +++++++
arch/riscv/kernel/cpu.c | 1 +
arch/riscv/kernel/setup.c | 1 +
arch/riscv/mm/Makefile | 1 +
arch/riscv/mm/tlb.S | 53 +++++++++++++++++++++++
arch/riscv/mm/tlbflush.c | 70 ++++++++++++++++++++++++++++---
7 files changed, 135 insertions(+), 6 deletions(-)
create mode 100644 arch/riscv/mm/tlb.S
--
2.25.1