On Tue, 29 Apr 2025, Mykyta Poturai wrote: > From: Oleksandr Tyshchenko <oleksandr_tyshche...@epam.com> > > The main purpose of this patch is to add a way to register PCI device > (which is behind the IOMMU) using the generic PCI-IOMMU DT bindings [1] > before assigning that device to a domain. > > This behaves similarly to the existing iommu_add_dt_device API, except it > handles PCI devices, and it is to be invoked from the add_device hook in the > SMMU driver. > > The function dt_map_id to translate an ID through a downstream mapping > (which is also suitable for mapping Requester ID) was borrowed from Linux > (v5.10-rc6) and updated according to the Xen code base. > > [1] > https://www.kernel.org/doc/Documentation/devicetree/bindings/pci/pci-iommu.txt > > Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshche...@epam.com> > Signed-off-by: Stewart Hildebrand <stewart.hildebr...@amd.com> > Signed-off-by: Mykyta Poturai <mykyta_potu...@epam.com>
Reviewed-by: Stefano Stabellini <sstabell...@kernel.org>