summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorSrinath Mannam <srinath.mannam@broadcom.com>2019-05-03 19:35:33 +0530
committerBjorn Helgaas <bhelgaas@google.com>2019-05-06 16:03:07 -0500
commitaadad097cd46f783b75c235cffa5c21fcffbf189 (patch)
treeabb3d5b5097f9b778e7f7206f617a87c3006d73b /drivers/pci
parente80a91ad302b3b66822756afc61f9f9c1658b9c9 (diff)
downloadlwn-aadad097cd46f783b75c235cffa5c21fcffbf189.tar.gz
lwn-aadad097cd46f783b75c235cffa5c21fcffbf189.zip
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')
0 files changed, 0 insertions, 0 deletions