[PATCH v6 3/3] PCI: Add DMA alias quirk for PLX PEX NTB

2019-12-03 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. This patch aliases all possible devfn's to the NTB device so that

[PATCH v5 3/3] PCI: Add DMA alias quirk for PLX PEX NTB

2019-11-29 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. This patch aliases all possible devfn's to the NTB device so that

[PATCH v4 2/2] PCI: Add DMA alias quirk for PLX PEX NTB

2019-11-29 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. This patch aliases all possible devfn's to the NTB device so that

[PATCH v3 2/2] PCI: Add DMA alias quirk for PLX PEX NTB

2019-11-27 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. This patch aliases all possible devfn's to the NTB device so that

[PATCH v3 2/2] 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. This patch aliases all possible devfn's to the NTB device so that

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

Re: [PATCH v5 5/6] PCI: Add DMA alias quirk for mic_x200_dma

2016-04-08 Thread Alex Williamson
On Thu, 3 Mar 2016 15:53:20 +0100 Jacek Lawrynowicz wrote: > MIC x200 NTB forwards PCIe traffic using multiple alien RID. They have to > be added as aliases to the DMA device in order to allow buffer access > when IOMMU is enabled. > > Signed-off-by: Jacek Lawrynowicz > Acked-by: David Woodhou

[PATCH v5 5/6] PCI: Add DMA alias quirk for mic_x200_dma

2016-03-03 Thread Jacek Lawrynowicz
MIC x200 NTB forwards PCIe traffic using multiple alien RID. They have to be added as aliases to the DMA device in order to allow buffer access when IOMMU is enabled. Signed-off-by: Jacek Lawrynowicz Acked-by: David Woodhouse --- Updated quirk comment with requirement that aliases have to be ma

[PATCH v4 5/6] pci: Add DMA alias quirk for mic_x200_dma

2016-02-24 Thread Bjorn Helgaas via iommu
From: Jacek Lawrynowicz MIC x200 NTB forwards PCIe traffic using multiple alien RID. They have to be added as aliases to the DMA device in order to allow buffer access when IOMMU is enabled. Signed-off-by: Jacek Lawrynowicz Acked-by: David Woodhouse --- drivers/pci/quirks.c | 13 +++

Re: [PATCH 1/1] PCI: Add function 1 DMA alias quirk for Marvell 9120

2015-05-21 Thread Sakari Ailus
Hi Alex, Alex Williamson wrote: > On Thu, 2015-05-21 at 12:54 +0300, Sakari Ailus wrote: >> Ping. >> >> (Cc Alex.) > > You can add my ack, but the linux-pci list is the proper list to get > this upstream. I suggest resending it there. Thanks, Thank you for your reply and ack; I'll resend it th

Re: [PATCH 1/1] PCI: Add function 1 DMA alias quirk for Marvell 9120

2015-05-21 Thread Alex Williamson
sue as a number of others, use > > the same quirk for this one. The other quirks were added by patch > > "PCI: Add function 1 DMA alias quirk for Marvell devices" > > (commit id cc346a4714a59d08c118e8f33fd86692d3563133). > > > > Signed-off-by: Sakari Ailus

Re: [PATCH 1/1] PCI: Add function 1 DMA alias quirk for Marvell 9120

2015-05-21 Thread Sakari Ailus
Ping. (Cc Alex.) Sakari Ailus wrote: > Marvell 9120 SATA controller has the same issue as a number of others, use > the same quirk for this one. The other quirks were added by patch > "PCI: Add function 1 DMA alias quirk for Marvell devices" > (commit id cc346a4714a59d08c1

[PATCH 1/1] PCI: Add function 1 DMA alias quirk for Marvell 9120

2015-04-30 Thread Sakari Ailus
Marvell 9120 SATA controller has the same issue as a number of others, use the same quirk for this one. The other quirks were added by patch "PCI: Add function 1 DMA alias quirk for Marvell devices" (commit id cc346a4714a59d08c118e8f33fd86692d3563133). Signed-off-by: Sakari Ailus --- H

DMA alias quirk

2014-11-14 Thread Allan, Bruce W
clear Shouldn't a DMA alias quirk that sets the PCI_DEV_FLAGS_DMA_ALIAS_DEVFN flag and dma_alias_devfn to the PF devfn for all VF devfns work-around this issue, or am I misunderstanding what a DMA alias quirk is supposed to do? If a DMA alias quirk cannot resolve this, what is the