xref: /aosp_15_r20/external/sg3_utils/inhex/nvme_dev_self_test.hex (revision 44704f698541f6367e81f991ef8bb54ccbf3fc18)
1# 64 byte NVMe Device Self Test command (an Admin command) that is suitable
2# for:
3#       sg_raw --cmdfile=<this_file_name> <nvme_device>
4#
5# There is no data-in or data-out associated with this command. This command
6# is optional so check the Identify controller command response to see if
7# it is supported.
8#
9# The following invocation will self test the controller and all its
10# namespaces (since nsid=0xffffffff) and does a "short" self test on each
11# one (since CDW10 is 0x1).
12
1314 00 00 00 ff ff ff ff  00 00 00 00 00 00 00 00
1400 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
1500 00 00 00 00 00 00 00  01 00 00 00 00 00 00 00
1600 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
17
18# A typical invocation in Linux and FreeBSD would look like this:
19#    sg_raw --cmdfile=nvme_dev_self_test.hex /dev/nvme0
20#
21