Re: [PATCH v2 2/3] uio: Add Kconfig and Makefile support for UIO_PCI_GENERIC_SVA
From: Greg KH
Date: Thu Sep 25 2025 - 08:33:49 EST
On Thu, Sep 25, 2025 at 06:40:17PM +0800, Yaxing Guo wrote:
> Add config symbol and build infrastructure for the UIO PCI generic
> driver with SVA (Shared Virtual Addressing) support.
>
> This introduces:
> - A new tristate config option 'UIO_PCI_GENERIC_SVA' in Kconfig,
> dependent on PCI and IOMMU_SVA.
> - Build rule in Makefile to compile uio_pci_generic_sva.o when enabled.
>
> Signed-off-by: Yaxing Guo <guoyaxing@xxxxxxxxxx>
> ---
> Changes in v2:
> -- Add help info in Kconfig
>
> drivers/uio/Kconfig | 12 ++++++++++++
> drivers/uio/Makefile | 1 +
> 2 files changed, 13 insertions(+)
>
> diff --git a/drivers/uio/Kconfig b/drivers/uio/Kconfig
> index b060dcd7c635..ae59e3d8a99b 100644
> --- a/drivers/uio/Kconfig
> +++ b/drivers/uio/Kconfig
> @@ -164,4 +164,16 @@ config UIO_DFL
> opae-sdk/tools/libopaeuio/
>
> If you compile this as a module, it will be called uio_dfl.
> +
> +config UIO_PCI_GENERIC_SVA
> + tristate "Generic driver for PCI Express that supports sva"
> + depends on PCI && IOMMU_SVA
> + help
> + Userspace I/O driver for PCI devices that support Shared Virtual
> + Addressing (SVA), enabling direct use of user-space virtual
> + addresses in device DMA operations via IOMMU hardware.
> +
> + This driver binds to PCI devices and exposes them to userspace
> + via the UIO framework.
What is the module name?