Skip to content

riscv: Add vendor extensions support for SiFive

Cyan Yang linux-devicetree linux-doc linux-riscv lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 2 repliesIn review 9 of 12 applied
  2. v112 patches 3 repliesApplied 12/12

Changes in v2 from the cover letter

- Fixed a sparse warning
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 9 of 12 applied

#Subject and filesSizeRepliesApplied
1/12dt-bindings: riscv: Add xsfvqmaccdod and xsfvqmaccqoq ISA extension descriptionDocumentation/devicetree/bindings/riscv/extensions.yaml+13 -00 repliesApplied
2/12riscv: Add SiFive xsfvqmaccdod and xsfvqmaccqoq vendor extensionsarch/riscv/Kconfig.vendor arch/riscv/include/asm/vendor_extensions/sifive.h arch/riscv/kernel/vendor_extensions.c +2 more+57 -02 replies
3/12riscv: hwprobe: Document SiFive xsfvqmaccdod and xsfvqmaccqoq vendor extensionsDocumentation/arch/riscv/hwprobe.rst arch/riscv/include/asm/hwprobe.h arch/riscv/include/uapi/asm/hwprobe.h+16 -10 repliesApplied
4/12riscv: hwprobe: Add SiFive vendor extension support and probe for xsfqmaccdod and xsfqmaccqoqarch/riscv/include/asm/hwprobe.h arch/riscv/include/asm/vendor_extensions/sifive_hwprobe.h arch/riscv/include/uapi/asm/vendor/sifive.h +3 more+50 -00 repliesApplied
5/12dt-bindings: riscv: Add xsfvfnrclipxfqf ISA extension descriptionDocumentation/devicetree/bindings/riscv/extensions.yaml+6 -00 repliesApplied
6/12riscv: Add SiFive xsfvfnrclipxfqf vendor extensionarch/riscv/include/asm/vendor_extensions/sifive.h arch/riscv/kernel/vendor_extensions/sifive.c+2 -00 replies
7/12riscv: hwprobe: Document SiFive xsfvfnrclipxfqf vendor extensionDocumentation/arch/riscv/hwprobe.rst+4 -00 repliesApplied
8/12riscv: hwprobe: Add SiFive xsfvfnrclipxfqf vendor extensionarch/riscv/include/uapi/asm/vendor/sifive.h arch/riscv/kernel/vendor_extensions/sifive_hwprobe.c+2 -00 repliesApplied
9/12dt-bindings: riscv: Add xsfvfwmaccqqq ISA extension descriptionDocumentation/devicetree/bindings/riscv/extensions.yaml+6 -00 repliesApplied
10/12riscv: Add SiFive xsfvfwmaccqqq vendor extensionarch/riscv/include/asm/vendor_extensions/sifive.h arch/riscv/kernel/vendor_extensions/sifive.c+2 -00 replies
11/12riscv: hwprobe: Document SiFive xsfvfwmaccqqq vendor extensionDocumentation/arch/riscv/hwprobe.rst+4 -00 repliesApplied
12/12riscv: hwprobe: Add SiFive xsfvfwmaccqqq vendor extensionarch/riscv/include/uapi/asm/vendor/sifive.h arch/riscv/kernel/vendor_extensions/sifive_hwprobe.c+2 -00 repliesApplied

Reviews trailers per patch

3 of 12 patches have a Reviewed-by or Acked-by.

PatchConor Dooley
1/12A-b
2/12
3/12
4/12
5/12A-b
6/12
7/12
8/12
9/12A-b
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/12] riscv: Add vendor extensions support for SiFive

This patch set adds four vendor-specific ISA extensions from SiFive:
"xsfvqmaccdod", "xsfvqmaccqoq", "xsfvfnrclipxfqf", and "xsfvfwmaccqqq".

Additionally, a new hwprobe key, RISCV_HWPROBE_KEY_VENDOR_EXT_SIFIVE_0, has been added to query which SiFive vendor extensions are supported on the current platform.

---
Changes in v2:
- Fixed a sparse warning
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Cyan Yang (12):
dt-bindings: riscv: Add xsfvqmaccdod and xsfvqmaccqoq ISA extension
description
riscv: Add SiFive xsfvqmaccdod and xsfvqmaccqoq vendor extensions
riscv: hwprobe: Document SiFive xsfvqmaccdod and xsfvqmaccqoq vendor
extensions
riscv: hwprobe: Add SiFive vendor extension support and probe for
xsfqmaccdod and xsfqmaccqoq
dt-bindings: riscv: Add xsfvfnrclipxfqf ISA extension description
riscv: Add SiFive xsfvfnrclipxfqf vendor extension
riscv: hwprobe: Document SiFive xsfvfnrclipxfqf vendor extension
riscv: hwprobe: Add SiFive xsfvfnrclipxfqf vendor extension
dt-bindings: riscv: Add xsfvfwmaccqqq ISA extension description
riscv: Add SiFive xsfvfwmaccqqq vendor extension
riscv: hwprobe: Document SiFive xsfvfwmaccqqq vendor extension
riscv: hwprobe: Add SiFive xsfvfwmaccqqq vendor extension

 Documentation/arch/riscv/hwprobe.rst          | 22 ++++++++++++++++
 .../devicetree/bindings/riscv/extensions.yaml | 25 +++++++++++++++++++
 arch/riscv/Kconfig.vendor                     | 13 ++++++++++
 arch/riscv/include/asm/hwprobe.h              |  3 ++-
 .../include/asm/vendor_extensions/sifive.h    | 16 ++++++++++++
 .../asm/vendor_extensions/sifive_hwprobe.h    | 19 ++++++++++++++
 arch/riscv/include/uapi/asm/hwprobe.h         |  1 +
 arch/riscv/include/uapi/asm/vendor/sifive.h   |  6 +++++
 arch/riscv/kernel/sys_hwprobe.c               |  5 ++++
 arch/riscv/kernel/vendor_extensions.c         | 10 ++++++++
 arch/riscv/kernel/vendor_extensions/Makefile  |  2 ++
 arch/riscv/kernel/vendor_extensions/sifive.c  | 21 ++++++++++++++++
 .../kernel/vendor_extensions/sifive_hwprobe.c | 22 ++++++++++++++++
 13 files changed, 164 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/include/asm/vendor_extensions/sifive.h
 create mode 100644 arch/riscv/include/asm/vendor_extensions/sifive_hwprobe.h
 create mode 100644 arch/riscv/include/uapi/asm/vendor/sifive.h
 create mode 100644 arch/riscv/kernel/vendor_extensions/sifive.c
 create mode 100644 arch/riscv/kernel/vendor_extensions/sifive_hwprobe.c
Signature · 1 line
2.39.5 (Apple Git-154)