brintos

brintos / linux-shallow public Read only

0
0
Text · 1.0 KiB · c0aa1f3 Raw
39 lines · plain
1.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2 3=================4Devlink Selftests5=================6 7The ``devlink-selftests`` API allows executing selftests on the device.8 9Tests Mask10==========11The ``devlink-selftests`` command should be run with a mask indicating12the tests to be executed.13 14Tests Description15=================16The following is a list of tests that drivers may execute.17 18.. list-table:: List of tests19   :widths: 5 9020 21   * - Name22     - Description23   * - ``DEVLINK_SELFTEST_FLASH``24     - Devices may have the firmware on non-volatile memory on the board, e.g.25       flash. This particular test helps to run a flash selftest on the device.26       Implementation of the test is left to the driver/firmware.27 28example usage29-------------30 31.. code:: shell32 33    # Query selftests supported on the devlink device34    $ devlink dev selftests show DEV35    # Query selftests supported on all devlink devices36    $ devlink dev selftests show37    # Executes selftests on the device38    $ devlink dev selftests run DEV id flash39