Re: [PATCH] crypto: fix ctx pointer and digest copy in sha256-mb

2016-08-16 Thread Herbert Xu
On Fri, Aug 12, 2016 at 06:24:42AM -0400, Xiaodong Liu wrote: > 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 XM

Re: [PATCH] crypto: fix ctx pointer and digest copy in sha256-mb

2016-08-12 Thread Tim Chen
On Fri, 2016-08-12 at 06:24 -0400, Xiaodong Liu wrote: > 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 regis

[PATCH] crypto: fix ctx pointer and digest copy in sha256-mb

2016-08-12 Thread Xiaodong Liu
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 regis