• Gary R Hook's avatar
    crypto: ccp - Assign DMA commands to the channel's CCP · 7c468447
    Gary R Hook authored
    The CCP driver generally uses a round-robin approach when
    assigning operations to available CCPs. For the DMA engine,
    however, the DMA mappings of the SGs are associated with a
    specific CCP. When an IOMMU is enabled, the IOMMU is
    programmed based on this specific device.
    If the DMA operations are not performed by that specific
    CCP then addressing errors and I/O page faults will occur.
    Update the CCP driver to allow a specific CCP device to be
    requested for an operation and use this in the DMA engine
    Cc: <stable@vger.kernel.org> # 4.9.x-
    Signed-off-by: default avatarGary R Hook <gary.hook@amd.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
ccp-dev.c 13.6 KB