Skip to content
Commit aadad097 authored by Srinath Mannam's avatar Srinath Mannam Committed by Bjorn Helgaas
Browse files

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: default avatarOza Pawandeep <oza.oza@broadcom.com>
Signed-off-by: default avatarSrinath Mannam <srinath.mannam@broadcom.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarOza Pawandeep <poza@codeaurora.org>
Acked-by: default avatarRobin Murphy <robin.murphy@arm.com>
parent e80a91ad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment