mbox series

[[PATCH,v2,0/4] Introduce Xlnx ZynqMP CAN controller for QEMU

Message ID 1587148169-173268-1-git-send-email-fnu.vikram@xilinx.com (mailing list archive)
Headers show
Series Introduce Xlnx ZynqMP CAN controller for QEMU | expand

Message

Vikram Garhwal April 17, 2020, 6:29 p.m. UTC
Example for single CAN:
      -object can-bus,id=canbus0 \
      -global driver=xlnx.zynqmp-can,property=canbus0,value=canbus0 \
      -object can-host-socketcan,id=socketcan0,if=vcan0,canbus=canbus0

 Example for connecting both CAN:
      -object can-bus,id=canbus0 -object can-bus,id=canbus1 \
      -global driver=xlnx.zynqmp-can,property=canbus0,value=canbus0 \
      -global driver=xlnx.zynqmp-can,property=canbus1,value=canbus1 \
      -object can-host-socketcan,id=socketcan0,if=vcan0,canbus=canbus0 \
      -object can-host-soc

Changelog:

v1 -> v2:
    Rename the CAN device state and address code style issues.
    Connect the CAN device to Xlnx-ZCU102 board.
    Add maintainer entry.
    Add QTEST for the CAN device.

Vikram Garhwal (4):
  MAINTAINERS: Add maintainer entry for Xilinx CAN
  hw/net/can: Introduce Xlnx ZynqMP CAN controller for QEMU
  hw/net/can: Connect Xlnx ZynqMP CAN controller to ZCU102 machine
  hw/net/can: Introduce QTEST for Xlnx CAN controller

 MAINTAINERS                      |    7 +
 hw/arm/xlnx-zynqmp.c             |   26 +
 hw/net/can/Makefile.objs         |    1 +
 hw/net/can/xlnx-zynqmp-can.c     | 1113 ++++++++++++++++++++++++++++++++++++++
 include/hw/arm/xlnx-zynqmp.h     |    3 +
 include/hw/net/xlnx-zynqmp-can.h |   76 +++
 tests/qtest/Makefile.include     |    1 +
 tests/qtest/xlnx-can-test.c      |  367 +++++++++++++
 8 files changed, 1594 insertions(+)
 create mode 100644 hw/net/can/xlnx-zynqmp-can.c
 create mode 100644 include/hw/net/xlnx-zynqmp-can.h
 create mode 100644 tests/qtest/xlnx-can-test.c

--
2.7.4

Comments

no-reply@patchew.org April 17, 2020, 7:55 p.m. UTC | #1
Patchew URL: https://patchew.org/QEMU/1587148169-173268-1-git-send-email-fnu.vikram@xilinx.com/



Hi,

This series failed the docker-quick@centos7 build test. Please find the testing commands and
their output below. If you have Docker installed, you can probably reproduce it
locally.

=== TEST SCRIPT BEGIN ===
#!/bin/bash
make docker-image-centos7 V=1 NETWORK=1
time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1
=== TEST SCRIPT END ===

  CC      tests/qtest/cdrom-test.o
  CC      test_a_f32_z_i32_rx.o
  CC      tests/qtest/device-introspect-test.o
/tmp/qemu-test/src/tests/qtest/xlnx-can-test.c:27:24: fatal error: qemu/osdep.h: No such file or directory
 #include "qemu/osdep.h"
                        ^
compilation terminated.
---
  CC      test_a_f32_z_f16.o
  CC      tests/qtest/qmp-cmd-test.o
  CC      tests/qtest/qom-test.o
make: *** [tests/qtest/xlnx-can-test] Error 1
make: *** Waiting for unfinished jobs....
  CC      test_a_f32_z_f64.o
  CC      test_a_f32_z_extF80.o
---
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=a5394c1481bc45a8a5c498304329935e', '-u', '1003', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew2/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-6fmtq36p/src/docker-src.2020-04-17-15.52.50.14267:/var/tmp/qemu:z,ro', 'qemu:centos7', '/var/tmp/qemu/run', 'test-quick']' returned non-zero exit status 2.
filter=--filter=label=com.qemu.instance.uuid=a5394c1481bc45a8a5c498304329935e
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-6fmtq36p/src'
make: *** [docker-run-test-quick@centos7] Error 2

real    2m53.145s
user    0m8.553s


The full log is available at
http://patchew.org/logs/1587148169-173268-1-git-send-email-fnu.vikram@xilinx.com/testing.docker-quick@centos7/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com