Tegra: smmu: make the context save sequence robust
This patch sanity checks the SMMU context created by the platform
code. The first entry contains the size of the array; which the
driver now verifies before moving on with the save.

This patch also fixes an error in the calculation of the size of
the context that gets copied to TZDRAM.

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
1 parent 85aa186 commit 63ac1a2a791a1eccebe508ec8d6b88888f075a52
@Varun Wadekar Varun Wadekar authored on 20 Apr 2017
Showing 3 changed files
View
plat/nvidia/tegra/common/drivers/smmu/smmu.c
View
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c
View
plat/nvidia/tegra/soc/t186/plat_trampoline.S