aboutsummaryrefslogtreecommitdiff
path: root/.get_maintainer.ignore
diff options
context:
space:
mode:
authorHoria Geantă <horia.geanta@nxp.com>2019-06-04 12:57:20 +0300
committerDaniel Thompson <daniel@redfelineninja.org.uk>2019-09-17 16:03:04 +0100
commit492ac1b512d62fe7efc315711bfdeadc5b7a0bc4 (patch)
tree1d95c6138d6f3cc23c7b3a2669206b3fe00dabbb /.get_maintainer.ignore
parent92dd2ca4e41bf20bd6b68c535c7cf9f037400390 (diff)
crypto: caam - fix concurrency issue in givencrypt descriptor
IV transfer from ofifo to class2 (set up at [29][30]) is not guaranteed to be scheduled before the data transfer from ofifo to external memory (set up at [38]: [29] 10FA0004 ld: ind-nfifo (len=4) imm [30] 81F00010 <nfifo_entry: ofifo->class2 type=msg len=16> [31] 14820004 ld: ccb2-datasz len=4 offs=0 imm [32] 00000010 data:0x00000010 [33] 8210010D operation: cls1-op aes cbc init-final enc [34] A8080B04 math: (seqin + math0)->vseqout len=4 [35] 28000010 seqfifold: skip len=16 [36] A8080A04 math: (seqin + math0)->vseqin len=4 [37] 2F1E0000 seqfifold: both msg1->2-last2-last1 len=vseqinsz [38] 69300000 seqfifostr: msg len=vseqoutsz [39] 5C20000C seqstr: ccb2 ctx len=12 offs=0 If ofifo -> external memory transfer happens first, DECO will hang (issuing a Watchdog Timeout error, if WDOG is enabled) waiting for data availability in ofifo for the ofifo -> c2 ififo transfer. Make sure IV transfer happens first by waiting for all CAAM internal transfers to end before running [38]. New descriptor with jump command inserted at [38]: [..] [37] 2F1E0000 seqfifold: both msg1->2-last2-last1 len=vseqinsz [38] A1000401 jump: jsl1 all-match[!nfifopend] offset=[01] local->[39] [39] 69300000 seqfifostr: msg len=vseqoutsz [40] 5C20000C seqstr: ccb2 ctx len=12 offs=0 Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions