2020-04-24 05:04:09

by Anup Patel

[permalink] [raw]
Subject: [PATCH 0/3] RISC-V KVM preparation

This patch series is factored-out from the KVM RISC-V v11 series and is
based upon Linux-5.7-rc2.

These patches are mostly preparatory changes in Linux RISC-V kernel which
we require for KVM RISC-V implementation. Also, most of these patches are
already reviewed as part of original KVM RISC-V series.

Anup Patel (3):
RISC-V: Export riscv_cpuid_to_hartid_mask() API
RISC-V: Add bitmap reprensenting ISA features common across CPUs
RISC-V: Remove N-extension related defines

arch/riscv/include/asm/csr.h | 3 --
arch/riscv/include/asm/hwcap.h | 22 +++++++++
arch/riscv/kernel/cpufeature.c | 83 ++++++++++++++++++++++++++++++++--
arch/riscv/kernel/smp.c | 2 +
4 files changed, 104 insertions(+), 6 deletions(-)

--
2.25.1


2020-04-24 05:05:12

by Anup Patel

[permalink] [raw]
Subject: [PATCH 3/3] RISC-V: Remove N-extension related defines

The RISC-V N-extension is still in draft state hence remove
N-extension related defines from asm/csr.h.

Signed-off-by: Anup Patel <[email protected]>
---
arch/riscv/include/asm/csr.h | 3 ---
1 file changed, 3 deletions(-)

diff --git a/arch/riscv/include/asm/csr.h b/arch/riscv/include/asm/csr.h
index 8e18d2c64399..cec462e198ce 100644
--- a/arch/riscv/include/asm/csr.h
+++ b/arch/riscv/include/asm/csr.h
@@ -51,13 +51,10 @@
#define CAUSE_IRQ_FLAG (_AC(1, UL) << (__riscv_xlen - 1))

/* Interrupt causes (minus the high bit) */
-#define IRQ_U_SOFT 0
#define IRQ_S_SOFT 1
#define IRQ_M_SOFT 3
-#define IRQ_U_TIMER 4
#define IRQ_S_TIMER 5
#define IRQ_M_TIMER 7
-#define IRQ_U_EXT 8
#define IRQ_S_EXT 9
#define IRQ_M_EXT 11

--
2.25.1

2020-05-04 20:04:22

by Palmer Dabbelt

[permalink] [raw]
Subject: Re: [PATCH 0/3] RISC-V KVM preparation

On Thu, 23 Apr 2020 21:59:25 PDT (-0700), Anup Patel wrote:
> This patch series is factored-out from the KVM RISC-V v11 series and is
> based upon Linux-5.7-rc2.
>
> These patches are mostly preparatory changes in Linux RISC-V kernel which
> we require for KVM RISC-V implementation. Also, most of these patches are
> already reviewed as part of original KVM RISC-V series.
>
> Anup Patel (3):
> RISC-V: Export riscv_cpuid_to_hartid_mask() API
> RISC-V: Add bitmap reprensenting ISA features common across CPUs
> RISC-V: Remove N-extension related defines
>
> arch/riscv/include/asm/csr.h | 3 --
> arch/riscv/include/asm/hwcap.h | 22 +++++++++
> arch/riscv/kernel/cpufeature.c | 83 ++++++++++++++++++++++++++++++++--
> arch/riscv/kernel/smp.c | 2 +
> 4 files changed, 104 insertions(+), 6 deletions(-)

These are on fixes.