Skip to content
Snippets Groups Projects
Commit 7f4736bd authored by Ruchika Gupta's avatar Ruchika Gupta Committed by York Sun
Browse files

drivers/crypto/fsl : Allocate output ring with size aligned to CACHELNE SIZE


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: default avatarSaksham Jain <saksham@nxp.com>
Signed-off-by: default avatarRuchika Gupta <ruchika.gupta@nxp.com>
Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
parent 9e71bb9c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment