Re: [PATCH v2] PCI: Add DMA alias quirk for PLX PEX NTB

2019-11-26 Thread Christoph Hellwig
> +int _pci_add_dma_alias_range(struct pci_dev *dev, u8 devfn_from, int len) This should be mrked static. Also single underscore prefixes are rather unusual in Linux. Either use two or use a more descriptive name. > @@ -5875,18 +5887,21 @@ int pci_set_vga_state(struct pci_dev *dev, bool > dec

[PATCH v2] PCI: Add DMA alias quirk for PLX PEX NTB

2019-11-26 Thread James Sewart via iommu
The PLX PEX NTB forwards DMA transactions using Requester ID's that don't exist as PCI devices. The devfn for a transaction is used as an index into a lookup table storing the origin of a transaction on the other side of the bridge. Add helper pci_add_dma_alias_range that can alias a range of devf

Re: [PATCH v2] PCI: Add DMA alias quirk for PLX PEX NTB

2019-11-26 Thread Logan Gunthorpe
On 2019-11-26 10:03 a.m., James Sewart wrote: > The PLX PEX NTB forwards DMA transactions using Requester ID's that > don't exist as PCI devices. The devfn for a transaction is used as an > index into a lookup table storing the origin of a transaction on the > other side of the bridge. > > Add