RE: [PATCH 1/7] VFIO_IOMMU_TYPE1 workaround to build for platform devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Antonios Motakis [mailto:a.motakis@xxxxxxxxxxxxxxxxxxxxxx]
> Sent: Wednesday, October 02, 2013 6:14 AM
> To: Yoder Stuart-B08248
> Cc: Alex Williamson; kvmarm@xxxxxxxxxxxxxxxxxxxxx; iommu@lists.linux-
> foundation.org; linux-samsung-soc@xxxxxxxxxxxxxxx; kvm@xxxxxxxxxxxxxxx;
> agraf@xxxxxxx; tech@xxxxxxxxxxxxxxxxxxxxxx; kim.phillips@xxxxxxxxxx
> Subject: Re: [PATCH 1/7] VFIO_IOMMU_TYPE1 workaround to build for
> platform devices
> 
> On Tue, Oct 1, 2013 at 9:21 PM, Yoder Stuart-B08248
> <B08248@xxxxxxxxxxxxx> wrote:
> >> >  static int __init vfio_iommu_type1_init(void)
> >> >  {
> >> > -   if (!iommu_present(&pci_bus_type))
> >> > +#ifdef CONFIG_PCI
> >> > +   if (iommu_present(&pci_bus_type)) {
> >> > +           iommu_bus_type = &pci_bus_type;
> >> > +           /* For PCI targets, IOMMU_CAP_INTR_REMAP is required */
> >> > +           require_cap_intr_remap = true;
> >> > +   }
> >> > +#endif
> >> > +   if (!iommu_bus_type && iommu_present(&platform_bus_type))
> >> > +           iommu_bus_type = &platform_bus_type;
> >> > +
> >> > +   if(!iommu_bus_type)
> >> >             return -ENODEV;
> >> >
> >> >     return vfio_register_iommu_driver(&vfio_iommu_driver_ops_type1);
> >>
> >> Is it possible to have a system with both PCI and platform devices?
> How
> >> would you support that?  Thanks,
> >
> > It most certainly is a requirement to support both.  This is how
> > all of our (FSL) SoCs will expect to work.
> >
> 
> Both with an IOMMU present?

Yes.

Stuart

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux