1 .. SPDX-License-Identifier: (GPL-2.0-only OR B 1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 2 3 ================= 3 ================= 4 Devlink Selftests 4 Devlink Selftests 5 ================= 5 ================= 6 6 7 The ``devlink-selftests`` API allows executing 7 The ``devlink-selftests`` API allows executing selftests on the device. 8 8 9 Tests Mask 9 Tests Mask 10 ========== 10 ========== 11 The ``devlink-selftests`` command should be ru 11 The ``devlink-selftests`` command should be run with a mask indicating 12 the tests to be executed. 12 the tests to be executed. 13 13 14 Tests Description 14 Tests Description 15 ================= 15 ================= 16 The following is a list of tests that drivers 16 The following is a list of tests that drivers may execute. 17 17 18 .. list-table:: List of tests 18 .. list-table:: List of tests 19 :widths: 5 90 19 :widths: 5 90 20 20 21 * - Name 21 * - Name 22 - Description 22 - Description 23 * - ``DEVLINK_SELFTEST_FLASH`` 23 * - ``DEVLINK_SELFTEST_FLASH`` 24 - Devices may have the firmware on non-vo 24 - Devices may have the firmware on non-volatile memory on the board, e.g. 25 flash. This particular test helps to ru 25 flash. This particular test helps to run a flash selftest on the device. 26 Implementation of the test is left to t 26 Implementation of the test is left to the driver/firmware. 27 27 28 example usage 28 example usage 29 ------------- 29 ------------- 30 30 31 .. code:: shell 31 .. code:: shell 32 32 33 # Query selftests supported on the devlink 33 # Query selftests supported on the devlink device 34 $ devlink dev selftests show DEV 34 $ devlink dev selftests show DEV 35 # Query selftests supported on all devlink 35 # Query selftests supported on all devlink devices 36 $ devlink dev selftests show 36 $ devlink dev selftests show 37 # Executes selftests on the device 37 # Executes selftests on the device 38 $ devlink dev selftests run DEV id flash 38 $ devlink dev selftests run DEV id flash
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.