From: Mark Rutland Date: Tue, 24 Mar 2015 15:10:21 +0000 (+0000) Subject: arm64: head.S: ensure idmap_t0sz is visible X-Git-Tag: omap-for-v4.2/o2_dc~115^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c20856c260236b96f54c452d38dbe1348ed34d2;p=pandora-kernel.git arm64: head.S: ensure idmap_t0sz is visible We write idmap_t0sz with SCTLR_EL1.{C,M} clear, but we only have the guarnatee that the kernel Image is clean, not invalid in the caches, and therefore we might read a stale value once the MMU is enabled. This patch ensures we invalidate the corresponding cacheline after the write as we do for all other data written before we set SCTLR_EL1.{C.M}, guaranteeing that the value will be visible later. We rely on the DSBs in __create_page_tables to complete the maintenance. Signed-off-by: Mark Rutland CC: Catalin Marinas Cc: Will Deacon Signed-off-by: Will Deacon --- Reading git-diff-tree failed