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

Commit da211a0e authored by Vivek Kumar's avatar Vivek Kumar
Browse files

iommu: arm-smmu: Reinitialize context bank structure for secure domains



Reinitialize the arm_smmu_cb structure with new values allocated
during hibernation restore for secure smmu-domains in order to
correctly update the cb registers further in the restore process.

Change-Id: Ia0bd60663f8aaf47e3b905207c0e84d54b5cbdbb
Signed-off-by: default avatarVivek Kumar <vivekuma@codeaurora.org>
parent 83553255
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -5230,6 +5230,8 @@ static int __maybe_unused arm_smmu_pm_restore_early(struct device *dev)
		arm_smmu_secure_domain_lock(smmu_domain);
		arm_smmu_assign_table(smmu_domain);
		arm_smmu_secure_domain_unlock(smmu_domain);
		arm_smmu_init_context_bank(smmu_domain,
					&smmu_domain->pgtbl_cfg);
	}
	smmu->smmu_restore = true;
	ret = arm_smmu_pm_resume(dev);