summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pcie-iproc.c
diff options
context:
space:
mode:
authorSrinath Mannam <srinath.mannam@broadcom.com>2019-05-03 17:05:33 +0300
committerBjorn Helgaas <bhelgaas@google.com>2019-05-07 00:03:07 +0300
commitaadad097cd46f783b75c235cffa5c21fcffbf189 (patch)
treeabb3d5b5097f9b778e7f7206f617a87c3006d73b /drivers/pci/controller/pcie-iproc.c
parente80a91ad302b3b66822756afc61f9f9c1658b9c9 (diff)
downloadlinux-aadad097cd46f783b75c235cffa5c21fcffbf189.tar.xz
iommu/dma: Reserve IOVA for PCIe inaccessible DMA address
The dma_ranges list field of PCI host bridge structure has resource entries in sorted order representing address ranges allowed for DMA transfers. Process the list and reserve IOVA addresses that are not present in its resource entries (ie DMA memory holes) to prevent allocating IOVA addresses that cannot be accessed by PCI devices. Based-on-a-patch-by: Oza Pawandeep <oza.oza@broadcom.com> Signed-off-by: Srinath Mannam <srinath.mannam@broadcom.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Oza Pawandeep <poza@codeaurora.org> Acked-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'drivers/pci/controller/pcie-iproc.c')
0 files changed, 0 insertions, 0 deletions