qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Support RISC-V IOPMP
@ 2023-11-14  9:47 Ethan Chen via
  2023-11-14  9:47 ` [PATCH v3 1/4] hw/core: Add config stream Ethan Chen via
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Ethan Chen via @ 2023-11-14  9:47 UTC (permalink / raw)
  To: qemu-devel
  Cc: peter.maydell, edgar.iglesias, richard.henderson, pbonzini,
	palmer, alistair.francis, in.meng, liweiwei, dbarboza, hiwei_liu,
	qemu-riscv, peterx, david, Ethan Chen

This series implements IOPMP specification v1.0.0-draft4 rapid-k model.

When IOPMP is enabled, a DMA device ATCDMAC300 is added to RISC-V virt
platform. This DMA devce is connected to the IOPMP and has the functionalities
required by IOPMP, including:
- Support specify source-id (SID)
- Support asynchronous I/O to handle stall transcations

IOPMP takes a transaction which partially match an entry as a partially hit
error. The transaction size is depending on source device, destination device
and bus.

Source device can send transaction information to IOPMP StreamSink. IOPMP will
check partially hit with transaction information. If source device does not send
transaction information, IOPMP will skip partially hit check.

Changes for v3:
  - Remove iopmp_start_addr and iopmp_end_addr in MemTxAttrs
  - IOPMP: Get transaction_info from StreamSink instead of MemTxAttrs
  - ATCDMAC300: Convert ATCDMAC burst to AXI burst
  - ATCDMAC300: Send transaction_info to IOPMP StreamSink

Ethan Chen (4):
  hw/core: Add config stream
  Add RISC-V IOPMP support
  hw/dma: Add Andes ATCDMAC300 support
  hw/riscv/virt: Add IOPMP support

 hw/core/Kconfig                               |   3 +
 hw/core/meson.build                           |   1 +
 hw/dma/Kconfig                                |   4 +
 hw/dma/atcdmac300.c                           | 566 ++++++++++
 hw/dma/meson.build                            |   1 +
 hw/misc/Kconfig                               |   4 +
 hw/misc/meson.build                           |   1 +
 hw/misc/riscv_iopmp.c                         | 967 ++++++++++++++++++
 hw/riscv/Kconfig                              |   2 +
 hw/riscv/virt.c                               |  72 +-
 include/hw/dma/atcdmac300.h                   | 180 ++++
 include/hw/misc/riscv_iopmp.h                 | 342 +++++++
 .../hw/misc/riscv_iopmp_transaction_info.h    |  28 +
 include/hw/riscv/virt.h                       |  10 +-
 14 files changed, 2178 insertions(+), 3 deletions(-)
 create mode 100644 hw/dma/atcdmac300.c
 create mode 100644 hw/misc/riscv_iopmp.c
 create mode 100644 include/hw/dma/atcdmac300.h
 create mode 100644 include/hw/misc/riscv_iopmp.h
 create mode 100644 include/hw/misc/riscv_iopmp_transaction_info.h

-- 
2.34.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-11-21 10:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14  9:47 [PATCH v3 0/4] Support RISC-V IOPMP Ethan Chen via
2023-11-14  9:47 ` [PATCH v3 1/4] hw/core: Add config stream Ethan Chen via
2023-11-21  5:24   ` Alistair Francis
2023-11-21  5:28     ` Alistair Francis
2023-11-21 10:09       ` Ethan Chen via
2023-11-14  9:47 ` [PATCH v3 2/4] Add RISC-V IOPMP support Ethan Chen via
2023-11-21  5:38   ` Alistair Francis
2023-11-14  9:47 ` [PATCH v3 3/4] hw/dma: Add Andes ATCDMAC300 support Ethan Chen via
2023-11-21  5:39   ` Alistair Francis
2023-11-14  9:47 ` [PATCH v3 4/4] hw/riscv/virt: Add IOPMP support Ethan Chen via
2023-11-14 17:50   ` Daniel Henrique Barboza
2023-11-15  1:51     ` Ethan Chen via
2023-11-21  5:22   ` Alistair Francis
2023-11-21  9:54     ` Ethan Chen via

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).