]> git.baikalelectronics.ru Git - kernel.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)
commit88f639cf6461035b2840035f8cfcb7f41dfc941f
tree38836deda78b08580a8a9387fd8bb66355948020
parentd7e15052ecc9ac4f938d1d7432c1d120a2711a7e
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: 492440220ff3 ("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