Re: [PATCH] iommu: Add iommu.passthrough_devs early command line parameter
From: Jason Gunthorpe
Date: Mon Nov 16 2026 - 12:42:45 EST
On Mon, Nov 16, 2026 at 05:37:45PM +0000, Peter Griffin wrote:
> Instead, I propose handling this in the generic IOMMU core via a
> kernel command-line parameter. This makes it available uniformly
> across both Device Tree and ACPI systems and across all IOMMU drivers.
Something like this could be useful, but also Leon's series will allow
userspace to do it from the initrd too. IDK if that is more/less
interesting to Android.
> static unsigned int iommu_def_domain_type __read_mostly;
> static bool iommu_dma_strict __read_mostly = IS_ENABLED(CONFIG_IOMMU_DEFAULT_DMA_STRICT);
> static u32 iommu_cmd_line __read_mostly;
> +static char iommu_passthrough_devs[IOMMU_PASSTHROUGH_DEVS_MAX_LEN] __read_mostly;
We can allocate memory at this point.. No need for a fixed array.
Jason