Skip to content

Commit ad81808

Browse files
Tudor Ambarusherbertx
authored andcommitted
crypto: caam - fix condition for the jump over key(s) command
SELF condition has no meaning for the SERIAL sharing since the jobs are executed in the same DECO. Signed-off-by: Tudor Ambarus <[email protected]> Signed-off-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f366af4 commit ad81808

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/crypto/caam/caamalg_desc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ void cnstr_shdsc_gcm_encap(u32 * const desc, struct alginfo *cdata,
599599

600600
/* skip key loading if they are loaded due to sharing */
601601
key_jump_cmd = append_jump(desc, JUMP_JSL | JUMP_TEST_ALL |
602-
JUMP_COND_SHRD | JUMP_COND_SELF);
602+
JUMP_COND_SHRD);
603603
if (cdata->key_inline)
604604
append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
605605
cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
@@ -688,8 +688,7 @@ void cnstr_shdsc_gcm_decap(u32 * const desc, struct alginfo *cdata,
688688

689689
/* skip key loading if they are loaded due to sharing */
690690
key_jump_cmd = append_jump(desc, JUMP_JSL |
691-
JUMP_TEST_ALL | JUMP_COND_SHRD |
692-
JUMP_COND_SELF);
691+
JUMP_TEST_ALL | JUMP_COND_SHRD);
693692
if (cdata->key_inline)
694693
append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
695694
cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);

0 commit comments

Comments
 (0)