linux/drivers/crypto/nx
Marcelo Cerri d311149337 crypto: nx - fix limits to sg lists for SHA-2
The co-processor has several limits regarding the length of
scatter/gather lists and the total number of bytes in it. These limits
are available in the device tree, as following:

 - "ibm,max-sg-len": maximum number of bytes of each scatter/gather
   list.

 - "ibm,max-sync-cop": used for synchronous operations, it is an array
   of structures that contains information regarding the limits that
   must be considered for each mode and operation. The most important
   limits in it are:
   	- The total number of bytes that a scatter/gather list can hold.
	- The maximum number of elements that a scatter/gather list can
	  have.

This patch updates the NX driver to perform several hyper calls if
needed in order to always respect the length limits for scatter/gather
lists.

Reviewed-by: Fionnuala Gunter <fin@linux.vnet.ibm.com>
Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
Reviewed-by: Joy Latten <jmlatten@linux.vnet.ibm.com>
Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2013-08-09 16:39:44 +10:00
..
Kconfig powerpc/crypto: add 842 hardware compression driver 2012-08-01 17:47:56 +08:00
Makefile powerpc/crypto: add 842 hardware compression driver 2012-08-01 17:47:56 +08:00
nx_csbcpb.h
nx_debugfs.c powerpc/crypto: debugfs routines and docs for the nx device driver 2012-05-16 15:05:45 +10:00
nx-842.c powerpc+of: Add of node/property notification chain for adds and removes 2012-11-15 12:56:41 +11:00
nx-aes-cbc.c drivers/crypto/nx: Fixes for multiple races and issues 2013-05-24 18:11:10 +10:00
nx-aes-ccm.c crypto: drivers - remove cra_list initialization 2012-08-01 17:47:28 +08:00
nx-aes-ctr.c crypto: drivers - remove cra_list initialization 2012-08-01 17:47:28 +08:00
nx-aes-ecb.c drivers/crypto/nx: Fixes for multiple races and issues 2013-05-24 18:11:10 +10:00
nx-aes-gcm.c drivers/crypto/nx: Fixes for multiple races and issues 2013-05-24 18:11:10 +10:00
nx-aes-xcbc.c powerpc/crypto: AES-XCBC mode routines for nx encryption 2012-05-16 15:05:43 +10:00
nx-sha256.c crypto: nx - fix limits to sg lists for SHA-2 2013-08-09 16:39:44 +10:00
nx-sha512.c crypto: nx - fix limits to sg lists for SHA-2 2013-08-09 16:39:44 +10:00
nx.c crypto: nx - fix physical addresses added to sg lists 2013-08-09 16:39:44 +10:00
nx.h