]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu: Add a new type field in iommu_resv_region
authorEric Auger <eric.auger@redhat.com>
Thu, 19 Jan 2017 20:57:48 +0000 (20:57 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 23 Jan 2017 11:48:16 +0000 (11:48 +0000)
commitd30ddcaa7b028049cdfee3a40248002d07b2bbf3
tree698f8d39db575c8e703c1ac41f72dd091eb59293
parente5b5234a36ca283158721d3d2e0cddfa324abdf9
iommu: Add a new type field in iommu_resv_region

We introduce a new field to differentiate the reserved region
types and specialize the apply_resv_region implementation.

Legacy direct mapped regions have IOMMU_RESV_DIRECT type.
We introduce 2 new reserved memory types:
- IOMMU_RESV_MSI will characterize MSI regions that are mapped
- IOMMU_RESV_RESERVED characterize regions that cannot by mapped.

Signed-off-by: Eric Auger <eric.auger@redhat.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/amd_iommu.c
include/linux/iommu.h