aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/kernel/traps.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2012-02-14 12:09:08 +0000
committerJon Medhurst <tixy@linaro.org>2012-03-19 09:06:33 +0000
commit088e82eaee80e14a71d35d5f915395ca36530823 (patch)
tree35a1416d87cef8a73410091f12903f6572aea8f3 /arch/arm/kernel/traps.c
parente78a6de95d3cc32dcf4362c6ce20f3257b53cb58 (diff)
ARM: 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. This patch ensures that bit 22 is set in the l2x0_init() function if PL310 and not rely on the platform code to specify it. It also modifies the 'aux' variable only if the actual register is written so that the final printk displays the real hardware value. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'arch/arm/kernel/traps.c')
0 files changed, 0 insertions, 0 deletions