From: Santosh Shilimkar Date: Fri, 19 Nov 2010 17:31:05 +0000 (+0530) Subject: omap4: l2x0: Set share override bit X-Git-Tag: v2.6.38-rc1~469^2~19^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0f20ff9d7e347c284ea7718597c978a2969ad7b;p=pandora-kernel.git omap4: l2x0: Set share override bit Clearing bit 22 in the PL310 Auxiliary Control register (shared attribute override enable) has the side effect of transforming Normal Shared Non-cacheable reads into Cacheable no-allocate reads. Coherent DMA buffers in Linux always have a Cacheable alias via the kernel linear mapping and the processor can speculatively load cache lines into the PL310 controller. With bit 22 cleared, Non-cacheable reads would unexpectedly hit such cache lines leading to buffer corruption Signed-off-by: Santosh Shilimkar Tested-by: Nishanth Menon Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed