On Wed, Mar 22, 2023 at 11:04 AM Eric Auger <eric.auger@xxxxxxxxxx> wrote: > > Hi Jean, > > On 3/20/23 19:05, Jean-Philippe Brucker wrote: > > When setting up DMA for a PCI device, we need to initialize its > > iommu_fwspec with all possible alias RIDs (such as PCI bridges). To do > > this we use pci_for_each_dma_alias() which calls > > viot_pci_dev_iommu_init(). This function incorrectly initializes the > > fwspec of the bridge instead of the device being configured. Fix it by > > passing the original device as context to pci_for_each_dma_alias(). > > > > Fixes: 3cf485540e7b ("ACPI: Add driver for the VIOT table") > > Reported-by: Eric Auger <eric.auger@xxxxxxxxxx> > > Signed-off-by: Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx> > Reviewed-by: Eric Auger <eric.auger@xxxxxxxxxx> > > Tested-by: Eric Auger <eric.auger@xxxxxxxxxx> Applied as 6.4 material, thanks!