From: Russell King Date: Thu, 10 May 2012 08:48:34 +0000 (+0100) Subject: ARM: decompressor: avoid speculative prefetch from non-RAM areas X-Git-Tag: v3.5-rc1~182^2~1^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fdc08abfa26f30fcef0ce1333e9ac6f80350f30;p=pandora-kernel.git ARM: decompressor: avoid speculative prefetch from non-RAM areas We setup identity MMU mappings across the entire 4GB of space, which are permissionless because the domain is set to manager. This unfortunately allows ARMv6 and later CPUs to speculatively prefetch from the entire address space, which can cause undesirable side effects if those regions contain devices. As we setup the mappings with read/write permission, we can switch the domain to client mode, and then use the XN bit for ARMv6 and above to control speculative prefetch to non-RAM areas. Reported-by: R Sricharan Acked-by: Santosh Shilimkar Signed-off-by: Russell King --- Reading git-diff-tree failed