]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6395/1: VExpress: Set bit 22 in the PL310 (cache controller) AuxCtlr register
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 16 Sep 2010 16:57:17 +0000 (17:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 17 Sep 2010 09:16:52 +0000 (10:16 +0100)
commit39ed069644d34cd422440d01eb02a70cddcb075d
tree6e38d880b05897fb97d698a670732b1d474e7e5d
parent51248e2b414b7a2818bbce9e95422d4402957f2f
ARM: 6395/1: VExpress: Set bit 22 in the PL310 (cache controller) AuxCtlr register

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.

Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: <stable@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-vexpress/ct-ca9x4.c