]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfio: selftests: Add driver for Intel DSA
authorDavid Matlack <dmatlack@google.com>
Fri, 22 Aug 2025 21:25:09 +0000 (21:25 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 27 Aug 2025 18:14:09 +0000 (12:14 -0600)
commit35b05bd96204bc40a2ca8620bad1a5d139c20060
tree49a392569358f382a1128966556743db0008fdce
parent003e6faf2c8ff1670c35622f11ff6211be563a9e
vfio: selftests: Add driver for Intel DSA

Add a driver to VFIO selftests for Intel DSA devices.

For now the driver only supports up to 32 batches and 1024 copies per
batch, which were the limits of the hardware this commit was tested
with. This is sufficient to generate 9+ minutes of DMA memcpys at a rate
of over 30 GB/s. This should be plenty to stress test VFIO and the IOMMU.

The driver does not yet support requesting interrupt handles, as this
commit was not tested against hardware that requires it.

Cc: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-23-dmatlack@google.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
tools/testing/selftests/vfio/lib/drivers/dsa/dsa.c [new file with mode: 0644]
tools/testing/selftests/vfio/lib/drivers/dsa/registers.h [new symlink]
tools/testing/selftests/vfio/lib/libvfio.mk
tools/testing/selftests/vfio/lib/vfio_pci_driver.c