summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/hwprobe.h
diff options
context:
space:
mode:
authorAndrew Jones <ajones@ventanamicro.com>2023-09-18 15:15:22 +0200
committerPalmer Dabbelt <palmer@rivosinc.com>2023-09-21 04:22:25 -0700
commit9c7646d5ffd2b8bf720a0b77897f6c5095dfc53b (patch)
treec568378dca2f84e014409ec1c6cd83c702cab598 /arch/riscv/include/asm/hwprobe.h
parent43c16d51a19b0ba2ed66978d5924d486ec1e42bc (diff)
RISC-V: hwprobe: Expose Zicboz extension and its block size
Expose Zicboz through hwprobe and also provide a key to extract its respective block size. Opportunistically add a macro and apply it to current extensions in order to avoid duplicating code. Signed-off-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Evan Green <evan@rivosinc.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230918131518.56803-11-ajones@ventanamicro.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm/hwprobe.h')
-rw-r--r--arch/riscv/include/asm/hwprobe.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/hwprobe.h b/arch/riscv/include/asm/hwprobe.h
index 78936f4ff513..39df8604fea1 100644
--- a/arch/riscv/include/asm/hwprobe.h
+++ b/arch/riscv/include/asm/hwprobe.h
@@ -8,6 +8,6 @@
#include <uapi/asm/hwprobe.h>
-#define RISCV_HWPROBE_MAX_KEY 5
+#define RISCV_HWPROBE_MAX_KEY 6
#endif