
24 Feb
2016
24 Feb
'16
5:45 p.m.
On 01/22/2016 02:45 AM, Ruchika Gupta wrote:
From: Ruchika Gupta ruchika.gupta@freescale.com
The output ring needs to be invalidated before enqueuing the job to SEC. While allocation of space to output ring, it should be taken care that the size is cacheline size aligned inorder to prevent invalidating valid data.
The patch also correct the method of aligning end of structs while flushing caches
Since start = align(start_of_struct), it is incorrect to assign end = align(start + struct_size). It should instead be, end = align(start_of_struct + struct_size).
Signed-off-by: Saksham Jain saksham@nxp.com Signed-off-by: Ruchika Gupta ruchika.gupta@nxp.com
drivers/crypto/fsl/jr.c | 28 ++++++++++++++++------------ drivers/crypto/fsl/jr.h | 2 ++ 2 files changed, 18 insertions(+), 12 deletions(-)
Applied to fsl-qoriq master. Awaiting upstream.
York