Skip to content

i3c: aspeed: Add I3C support

Joe Komlodi qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16hw/misc/aspeed_i3c: Move to i3c directoryhw/Kconfig hw/arm/Kconfig hw/i3c/Kconfig +10 more+19 -90 replies
2/16hw/i3c: Add bus supporthw/i3c/core.c hw/i3c/meson.build hw/i3c/trace-events +1 more+921 -00 replies
3/16hw/i3c/aspeed_i3c: Add more register fieldshw/i3c/aspeed_i3c.c+248 -120 replies
4/16hw/i3c/aspeed_i3c: Add more reset valueshw/i3c/aspeed_i3c.c+17 -00 replies
5/16hw/i3c/aspeed_i3c: Add register RO field maskshw/i3c/aspeed_i3c.c+56 -00 replies
6/16hw/i3c/aspeed_i3c: Treat more registers as read-as-zerohw/i3c/aspeed_i3c.c+3 -00 replies
7/16hw/i3c/aspeed_i3c: Use 32 bits on MMIO writeshw/i3c/aspeed_i3c.c+3 -20 replies
8/16hw/i3c/aspeed_i3c: Add IRQ MMIO behaviorhw/i3c/aspeed_i3c.c+57 -00 replies
9/16hw/i3c/aspeed_i3c: Add data TX and RXhw/i3c/aspeed_i3c.c hw/i3c/trace-events include/hw/i3c/aspeed_i3c.h+990 -01 reply
10/16hw/i3c/aspeed_i3c: Add IBI handlinghw/i3c/aspeed_i3c.c hw/i3c/trace-events include/hw/i3c/aspeed_i3c.h+339 -03 replies
11/16hw/i3c/aspeed_i3c: Add ctrl MMIO handlinghw/i3c/aspeed_i3c.c+36 -00 replies
12/16hw/i3c/aspeed_i3c: Add controller resetshw/i3c/aspeed_i3c.c hw/i3c/trace-events+104 -70 replies
13/16hw/i3c: Add Mock targethw/i3c/Kconfig hw/i3c/meson.build hw/i3c/mock-target.c +2 more+392 -00 replies
14/16hw/i3c: remote_i3c: Add modelhw/i3c/Kconfig hw/i3c/meson.build hw/i3c/remote-i3c.c +2 more+554 -03 replies
15/16qtest: remote_i3c: Add remote I3C qtesthw/arm/Kconfig tests/qtest/meson.build tests/qtest/remote-i3c-test.c+612 -00 replies
16/16hw/i3c: Add hotplug supporthw/i3c/core.c+17 -00 replies

Reviews trailers per patch

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

PatchPatrick VentureTitus RwantareHao WuStephen Longfield
1/16R-b R-b
2/16R-b R-b
3/16R-b
4/16R-b
5/16R-b
6/16R-b
7/16R-b R-b
8/16R-b R-b
9/16R-b R-b
10/16R-b R-b
11/16R-b R-b
12/16R-b R-b
13/16R-b R-b
14/16R-b R-b
15/16R-b R-b
16/16R-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 v1 thread

Cover letter [PATCH 00/16] i3c: aspeed: Add I3C support

Hi all,

This series adds I3C bus support to QEMU and adds more functionality to the Aspeed I3C controller.

This implementation is a basic implementation that introduces IBIs (including hot-join), CCCs, and SDR data transfer. As-is, it doesnt support multi-controller buses or HDR transfers.

First we add the I3C bus and controller model. With that added we gradually extend the functionality of the Aspeed I3C controller so it can do transfers.

With that added, we add 2 targets. The first target is a mock I3C target. It's intended to be a very simple target just to verify that I3C is working on the guest. Internally, we've used it on Linux to verify that i3C devices can be probed and can send/receive data and send IBIs.

The second target is a remote target. The intention of this is to be able to communicate to a target that exists outside of QEMU.

Lastly we add hotplugging support. The hotplugging doesn't do anything too complicated, it just adds the device attempting to hotplug to the bus. It is the device's responsibility to hot-join and go through the DAA process to participate on the bus.

Thanks!
Joe

Joe Komlodi (16):
hw/misc/aspeed_i3c: Move to i3c directory hw/i3c: Add bus support
hw/i3c/aspeed_i3c: Add more register fields hw/i3c/aspeed_i3c: Add more reset values hw/i3c/aspeed_i3c: Add register RO field masks hw/i3c/aspeed_i3c: Treat more registers as read-as-zero hw/i3c/aspeed_i3c: Use 32 bits on MMIO writes hw/i3c/aspeed_i3c: Add IRQ MMIO behavior hw/i3c/aspeed_i3c: Add data TX and RX hw/i3c/aspeed_i3c: Add IBI handling hw/i3c/aspeed_i3c: Add ctrl MMIO handling hw/i3c/aspeed_i3c: Add controller resets hw/i3c: Add Mock target
hw/i3c: remote_i3c: Add model
qtest: remote_i3c: Add remote I3C qtest hw/i3c: Add hotplug support

 hw/Kconfig                    |    1 +
 hw/arm/Kconfig                |    2 +
 hw/i3c/Kconfig                |   17 +
 hw/i3c/aspeed_i3c.c           | 2044 +++++++++++++++++++++++++++++++++
 hw/i3c/core.c                 |  646 +++++++++++
 hw/i3c/meson.build            |    6 +
 hw/i3c/mock-target.c          |  314 +++++
 hw/i3c/remote-i3c.c           |  469 ++++++++
 hw/i3c/trace-events           |   52 +
 hw/i3c/trace.h                |    1 +
 hw/meson.build                |    1 +
 hw/misc/aspeed_i3c.c          |  384 -------
 hw/misc/meson.build           |    1 -
 hw/misc/trace-events          |    6 -
 include/hw/arm/aspeed_soc.h   |    2 +-
 include/hw/i3c/aspeed_i3c.h   |  207 ++++
 include/hw/i3c/i3c.h          |  275 +++++
 include/hw/i3c/mock-target.h  |   60 +
 include/hw/i3c/remote-i3c.h   |   72 ++
 include/hw/misc/aspeed_i3c.h  |   48 -
 meson.build                   |    1 +
 tests/qtest/meson.build       |    1 +
 tests/qtest/remote-i3c-test.c |  610 ++++++++++
 23 files changed, 4780 insertions(+), 440 deletions(-)
 create mode 100644 hw/i3c/Kconfig
 create mode 100644 hw/i3c/aspeed_i3c.c
 create mode 100644 hw/i3c/core.c
 create mode 100644 hw/i3c/meson.build
 create mode 100644 hw/i3c/mock-target.c
 create mode 100644 hw/i3c/remote-i3c.c
 create mode 100644 hw/i3c/trace-events
 create mode 100644 hw/i3c/trace.h
 delete mode 100644 hw/misc/aspeed_i3c.c
 create mode 100644 include/hw/i3c/aspeed_i3c.h
 create mode 100644 include/hw/i3c/i3c.h
 create mode 100644 include/hw/i3c/mock-target.h
 create mode 100644 include/hw/i3c/remote-i3c.h
 delete mode 100644 include/hw/misc/aspeed_i3c.h
 create mode 100644 tests/qtest/remote-i3c-test.c
Signature · 1 line
2.40.0.348.gf938b09366-goog