[PATCH v2 5/5] iommu/riscv: Allow RISC_VIOMMU to COMPILE_TEST
Andrew Jones
andrew.jones at oss.qualcomm.com
Wed Feb 4 08:09:54 PST 2026
On Fri, Jan 30, 2026 at 07:44:34PM -0400, Jason Gunthorpe wrote:
> On Fri, Jan 30, 2026 at 01:58:51PM -0600, Andrew Jones wrote:
> > > config RISCV_IOMMU
> > > bool "RISC-V IOMMU Support"
> > > - depends on RISCV && 64BIT
> > > - default y
> > > + default RISCV
> > > + depends on (RISCV || COMPILE_TEST) && 64BIT
> > > + depends on GENERIC_MSI_IRQ
> >
> > This new depends isn't called out in the commit message. Maybe it should
> > even be its own patch with a fixes d5f88acdd6ff ("iommu/riscv: Add support
> > for platform msi") tag, but, either way, thanks for the fix.
>
> I think if riscv has a 32 bit configuration with iommu HW available
> then you'd want a different fix to make it work.. Probably include one
> of the high/low headers to get emulated writeq
>
> This is just intended to make it work with COMPILE_TEST on eg ARM32.
I was pointing out the new 'depends on GENERIC_MSI_IRQ'. We had the
64BIT already.
Thanks,
drew
More information about the linux-riscv
mailing list