]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu: iommu_get_group_resv_regions
authorEric Auger <eric.auger@redhat.com>
Thu, 19 Jan 2017 20:57:51 +0000 (20:57 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 23 Jan 2017 11:48:16 +0000 (11:48 +0000)
commit6c65fb318e8bbf21e939e651028b955324f1d873
treec8d37cf2ad29e2096ece1d01564b8eddc1ee8ec6
parent544a25d904cab2ae68bd71b334603ec3a49b60dd
iommu: iommu_get_group_resv_regions

Introduce iommu_get_group_resv_regions whose role consists in
enumerating all devices from the group and collecting their
reserved regions. The list is sorted and overlaps between
regions of the same type are handled by merging the regions.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com>
Tested-by: Tomasz Nowicki <tomasz.nowicki@caviumnetworks.com>
Tested-by: Bharat Bhushan <bharat.bhushan@nxp.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/iommu.c
include/linux/iommu.h