• Horia Geantă's avatar
    crypto: caam/qi - DMA map keys using proper device · a7cd942b
    Horia Geantă authored
    Currently there is a mismatch b/w the ICID (Isolation Context ID) used
    for DMA mapping keys and ICID used for accessing them.
    -keys are DMA mapped using a job ring device, thus a job ring ICID
    -keys are accessed from descriptors enqueued via Queue Interface,
    thus using QI ICID
    
    [Note: ICIDs of JRs, QI are configured by U-boot / other entity by:
    -fixing up the corresponding job ring and controller DT nodes
    -setting up corresponding caam ICID registers]
    
    In order to avoid IOMMU faults, DMA map the key using the controller
    device instead of a job ring device.
    Signed-off-by: default avatarHoria Geantă <horia.geanta@nxp.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    a7cd942b
caamalg_qi.c 68.9 KB