summaryrefslogtreecommitdiffstats
path: root/net/nonet.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2012-06-11 05:26:55 +0000
committerBjorn Helgaas <bhelgaas@google.com>2012-06-11 18:37:43 -0600
commit12ea6cad1c7d046e21decc18b0e2170c6794dc51 (patch)
treed72a1034cd7436c4b705e86f3cfc83dad03b3574 /net/nonet.c
parentcfaf025112d3856637ff34a767ef785ef5cf2ca9 (diff)
downloadlinux-stable-12ea6cad1c7d046e21decc18b0e2170c6794dc51.tar.gz
linux-stable-12ea6cad1c7d046e21decc18b0e2170c6794dc51.tar.bz2
linux-stable-12ea6cad1c7d046e21decc18b0e2170c6794dc51.zip
PCI: add PCI DMA source ID quirk
DMA transactions are tagged with the source ID of the device making the request. Occasionally hardware screws this up and uses the source ID of a different device (often the wrong function number of a multifunction device). A specific Ricoh multifunction device is a prime example of this problem and included in this patch. Given a pci_dev, this function returns the pci_dev to use as the source ID for DMA. When hardware works correctly, this returns the input device. For the components of the Ricoh multifunction device, it returns the pci_dev for function 0. This will be used by IOMMU drivers for determining the boundaries of IOMMU groups as multiple devices using the same source ID must be contained within the same group. This can also be used by existing streaming DMA paths for the same purpose. [bhelgaas: fold in pci_dev_get() for !CONFIG_PCI] Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'net/nonet.c')
0 files changed, 0 insertions, 0 deletions