Skip to content

Commit e8fd215

Browse files
cyanyang-sifivepalmer-dabbelt
authored andcommitted
riscv: hwprobe: Document SiFive xsfvqmaccdod and xsfvqmaccqoq vendor extensions
Document the support for sifive vendor extensions using the key RISCV_HWPROBE_KEY_VENDOR_EXT_SIFIVE_0 and two vendor extensions for SiFive Int8 Matrix Multiplication Instructions using RISCV_HWPROBE_VENDOR_EXT_XSFVQMACCDOD and RISCV_HWPROBE_VENDOR_EXT_XSFVQMACCQOQ. Signed-off-by: Cyan Yang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 2d147d7 commit e8fd215

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

Documentation/arch/riscv/hwprobe.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,3 +335,17 @@ The following keys are defined:
335335

336336
* :c:macro:`RISCV_HWPROBE_KEY_ZICBOM_BLOCK_SIZE`: An unsigned int which
337337
represents the size of the Zicbom block in bytes.
338+
339+
* :c:macro:`RISCV_HWPROBE_KEY_VENDOR_EXT_SIFIVE_0`: A bitmask containing the
340+
sifive vendor extensions that are compatible with the
341+
:c:macro:`RISCV_HWPROBE_BASE_BEHAVIOR_IMA`: base system behavior.
342+
343+
* SIFIVE
344+
345+
* :c:macro:`RISCV_HWPROBE_VENDOR_EXT_XSFVQMACCDOD`: The Xsfqmaccdod vendor
346+
extension is supported in version 1.1 of SiFive Int8 Matrix Multiplication
347+
Extensions Specification.
348+
349+
* :c:macro:`RISCV_HWPROBE_VENDOR_EXT_XSFVQMACCQOQ`: The Xsfqmaccqoq vendor
350+
extension is supported in version 1.1 of SiFive Int8 Matrix Multiplication
351+
Instruction Extensions Specification.

arch/riscv/include/asm/hwprobe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <uapi/asm/hwprobe.h>
1010

11-
#define RISCV_HWPROBE_MAX_KEY 12
11+
#define RISCV_HWPROBE_MAX_KEY 13
1212

1313
static inline bool riscv_hwprobe_key_is_valid(__s64 key)
1414
{

arch/riscv/include/uapi/asm/hwprobe.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ struct riscv_hwprobe {
104104
#define RISCV_HWPROBE_MISALIGNED_VECTOR_UNSUPPORTED 4
105105
#define RISCV_HWPROBE_KEY_VENDOR_EXT_THEAD_0 11
106106
#define RISCV_HWPROBE_KEY_ZICBOM_BLOCK_SIZE 12
107+
#define RISCV_HWPROBE_KEY_VENDOR_EXT_SIFIVE_0 13
107108
/* Increase RISCV_HWPROBE_MAX_KEY when adding items. */
108109

109110
/* Flags */

0 commit comments

Comments
 (0)