summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyung Taek Ryoo <hryoo@nvidia.com>2013-09-12 10:30:36 -0700
committerGabby Lee <galee@nvidia.com>2013-10-03 20:03:46 -0700
commitffeb48537536c5c94b5a8c10c2cca38329d1e0ac (patch)
tree0409c669bba288aacab57d9b3e21192d3457b9af
parent4323e3b03238aafbf52831ae04a0df6e15a46f3f (diff)
security: tf_driver: integrate latest TL release
Tegra4 version: TF_TEGRA4_AC02.08p5.40671 This version fixes the corruption of secure os(TF) stack which is caused by unexpected hardware cache activities at the time of core #0 wakes up from per-core power gating. Caches ON while go to sleep and L1 cache is all cleaned before the sleep, while L2 cache is selectively cleaned because it's preserved during the sleep of the cores so L2 cache has some dirty lines from the secure world. When core #0 wakes up, it turns on i-, d-caches but MMU is still off at this moment. During this time the wake up process starts synching (flushing) cache to SDRAM. Until MMU is ON, core #0 uses stacks data from SDRAM, not from the data cache. It is enough to flush the old line of stack to SDRAM in order to corrupt call-return linkage if it accidently happens during such stack usage. To fix this issue, TF cleans the cache lines related to secure os stack after they have been used last time just before returning to normal OS. Bug 1330053 Bug 1356121 Bug 1363827 Change-Id: I1b8ba453f9e4e0f21e65667b54ed5ce4bcee8ff1 Signed-off-by: Hyung Taek Ryoo <hryoo@nvidia.com> Reviewed-on: http://git-master/r/276089 Reviewed-by: Bo Yan <byan@nvidia.com> (cherry picked from commit e0677bee1c32cc5c9f8afef8aa84250da71f020f) Signed-off-by: David Yu <davyu@nvidia.com> Reviewed-on: http://git-master/r/279209 GVS: Gerrit_Virtual_Submit Reviewed-by: Gabby Lee <galee@nvidia.com>
-rw-r--r--security/tf_driver/s_version.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tf_driver/s_version.h b/security/tf_driver/s_version.h
index d75c5f35d32d..e2d41b0cdb54 100644
--- a/security/tf_driver/s_version.h
+++ b/security/tf_driver/s_version.h
@@ -63,7 +63,7 @@
#define S_VERSION_PLATFORM "C"
#define S_VERSION_MAIN "02.08"
#define S_VERSION_ENG 0
-#define S_VERSION_PATCH 0
+#define S_VERSION_PATCH 5
#else
#define S_VERSION_OS "Z" /* Unknown platform */