[PATCH OLK-6.6 32/77] iommu/arm-smmu-v3: Move the CD generation for S1 domains into a function