]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 21 Feb 2017 17:00:25 +0000 (10:00 -0700)
commitc7141f872435a7ee7ba5c870a4c36ef0c1982e57
treeb03e6b63f3dfc482e51279de0f7443bf623dff17
parent18d2f738742ad9c799fdd53c9a7196e194c1e077
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>
(cherry picked from commit 6c65fb318e8bbf21e939e651028b955324f1d873)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/iommu/iommu.c
include/linux/iommu.h