Commit 1a85939a authored by Punnaiah Choudary Kalluri's avatar Punnaiah Choudary Kalluri Committed by Michal Simek
Browse files

ARM: zynq: Set bit 22 in the PL310 cache controller auxctlr register



This patch is based on the below commit
"ARM: 6395/1: VExpress: Set bit 22 in the PL310 (cache controller) AuxCtlr
register"
(sha1:1a8e41cd)

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: default avatarPunnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent f65dfeb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment