[PATCH v1 08/14] iommu/arm-smmu-v3: Prepare for nested domain support
Nicolin Chen
nicolinc at nvidia.com
Sat Mar 11 04:40:39 PST 2023
On Fri, Mar 10, 2023 at 08:39:20PM +0000, Robin Murphy wrote:
> > @@ -1277,6 +1295,7 @@ static void arm_smmu_write_strtab_ent(struct arm_smmu_master *master, u32 sid,
> > switch (smmu_domain->stage) {
> > case ARM_SMMU_DOMAIN_S1:
> > s1_cfg = &smmu_domain->s1_cfg;
> > + s2_cfg = to_s2_cfg(smmu_domain);
>
> TBH I'd say you only need a 2-line change here. All the other cases
> below are when the stage is guaranteed to be ARM_SMMU_DOMAIN_S2 (once
> ARM_SMMU_DOMAIN_NESTED is gone), so pretending it might be otherwise
> seems unnecessarily confusing.
Oh right...I will drop those.
Thanks!
Nic
More information about the linux-arm-kernel
mailing list