Skip to content

Introduce Xilinx Versal CANFD

Vikram Garhwal qemu-arm qemu-devel 7 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 3 repliesApplied
  2. v5 posting 2/20 of 4 patches 0 repliesSuperseded
  3. v5 posting 1/24 patches 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v44 patches3 repliesSuperseded
v34 patches5 repliesSuperseded
v25 patches7 repliesSuperseded
v10 of 5 patches2 repliesSuperseded

Changes in v6 from the cover letter

Add formatting related comments from Francisco.
Add "review-by" for all remaining patches.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/4MAINTAINERS: Include canfd tests under Xilinx CANMAINTAINERS+1 -10 replies
2/4hw/net/can: Introduce Xilinx Versal CANFD controllerhw/net/can/meson.build hw/net/can/trace-events hw/net/can/xlnx-versal-canfd.c +1 more+2202 -00 replies
3/4xlnx-versal: Connect Xilinx VERSAL CANFD controllersdocs/system/arm/xlnx-versal-virt.rst hw/arm/xlnx-versal-virt.c hw/arm/xlnx-versal.c +1 more+133 -00 replies
4/4tests/qtest: Introduce tests for Xilinx VERSAL CANFD controllertests/qtest/meson.build tests/qtest/xlnx-canfd-test.c+424 -02 replies

Reviews trailers per patch

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

PatchFrancisco IglesiasPeter MaydellThomas Huth
1/4R-b R-b
2/4R-b
3/4R-b R-b
4/4R-b R-b A-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 3 reviewers.

Read the v6 thread

Cover letter [QEMU][PATCH v6 0/4] Introduce Xilinx Versal CANFD

Hi,
This patch implements CANFD controller for xlnx-versal-virt machine. There are two controllers CANFD0@0xFF06_0000 and CANFD1@0xFF07_0000 are connected to the machine.

Also, added basic qtests for data exchange between both the controllers in various supported configs.

Changelog:
v5->v6:
Add formatting related comments from Francisco.
Add "review-by" for all remaining patches.
v4->v5:
Fix Linux dtb connections for CANFD.
Address feedback from Francisco for xlnx-versal-canfd.c file.
v3->v4:
Address formatting related feedback from Peter. Correct dlc byte data storing if dlc is not a multiple of 4. Remove unnecessary LOG_GUEST_ERROR.
Remove instance_finalize(canfd_finalize) function. Remove unused member of struct XlnxVersalCANFDState.

v2->v3:
Corrected reg2frame().
Added assert to prevent out of bound cases.
Replace tx_id link list with GSList and removed sorting function. Replaced PTIMER_POLICY_LEGACY with proper timer policies. Corrected minor code format issues.

v1->v2
Update xlnx-versal-virt.rst with CANFD examples and add this in 03/05 patch. Addressed comments for patch 02/05 and 03/05.
Add reviewed-by tags for patch 01/05, 04/05 and 05/05.
Change commit message for patch 02/05.
Add SPDX license for Qtest.

Regards,
Vikram

Vikram Garhwal (4):
MAINTAINERS: Include canfd tests under Xilinx CAN hw/net/can: Introduce Xilinx Versal CANFD controller
xlnx-versal: Connect Xilinx VERSAL CANFD controllers tests/qtest: Introduce tests for Xilinx VERSAL CANFD controller

 MAINTAINERS                          |    2 +-
 docs/system/arm/xlnx-versal-virt.rst |   31 +
 hw/arm/xlnx-versal-virt.c            |   53 +
 hw/arm/xlnx-versal.c                 |   37 +
 hw/net/can/meson.build               |    1 +
 hw/net/can/trace-events              |    7 +
 hw/net/can/xlnx-versal-canfd.c       | 2107 ++++++++++++++++++++++++++
 include/hw/arm/xlnx-versal.h         |   12 +
 include/hw/net/xlnx-versal-canfd.h   |   87 ++
 tests/qtest/meson.build              |    1 +
 tests/qtest/xlnx-canfd-test.c        |  423 ++++++
 11 files changed, 2760 insertions(+), 1 deletion(-)
 create mode 100644 hw/net/can/xlnx-versal-canfd.c
 create mode 100644 include/hw/net/xlnx-versal-canfd.h
 create mode 100644 tests/qtest/xlnx-canfd-test.c
Signature · 1 line
2.17.1