]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: caam - make write transactions bufferable on PPC platforms
authorHoria Geant? <horia.geanta@nxp.com>
Tue, 12 Jan 2016 15:59:29 +0000 (17:59 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Jan 2016 13:47:44 +0000 (21:47 +0800)
commite7a7104e432c0db8469ca3568daf4f1d1afe3e73
tree38836deda78b08580a8a9387fd8bb66355948020
parent92e963f50fc74041b5e9e744c330dca48e04f08d
crypto: caam - make write transactions bufferable on PPC platforms

Previous change (see "Fixes" tag) to the MCFGR register
clears AWCACHE[0] ("bufferable" AXI3 attribute) (which is "1" at POR).

This makes all writes non-bufferable, causing a ~ 5% performance drop
for PPC-based platforms.

Rework previous change such that MCFGR[AWCACHE]=4'b0011
(bufferable + cacheable) for all platforms.
Note: For ARM-based platforms, AWCACHE[0] is ignored
by the interconnect IP.

Cc: <stable@vger.kernel.org> # 4.3+
Fixes: f10967495144 ("crypto: caam - fix snooping for write transactions")
Signed-off-by: Horia Geant? <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c