Skip to content

Linux driver verification #417

Description

@Blebowski

Currently, there are no tests for Linux driver itself. Automated FPGA build
run in CTU synthesizes latest RTL and runs set of communication tests with SJA1000.
This is good basic sanity test that "communication works". This test will not properly
test following conditions:

  1. Error handling, REC/TEC readout towards proper value (there was a bug in driver where
    REC/TEC readout was swapped).
  2. Arbitration lost handling.
  3. Fault-state changes (to active, passive and bus-off, reintegration and joining the bus
    back-on).

This task deals with creating set of tests which will run as part of CI pipeline.
These tests shall verify the functionality of Linux driver and all its corner-cases.

Several approaches are possible:

  1. Use Qemu + VPCIe framework and do co-simulation of GHDL + Qemu (virtual Linux + RTL simulation).
  2. Use some framework for linux driver testing (e.g. SymDrive, Linux driver test...)

Migrated from GitLab: https://gitlab.fel.cvut.cz/canbus/ctucanfd_ip_core/-/issues/414

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions