alistair23-linux/drivers/crypto/ccp
Gary R Hook 7c468447f4 crypto: ccp - Assign DMA commands to the channel's CCP
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
support.

Cc: <stable@vger.kernel.org> # 4.9.x-
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-03-16 17:43:08 +08:00
..
ccp-crypto-aes-cmac.c crypto: ccp - Prevent information leakage on export 2016-04-15 22:13:56 +08:00
ccp-crypto-aes-xts.c crypto: ccp - Use skcipher for fallback 2016-07-01 23:45:08 +08:00
ccp-crypto-aes.c crypto: ccp - CCP versioning support 2016-03-11 21:19:16 +08:00
ccp-crypto-main.c crypto: ccp - Replace BUG_ON with WARN_ON and a return code 2015-10-08 21:42:15 +08:00
ccp-crypto-sha.c crypto: ccp - Let a v5 CCP provide the same function as v3 2016-08-09 18:47:16 +08:00
ccp-crypto.h crypto: ccp - Use skcipher for fallback 2016-07-01 23:45:08 +08:00
ccp-dev-v3.c crypto: ccp - Clean up the LSB slot allocation code 2016-10-25 11:08:23 +08:00
ccp-dev-v5.c crypto: ccp - Update the command queue on errors 2017-02-15 13:23:34 +08:00
ccp-dev.c crypto: ccp - Assign DMA commands to the channel's CCP 2017-03-16 17:43:08 +08:00
ccp-dev.h crypto: ccp - Set the AES size field for all modes 2017-02-15 13:20:19 +08:00
ccp-dmaengine.c crypto: ccp - Assign DMA commands to the channel's CCP 2017-03-16 17:43:08 +08:00
ccp-ops.c crypto: ccp - Simplify some buffer management routines 2017-02-15 13:23:35 +08:00
ccp-pci.c crypto: ccp - clean up data structure 2016-10-02 22:33:44 +08:00
ccp-platform.c crypto: ccp - Add abstraction for device-specific calls 2016-03-11 21:19:17 +08:00
Kconfig crypto: ccp - Ensure all dependencies are specified 2016-04-25 19:14:51 +08:00
Makefile crypto: ccp - Let a v5 CCP provide the same function as v3 2016-08-09 18:47:16 +08:00