]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ARM: 7161/1: errata: no automatic store buffer drain
authorWill Deacon <will.deacon@arm.com>
Mon, 14 Nov 2011 16:24:58 +0000 (17:24 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 16 Jan 2013 21:44:57 +0000 (16:44 -0500)
commita21d3396b8150b3a776534520fc8ec29809ab4b8
tree3a62d41e36dabfd9f97a5d0e48e08783a50c7a11
parentcaa381d13ab47e05230756084ca2b38505727a2e
ARM: 7161/1: errata: no automatic store buffer drain

commit 11ed0ba1754841316d4095478944300acf19acc3 upstream.

This patch implements a workaround for PL310 erratum 769419. On
revisions of the PL310 prior to r3p2, the Store Buffer does not
automatically drain. This can cause normal, non-cacheable writes to be
retained when the memory system is idle, leading to suboptimal I/O
performance for drivers using coherent DMA.

This patch adds an optional wmb() call to the cpu_idle loop. On systems
with an outer cache, this causes an explicit flush of the store buffer.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/arm/Kconfig
arch/arm/kernel/process.c