crypto: caam - fix condition for the jump over key(s) command
authorTudor Ambarus <tudor-dan.ambarus@nxp.com>
Mon, 10 Jul 2017 05:40:39 +0000 (08:40 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 Jul 2017 10:16:07 +0000 (18:16 +0800)
SELF condition has no meaning for the SERIAL sharing since the jobs
are executed in the same DECO.

Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_desc.c

index 6f9c7ec0e3398472d964e517522f61edfa34a156..530c14ee32de3e1db151b1fb1fc136b75c0ed5f3 100644 (file)
@@ -599,7 +599,7 @@ void cnstr_shdsc_gcm_encap(u32 * const desc, struct alginfo *cdata,
 
        /* skip key loading if they are loaded due to sharing */
        key_jump_cmd = append_jump(desc, JUMP_JSL | JUMP_TEST_ALL |
-                                  JUMP_COND_SHRD | JUMP_COND_SELF);
+                                  JUMP_COND_SHRD);
        if (cdata->key_inline)
                append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
                                  cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);
@@ -688,8 +688,7 @@ void cnstr_shdsc_gcm_decap(u32 * const desc, struct alginfo *cdata,
 
        /* skip key loading if they are loaded due to sharing */
        key_jump_cmd = append_jump(desc, JUMP_JSL |
-                                  JUMP_TEST_ALL | JUMP_COND_SHRD |
-                                  JUMP_COND_SELF);
+                                  JUMP_TEST_ALL | JUMP_COND_SHRD);
        if (cdata->key_inline)
                append_key_as_imm(desc, cdata->key_virt, cdata->keylen,
                                  cdata->keylen, CLASS_1 | KEY_DEST_CLASS_REG);