Tegra186: clean CPU wake times from L2 cache
authorMustafa Yigit Bilgen <mbilgen@nvidia.com>
Sat, 3 Sep 2016 02:30:22 +0000 (19:30 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 5 Apr 2017 21:09:51 +0000 (14:09 -0700)
commit322b00fcfb6e8b1b5aa533c9503955c0bfdf826b
tree03985137ba469cdc82215b015757195f0588c105
parentac26b96b40c4cda751f1923b4906d7027e529327
Tegra186: clean CPU wake times from L2 cache

When entering C7, ATF disables caches and flushes the L1 cache. However,
wake_time[cpu] can still remain in the L2 cache, causing later reads to it
to fetch from DRAM. This will read stale values.

Fix this by aligning wake_time[cpu] to cache lines, and explicitly cleaning it
before disabling caches.

Change-Id: Id73d095b479677595a6b3dd0abb240a1fef5f311
Signed-off-by: Mustafa Yigit Bilgen <mbilgen@nvidia.com>
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c