Tegra: Perform cache maintenance on video carveout memory
authorVikram Kanigiri <vikram.kanigiri@arm.com>
Thu, 10 Sep 2015 13:12:36 +0000 (14:12 +0100)
committerAchin Gupta <achin.gupta@arm.com>
Mon, 14 Sep 2015 21:09:40 +0000 (22:09 +0100)
commite3616819a9802ae84e9ed23092e26968bc1f25ae
treee9b9258472bc3d0f87862d062b0ed468eb3c1f09
parent54dc71e7ec9f2a069907e8c0c24b5c8f8cc5f66a
Tegra: Perform cache maintenance on video carveout memory

Currently, the non-overlapping video memory carveout region is cleared after
disabling the MMU at EL3. If at any exception level the carveout region is being
marked as cacheable, this zeroing of memory will not have an affect on the
cached lines. Hence, we first invalidate the dirty lines and update the memory
and invalidate again so that both caches and memory is zeroed out.

Change-Id: If3b2d139ab7227f6799c0911d59e079849dc86aa
plat/nvidia/tegra/common/drivers/memctrl/memctrl.c