]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: S5PV310: Set bit 22 in the PL310 (cache controller) AuxCtlr register
authorChanghwan Youn <chaos.youn@samsung.com>
Fri, 26 Nov 2010 04:21:53 +0000 (13:21 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:35 +0000 (15:14 -0800)
commitafbbe5ac9f851c1449ed9edbde4c068a99492f32
treed595a641b061d95396e7f074e06e4167c691ea0a
parent191c11d6061187dc2955c6f53bf04d4c6b1e482c
ARM: S5PV310: Set bit 22 in the PL310 (cache controller) AuxCtlr register

commit a50eb1c7680973f5441ca20ac4da0af2055d0d87 upstream.

This patch is applied according to the commit 1a8e41cd672f894bbd74874eac601e6cedf838fb
(ARM: 6395/1: VExpress: Set bit 22 in the PL310 (cache controller) AuxCtlr register).

Actually, S5PV310 has same cache controller(PL310).

Following is from Catalin Marinas' commit.

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: Changhwan Youn <chaos.youn@samsung.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/mach-s5pv310/cpu.c