[PATCH v3 12/18] crypto: switch af_alg_make_sg() to iov_iter

2015-02-03 Thread Al Viro
From: Al Viro v...@zeniv.linux.org.uk With that, all -sendmsg() instances are converted to iov_iter primitives and are agnostic wrt the kind of iov_iter they are working with. So's the last remaining -recvmsg() instance that wasn't kind-agnostic yet. All -sendmsg() and -recvmsg() advance

[PATCH] crypto: tcrypt speed: fix filter for aead algorithms

2015-02-03 Thread Cristian Stoica
test_aead_speed is written for sync algorithms without specifically requiring them. The effect is that an async algorithm may be used without setting up the request callback, this leading to a kernel panic. Signed-off-by: Cristian Stoica cristian.sto...@freescale.com --- crypto/tcrypt.c | 3 ++-

[PATCH v1 4/5] crypto: ccp - Convert calls to their devm_ counterparts

2015-02-03 Thread Tom Lendacky
Where applicable, convert calls to their devm_ counterparts, e.g. kzalloc to devm_kzalloc. Signed-off-by: Tom Lendacky thomas.lenda...@amd.com --- drivers/crypto/ccp/ccp-dev.c |2 +- drivers/crypto/ccp/ccp-pci.c | 19 +-- drivers/crypto/ccp/ccp-platform.c | 11

[PATCH v1 1/5] crypto: ccp - Updates for checkpatch warnings/errors

2015-02-03 Thread Tom Lendacky
Changes to address warnings and errors reported by the checkpatch script. Signed-off-by: Tom Lendacky thomas.lenda...@amd.com --- drivers/crypto/ccp/ccp-crypto-aes-cmac.c | 12 +++- drivers/crypto/ccp/ccp-crypto-aes-xts.c |4 +--- drivers/crypto/ccp/ccp-crypto-aes.c |3

[PATCH v1 2/5] crypto: ccp - Update CCP build support

2015-02-03 Thread Tom Lendacky
Add HAS_IOMEM as a Kconfig dependency. Always include ccp-platform.c in the CCP build and conditionally include ccp-pci.c. Signed-off-by: Tom Lendacky thomas.lenda...@amd.com --- drivers/crypto/Kconfig |2 +- drivers/crypto/ccp/Makefile |9 ++--- 2 files changed, 3

[PATCH v1 0/5] crypto: ccp - CCP driver updates 2015-01-28

2015-02-03 Thread Tom Lendacky
For some reason this series never reached the mailing list... resending. The following series of patches includes functional updates to the driver as well as some trivial changes. - Fix checks/warnings from checkpatch - Update how the CCP is built (Kconfig and Makefile) - Use

[PATCH v1 3/5] crypto: ccp - Use dma_set_mask_and_coherent to set DMA mask

2015-02-03 Thread Tom Lendacky
Replace the setting of the DMA masks with the dma_set_mask_and_coherent function call. Signed-off-by: Tom Lendacky thomas.lenda...@amd.com --- drivers/crypto/ccp/ccp-platform.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ccp/ccp-platform.c

[PATCH v1 5/5] crypto: ccp - Add ACPI support

2015-02-03 Thread Tom Lendacky
Add support for ACPI to the CCP platform driver. Signed-off-by: Tom Lendacky thomas.lenda...@amd.com --- drivers/crypto/Kconfig|2 - drivers/crypto/ccp/ccp-platform.c | 96 +++-- 2 files changed, 93 insertions(+), 5 deletions(-) diff --git