t/nvmept_pi: add support for xNVMe ioengine Add a command-line option to run this script using the xNVMe ioengine with the async io_uring_cmd backend. The default remains to use the io_uring_cmd ioengine. Example: python3 t/nvmept_pi.py --dut /dev/ng1n1 --lbaf 6 --ioengine xnvme --fio ./fio Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/jobs: Fix a typo in jobs 23 & 24 s/bsrange/bssplit Fixes: commit c37183f8a161 (test: test job for randtrimwrite) Signed-off-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20240305090008.1216-5-avri.altman@wdc.com Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/jobs: Rename test job 15 Make it designate the correct fixing commit. Signed-off-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20240305090008.1216-4-avri.altman@wdc.com Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/jobs: Further clarify regression test 7 Add some more details explaining why the the successful result should be 87,040KB data. Signed-off-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20240305090008.1216-3-avri.altman@wdc.com Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
fio: Some minor code cleanups limit the scope of variables when possible, fix style isses etc. Signed-off-by: Avri Altman <avri.altman@wdc.com> Link: https://lore.kernel.org/r/20240305090008.1216-2-avri.altman@wdc.com Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
gettime: fix cpuclock-test on AMD platforms Starting with gcc 11 __sync_synchronize() compiles to lock or QWORD PTR [rsp], 0 on x86_64 platforms. Previously it compiled to an mfence instruction. See line 47 of https://godbolt.org/z/xfE18K7b4 for an example. On Intel platforms this change does not affect the result of fio's CPU clock test. But on AMD platforms, this change causes fio's CPU clock test to fail and fio to fall back to clock_gettime() instead of using the CPU clock for timing. This patch has fio explicitly use an mfence instruction instead of __sync_synchornize() in the CPU clock test code on x86_64 platforms in order to allow the CPU clock test to pass on AMD platforms. Reviewed-by: Jens Axboe <axboe@kernel.dk> Link: https://lore.kernel.org/r/20240227155856.5012-1-vincent.fu@samsung.com Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
ci: fix macOS sphinx install issues We have had a lot of failures installing sphinx on macOS. The latest failure suggested using pip instead of homebrew to install sphinx. So let's try that. https://github.com/axboe/fio/actions/runs/8004639029/job/21863677360?pr=1727 Signed-off-by: Vincent Fu <vincent.fu@samsung.com>