Skip to content

Add Zvfbfa extension support

Max Chou qemu-devel 6 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest9 patches 3 repliesApplied
  2. v59 patches 19 repliesSuperseded
  3. v49 patches 11 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v39 patches4 repliesSuperseded
v29 patches5 repliesSuperseded
v1 RFC8 patches5 repliesSuperseded

Changes in v6 from the cover letter

- Remove the experimental x- prefix in cpu property.
- Rebase to latest riscv-to-apply.next branch (commit 479e3e4)

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/9target/riscv: Add cfg properties for Zvfbfa extensionstarget/riscv/cpu.c target/riscv/cpu_cfg_fields.h.inc target/riscv/tcg/tcg-cpu.c+10 -00 replies
2/9target/riscv: Add the Zvfbfa extension implied ruletarget/riscv/cpu.c+11 -20 replies
3/9target/riscv: rvv: Add new VTYPE CSR field - altfmttarget/riscv/cpu.h target/riscv/vector_helper.c+36 -70 replies
4/9target/riscv: rvv: Introduce reset_ill_vtype to reset illegal vtype CSRtarget/riscv/vector_helper.c+11 -100 replies
5/9target/riscv: Use the tb->cs_base as the extend tb flagsinclude/exec/translation-block.h target/riscv/cpu.h target/riscv/tcg/tcg-cpu.c+10 -12 replies
6/9target/riscv: Introduce altfmt into DisasContexttarget/riscv/translate.c+3 -00 replies
7/9target/riscv: Introduce BF16 canonical NaN for Zvfbfa extensiontarget/riscv/insn_trans/trans_rvv.c.inc target/riscv/translate.c+17 -90 replies
8/9target/riscv: rvv: Support Zvfbfa vector bf16 operationstarget/riscv/helper.h target/riscv/insn_trans/trans_rvv.c.inc target/riscv/internals.h +1 more+989 -3710 replies
9/9target/riscv: Expose Zvfbfa extension as a cpu propertytarget/riscv/cpu.c+1 -00 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchDaniel Henrique BarbozaNutty LiuChao LiuAlistair Francis
1/9R-b R-b R-b R-b
2/9R-b R-b R-b R-b
3/9R-b R-b R-b R-b
4/9R-b R-b R-b R-b
5/9R-b R-b R-b R-b
6/9R-b R-b R-b
7/9R-b R-b R-b
8/9R-b R-b
9/9R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/9] Add Zvfbfa extension support

This patch series adds support for the RISC-V Zvfbfa extension, which provides additional BF16 vector compute support.

The isa spec of Zvfbfa extension is not ratified yet, but is frozen (v0.9) with a tag in official riscv-isa-manual repository. This patch series is based on the latest frozen draft of the Zvfbfa spec v0.9.

The Zvfbfa extension adds a 1-bit field, altfmt, to the vtype CSR in bit position 8.
The Zvfbfa extension requires the Zve32f and Zfbfmin extensions.

Specification:
https://github.com/riscv/riscv-isa-manual/releases/tag/zvfbfa-0.9

Changes in v6:
- Remove the experimental x- prefix in cpu property.
- Rebase to latest riscv-to-apply.next branch (commit 479e3e4)

Changes in v5:
- Fix typo in patch 1/5/8
- Remove unnecessary do_bf16_nanbox

Changes in v4:
- Rebase on riscv-to-apply.next (commit 21101a7)
- Update commit message of patch 2 (target/riscv: Add the Zvfbfa extension implied rule)
- Update checking flow of illegal ALTFMT SEW patterns at patch 3 (target/riscv: rvv: Add new VTYPE CSR field - altfmt)

Changes in v3:
- Rebased on riscv-to-apply.next (commit f66f234)
- Fix typo in v2 patch 5 commit message

Changes from v2:
- Removed RFC designation from the series
- Updated commit message for patch 3 (VTYPE CSR field - altfmt) to clearly explain:
* VEDIV field removal (bits 8-9) since EDIV extension is not planned to be part of the base V extension
* ALTFMT field addition at bit 8
* RESERVED field change from bit 10 to bit 9
- Added new patch 4: Introduce reset_ill_vtype helper function to consolidate illegal vtype CSR reset logic

v4: <[email protected]>
v3: <[email protected]>
v2: <[email protected]>
v1: <[email protected]>

rnax

Max Chou (9):
target/riscv: Add cfg properties for Zvfbfa extensions target/riscv: Add the Zvfbfa extension implied rule target/riscv: rvv: Add new VTYPE CSR field - altfmt target/riscv: rvv: Introduce reset_ill_vtype to reset illegal vtype
CSR
target/riscv: Use the tb->cs_base as the extend tb flags target/riscv: Introduce altfmt into DisasContext target/riscv: Introduce BF16 canonical NaN for Zvfbfa extension target/riscv: rvv: Support Zvfbfa vector bf16 operations target/riscv: Expose Zvfbfa extension as a cpu property

 include/exec/translation-block.h        |   1 +
 target/riscv/cpu.c                      |  15 +-
 target/riscv/cpu.h                      |   7 +-
 target/riscv/cpu_cfg_fields.h.inc       |   1 +
 target/riscv/helper.h                   |  60 ++
 target/riscv/insn_trans/trans_rvv.c.inc | 988 +++++++++++++++---------
 target/riscv/internals.h                |   1 +
 target/riscv/tcg/tcg-cpu.c              |  15 +-
 target/riscv/translate.c                |  11 +
 target/riscv/vector_helper.c            | 389 +++++++++-
 10 files changed, 1088 insertions(+), 400 deletions(-)
Signature · 1 line
2.52.0