Tegra186: system resume from TZSRAM memoryTZSRAM loses power during System suspend, so the entire contentsare copied to TZDRAM before Sysem Suspend entry. The warmboot codeverifies and restores t
Tegra186: system resume from TZSRAM memoryTZSRAM loses power during System suspend, so the entire contentsare copied to TZDRAM before Sysem Suspend entry. The warmboot codeverifies and restores the contents to TZSRAM during System Resume.This patch removes the code that sets up CPU vector to point toTZSRAM during System Resume as a result. The trampoline code canalso be completely removed as a result.Change-Id: I2830eb1db16efef3dfd96c4e3afc41a307588ca1Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
Tegra186: add SE support to generate SHA256 of TZRAMThe BL3-1 firmware code is stored in TZSRAM on Tegra186 platforms. Thismemory loses power when we enter System Suspend and so its contents ares
Tegra186: add SE support to generate SHA256 of TZRAMThe BL3-1 firmware code is stored in TZSRAM on Tegra186 platforms. Thismemory loses power when we enter System Suspend and so its contents arestored to TZDRAM, before entry. This opens up an attack vector where theTZDRAM contents might be tampered with when we are in the System Suspendmode. To mitigate this attack the SE engine calculates the hash of entireTZSRAM and stores it in PMC scratch, before we copy data to TZDRAM. TheWB0 code will validate the TZDRAM and match the hash with the one in PMCscratch.This patch adds driver for the SE engine, with APIs to calculate the hashand store SE SHA256 hash-result to PMC scratch registers.Change-Id: Ib487d5629225d3d99bd35d44f0402d6d3cf27ddfSigned-off-by: Jeetesh Burman <jburman@nvidia.com>