Skip to content

Commit 624144a

Browse files
horiagherbertx
authored andcommitted
crypto: caam - enable LARGE_BURST for enhancing DMA transactions size
Increasing CAAM DMA engine transaction size either -reduces the number of required transactions or -adds the ability to transfer more data with same transaction count Signed-off-by: Horia Geant? <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent ba17113 commit 624144a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/crypto/caam/ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ 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_AWCACHE_BUFF | MCFGR_WDENABLE |
537+
MCFGR_AWCACHE_BUFF | MCFGR_WDENABLE | MCFGR_LARGE_BURST |
538538
(sizeof(dma_addr_t) == sizeof(u64) ? MCFGR_LONG_PTR : 0));
539539

540540
/*

drivers/crypto/caam/regs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ struct caam_ctrl {
455455
#define MCFGR_AXIPIPE_MASK (0xf << MCFGR_AXIPIPE_SHIFT)
456456

457457
#define MCFGR_AXIPRI 0x00000008 /* Assert AXI priority sideband */
458-
#define MCFGR_BURST_64 0x00000001 /* Max burst size */
458+
#define MCFGR_LARGE_BURST 0x00000004 /* 128/256-byte burst size */
459+
#define MCFGR_BURST_64 0x00000001 /* 64-byte burst size */
459460

460461
/* JRSTART register offsets */
461462
#define JRSTART_JR0_START 0x00000001 /* Start Job ring 0 */

0 commit comments

Comments
 (0)