Skip to content
Snippets Groups Projects
Commit 3ef2412d authored by horia.geanta@freescale.com's avatar horia.geanta@freescale.com Committed by York Sun
Browse files

drivers/crypto/fsl: fix snooping for write transactions


HW coherency won't work properly for CAAM write transactions
if AWCACHE is left to default (POR) value - 4'b0001.
It has to be programmed to 4'b0010.

For platforms that have HW coherency support:
-PPC-based: the update has no effect; CAAM coherency already works
due to the IOMMU (PAMU) driver setting the correct memory coherency
attributes
-ARM-based: the update fixes cache coherency issues,
since IOMMU (SMMU) driver is not programmed to behave similar to PAMU

Fixes: b9eebfad ("fsl_sec: Add hardware accelerated SHA256 and SHA1")
Signed-off-by: default avatarHoria Geantă <horia.geanta@freescale.com>
Reviewed-by: default avatarAneesh Bansal <aneesh.bansal@freescale.com>
Reviewed-by: default avatarMingkai Hu <Mingkai.Hu@freescale.com>
Acked-by: default avatarRuchika <Gupta&lt;ruchika.gupta@freescale.com>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent e5d08b4d
No related branches found
No related tags found
Loading
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