Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c438f0f1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu/arm-smmu: add support for DOMAIN_ATTR_CONTEXT_BANK"

parents 65d91d2a 408817c8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1934,6 +1934,14 @@ static int arm_smmu_domain_get_attr(struct iommu_domain *domain,
			smmu_domain->pgtbl_cfg.arm_lpae_s1_cfg.ttbr[0];
		ret = 0;
		break;
	case DOMAIN_ATTR_CONTEXT_BANK:
		/* context bank index isn't valid until we are attached */
		if (smmu_domain->smmu == NULL)
			return -ENODEV;

		*((unsigned int *) data) = smmu_domain->cfg.cbndx;
		ret = 0;
		break;
	default:
		ret = -ENODEV;
		break;