On 11/10/2017 4:34 PM, Horia Geantă wrote: > Offload split key generation in CAAM engine, using DKP. > DKP is supported starting with Era 6. > > Note that the way assoclen is transmitted from the job descriptor > to the shared descriptor changes - DPOVRD register is used instead > of MATH3 (where available), since DKP protocol thrashes the MATH > registers. > > Signed-off-by: Horia Geantă <horia.geanta@xxxxxxx> When CAAM Job Ring platform devices are configured to go through ARM SMMU, errors are reported: arm-smmu 5000000.iommu: Unhandled context fault: fsr=0x402, iova=0xffffffef9000, fsynr=0x3, cb=1 This is due to incorrect DMA mapping direction for the buffers where keys are stored, they have to change from DMA_TO_DEVICE to DMA_BIDIRECTIONAL - with DKP keys are initially written by CPU and then overwritten by the crypto engine. Will follow up with v2 shortly. Thanks, Horia