Home
last modified time | relevance | path

Searched hist:"7 f4736bd657afca7c224efb27cab496acd9ee021" (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/drivers/crypto/fsl/
H A Djr.h7f4736bd657afca7c224efb27cab496acd9ee021 Fri Jan 22 10:42:55 UTC 2016 Ruchika Gupta <ruchika.gupta@freescale.com> 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: Saksham Jain <saksham@nxp.com>
Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
H A Djr.c7f4736bd657afca7c224efb27cab496acd9ee021 Fri Jan 22 10:42:55 UTC 2016 Ruchika Gupta <ruchika.gupta@freescale.com> 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: Saksham Jain <saksham@nxp.com>
Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>