Skip to content

Commit e7a7104

Browse files
horiagherbertx
authored andcommitted
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: <[email protected]> # 4.3+ Fixes: f109674 ("crypto: caam - fix snooping for write transactions") Signed-off-by: Horia Geant? <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 92e963f commit e7a7104

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/caam/ctrl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ static int caam_probe(struct platform_device *pdev)
534534
* long pointers in master configuration register
535535
*/
536536
clrsetbits_32(&ctrl->mcr, MCFGR_AWCACHE_MASK, MCFGR_AWCACHE_CACH |
537-
MCFGR_WDENABLE | (sizeof(dma_addr_t) == sizeof(u64) ?
538-
MCFGR_LONG_PTR : 0));
537+
MCFGR_AWCACHE_BUFF | MCFGR_WDENABLE |
538+
(sizeof(dma_addr_t) == sizeof(u64) ? MCFGR_LONG_PTR : 0));
539539

540540
/*
541541
* Read the Compile Time paramters and SCFGR to determine

0 commit comments

Comments
 (0)