Re: [PATCH] iommu: Add iommu.passthrough_devs early command line parameter
From: Peter Griffin
Date: Tue Nov 17 2026 - 07:20:08 EST
Hi Jason,
Thanks for the review feedback.
On Mon, 16 Nov 2026 at 17:42, Jason Gunthorpe <jgg@xxxxxxxx> wrote:
>
> 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.
Could you point me to the series you are referring to? I want to be
sure I'm looking at the right patches :)
>
> > 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.
Will fix.
Thanks,
Peter