Re: [PATCH v2] vfio: selftests: Support DMR and GNR-D DSA devices
From: David Matlack
Date: Fri Mar 20 2026 - 11:40:39 EST
On Thu, Mar 19, 2026 at 6:09 PM Yi Lai <yi1.lai@xxxxxxxxx> wrote:
>
> 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@xxxxxxxxx>
Reviewed-by: David Matlack <dmatlack@xxxxxxxxxx>