linux/tools/testing/selftests/vfio
Yi Lai c82cfe1591 vfio: selftests: Support DMR and GNR-D DSA devices
Currently, the VFIO DSA driver test only supports the SPR DSA device ID.
Attempting to run the test on newer platforms like DMR or GNR-D results
in a "No driver found" error, causing the test to be skipped.

Refactor dsa_probe() to use a switch statement for checking device IDs.
This improves maintainability and makes it easier to add new device IDs
in the future.

Add the following DSA device IDs to the supported list:
PCI_DEVICE_ID_INTEL_DSA_DMR  (0x1212)
PCI_DEVICE_ID_INTEL_DSA_GNRD (0x11fb)

Signed-off-by: Yi Lai <yi1.lai@intel.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20260320010930.481380-1-yi1.lai@intel.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
2026-03-20 13:54:51 -06:00
..
lib vfio: selftests: Support DMR and GNR-D DSA devices 2026-03-20 13:54:51 -06:00
scripts vfio: selftests: Split run.sh into separate scripts 2025-11-28 10:58:06 -07:00
.gitignore vfio: selftests: Fix .gitignore for already tracked files 2025-08-28 13:40:51 -06:00
Makefile vfio: selftests: Build tests on aarch64 2026-03-20 13:52:16 -06:00
vfio_dma_mapping_mmio_test.c vfio: selftests: fix crash in vfio_dma_mapping_mmio_test 2026-03-10 11:56:01 -06:00
vfio_dma_mapping_test.c vfio: selftests: Drop IOMMU mapping size assertions for VFIO_TYPE1_IOMMU 2026-01-19 10:06:30 -07:00
vfio_iommufd_setup_test.c vfio: selftests: Drop <uapi/linux/types.h> includes 2025-12-23 14:17:13 -07:00
vfio_pci_device_init_perf_test.c vfio: selftests: Add vfio_pci_device_init_perf_test 2025-11-28 10:58:07 -07:00
vfio_pci_device_test.c Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
vfio_pci_driver_test.c Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00