iommu/arm-smmu: Remove DOMAIN_ATTR_BITMAP_IOVA_ALLOCATOR

DOMAIN_ATTR_BITMAP_IOVA_ALLOCATOR is no longer supported,
so remove it.

Change-Id: I91473cb1a03d78cf2cbb82a7f13a4a531f3c7d5b
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
This commit is contained in:
Isaac J. Manjarres 2019-11-18 13:04:45 -08:00 • committed by Gerrit - the friendly Code Review server
commit f204c082cf
2 changed files with 3 additions and 10 deletions

View file

@ -3419,11 +3419,6 @@ static int arm_smmu_domain_get_attr(struct iommu_domain *domain,
& (1ULL << DOMAIN_ATTR_EARLY_MAP));
ret = 0;
break;
case DOMAIN_ATTR_BITMAP_IOVA_ALLOCATOR:
*((int *)data) = !!(smmu_domain->attributes
& (1ULL << DOMAIN_ATTR_BITMAP_IOVA_ALLOCATOR));
ret = 0;
break;
case DOMAIN_ATTR_PAGE_TABLE_IS_COHERENT:
if (!smmu_domain->smmu) {
ret = -ENODEV;
@ -3651,7 +3646,6 @@ static int __arm_smmu_domain_set_attr2(struct iommu_domain *domain,
}
break;
}
case DOMAIN_ATTR_BITMAP_IOVA_ALLOCATOR:
case DOMAIN_ATTR_CB_STALL_DISABLE:
case DOMAIN_ATTR_NO_CFRE:
if (*((int *)data))

View file

@ -176,10 +176,9 @@ enum iommu_attr {
#define DOMAIN_ATTR_PAGE_TABLE_IS_COHERENT (EXTENDED_ATTR_BASE + 14)
#define DOMAIN_ATTR_PAGE_TABLE_FORCE_COHERENT (EXTENDED_ATTR_BASE + 15)
#define DOMAIN_ATTR_CB_STALL_DISABLE (EXTENDED_ATTR_BASE + 16)
#define DOMAIN_ATTR_BITMAP_IOVA_ALLOCATOR (EXTENDED_ATTR_BASE + 17)
#define DOMAIN_ATTR_USE_LLC_NWA (EXTENDED_ATTR_BASE + 18)
#define DOMAIN_ATTR_NO_CFRE (EXTENDED_ATTR_BASE + 19)
#define DOMAIN_ATTR_DEBUG (EXTENDED_ATTR_BASE + 20)
#define DOMAIN_ATTR_USE_LLC_NWA (EXTENDED_ATTR_BASE + 17)
#define DOMAIN_ATTR_NO_CFRE (EXTENDED_ATTR_BASE + 18)
#define DOMAIN_ATTR_DEBUG (EXTENDED_ATTR_BASE + 19)
/* These are the possible reserved region types */
enum iommu_resv_type {