omap4: l2x0: Set share override bit
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Fri, 19 Nov 2010 17:31:05 +0000 (23:01 +0530)
committerTony Lindgren <tony@atomide.com>
Sat, 18 Dec 2010 17:32:55 +0000 (09:32 -0800)
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 <santosh.shilimkar@ti.com>
Tested-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found