Loading drivers/iommu/arm-smmu.c +12 −0 Original line number Diff line number Diff line Loading @@ -3881,6 +3881,12 @@ static int __arm_smmu_domain_set_attr(struct iommu_domain *domain, break; } case DOMAIN_ATTR_SECURE_VMID: /* can't be changed while attached */ if (smmu_domain->smmu != NULL) { ret = -EBUSY; break; } if (smmu_domain->secure_vmid != VMID_INVAL) { ret = -ENODEV; WARN(1, "secure vmid already set!"); Loading @@ -3894,6 +3900,12 @@ static int __arm_smmu_domain_set_attr(struct iommu_domain *domain, * force DOMAIN_ATTR_ATOMIC to bet set. */ case DOMAIN_ATTR_FAST: /* can't be changed while attached */ if (smmu_domain->smmu != NULL) { ret = -EBUSY; break; } if (*((int *)data)) { smmu_domain->attributes |= 1 << DOMAIN_ATTR_FAST; smmu_domain->attributes |= 1 << DOMAIN_ATTR_ATOMIC; Loading Loading
drivers/iommu/arm-smmu.c +12 −0 Original line number Diff line number Diff line Loading @@ -3881,6 +3881,12 @@ static int __arm_smmu_domain_set_attr(struct iommu_domain *domain, break; } case DOMAIN_ATTR_SECURE_VMID: /* can't be changed while attached */ if (smmu_domain->smmu != NULL) { ret = -EBUSY; break; } if (smmu_domain->secure_vmid != VMID_INVAL) { ret = -ENODEV; WARN(1, "secure vmid already set!"); Loading @@ -3894,6 +3900,12 @@ static int __arm_smmu_domain_set_attr(struct iommu_domain *domain, * force DOMAIN_ATTR_ATOMIC to bet set. */ case DOMAIN_ATTR_FAST: /* can't be changed while attached */ if (smmu_domain->smmu != NULL) { ret = -EBUSY; break; } if (*((int *)data)) { smmu_domain->attributes |= 1 << DOMAIN_ATTR_FAST; smmu_domain->attributes |= 1 << DOMAIN_ATTR_ATOMIC; Loading