]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
drivers/crypto/fsl: fix snooping for write transactions
authorhoria.geanta@freescale.com <horia.geanta@freescale.com>
Wed, 8 Jul 2015 14:24:57 +0000 (17:24 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:00:48 +0000 (08:00 +0200)
commit06cc516215fddb4a3e4c87f87754bbc586a491f5
tree65c0af862ebe2047d817b1596c981dfe19564c2b
parent06c813fac281052f54738f38a9af55d01258db83
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: b9eebfade974c ("fsl_sec: Add hardware accelerated SHA256 and SHA1")
Signed-off-by: Horia Geantă <horia.geanta@freescale.com>
Reviewed-by: Aneesh Bansal <aneesh.bansal@freescale.com>
Reviewed-by: Mingkai Hu <Mingkai.Hu@freescale.com>
Acked-by: Ruchika Gupta<ruchika.gupta@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
drivers/crypto/fsl/jr.c
drivers/crypto/fsl/jr.h