crypto: sha256-mb - fix ctx pointer and digest copy
authorXiaodong Liu <xiaodong.liu@intel.com>
Fri, 12 Aug 2016 10:24:42 +0000 (06:24 -0400)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Aug 2016 09:09:42 +0000 (17:09 +0800)
commit172b1d6b5a9337eb8c1ec294b80e448e03a9ac17
tree06019222a0f6f4da6ffe35c31aec3953281938c7
parenta0118c8b2be9297aed8e915c60b4013326b256d4
crypto: sha256-mb - fix ctx pointer and digest copy

1. fix ctx pointer
Use req_ctx which is the ctx for the next job that have
been completed in the lanes instead of the first
completed job rctx, whose completion could have been
called and released.
2. fix digest copy
Use XMM register to copy another 16 bytes sha256 digest
instead of a regular register.

Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/sha256-mb/sha256_mb.c
arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S