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

Commit 7b67798f authored by Vivek Kumar's avatar Vivek Kumar Committed by Gerrit - the friendly Code Review server
Browse files

iommu: arm-smmu: Restore iommu context in case of hibernation



During hibernation iommu-context registers are not retained,
so add a check and restore iommu registers if hibernation is
enabled.

Change-Id: Idc8f45b25aa6ff92602385c57ee1f2239a353418
Signed-off-by: default avatarVivek Kumar <vivekuma@codeaurora.org>
parent 4f3c8d4f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4200,7 +4200,8 @@ static void arm_smmu_device_reset(struct arm_smmu_device *smmu)
	 * Reset stream mapping groups: Initial values mark all SMRn as
	 * invalid and all S2CRn as bypass unless overridden.
	 */
	if (!(smmu->options & ARM_SMMU_OPT_SKIP_INIT)) {
	if (!(smmu->options & ARM_SMMU_OPT_SKIP_INIT) ||
			IS_ENABLED(CONFIG_HIBERNATION)) {
		for (i = 0; i < smmu->num_mapping_groups; ++i)
			arm_smmu_write_sme(smmu, i);