Re: [PATCH 3/3] iommu/amd: Support multiple PCI DMA aliases in IRQ Remapping

2019-10-15 Thread Logan Gunthorpe
On 2019-10-15 7:37 a.m., Joerg Roedel wrote: > On Tue, Oct 08, 2019 at 04:18:37PM -0600, Logan Gunthorpe wrote: >> -static struct irq_remap_table *alloc_irq_table(u16 devid) >> +static int set_remap_table_entry_alias(struct pci_dev *pdev, u16 alias, >> + void

Re: [PATCH 3/3] iommu/amd: Support multiple PCI DMA aliases in IRQ Remapping

2019-10-15 Thread Joerg Roedel
On Tue, Oct 08, 2019 at 04:18:37PM -0600, Logan Gunthorpe wrote: > -static struct irq_remap_table *alloc_irq_table(u16 devid) > +static int set_remap_table_entry_alias(struct pci_dev *pdev, u16 alias, > +void *data) > +{ > + struct irq_remap_table *table =

[PATCH 3/3] iommu/amd: Support multiple PCI DMA aliases in IRQ Remapping

2019-10-08 Thread Logan Gunthorpe
Non-Transparent Bridge (NTB) devices (among others) may have many DMA aliases seeing the hardware will send requests with different device ids depending on their origin across the bridged hardware. See commit ad281ecf1c7d ("PCI: Add DMA alias quirk for Microsemi Switchtec NTB") for more