[PATCH] crypto: ccp - Fix some line spacing

2017-06-27 Thread Gary R Hook
Add/remove blank lines as appropriate. Signed-off-by: Gary R Hook --- drivers/crypto/ccp/ccp-dev.c |1 + include/linux/ccp.h |1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/ccp/ccp-dev.c b/drivers/crypto/ccp/ccp-dev.c index

[PATCH 2] crypto: ccp - Provide a roll-back method for debugfs setup

2017-06-27 Thread Gary R Hook
Changes since v1: - Remove unneeded local variable Signed-off-by: Gary R Hook --- drivers/crypto/ccp/ccp-debugfs.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/ccp/ccp-debugfs.c b/drivers/crypto/ccp/ccp-debugfs.c

[PATCH] crypto: ccp - Change all references to use the JOB ID macro

2017-06-27 Thread Gary R Hook
Use the CCP_NEW_JOBID() macro when assigning an identifier Signed-off-by: Gary R Hook --- drivers/crypto/ccp/ccp-ops.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ccp/ccp-ops.c b/drivers/crypto/ccp/ccp-ops.c index

[no subject]

2017-06-27 Thread системы администратор
внимания; Ваши сообщения превысил лимит памяти, который составляет 5 Гб, определенных администратором, который в настоящее время работает на 10.9GB, Вы не сможете отправить или получить новую почту, пока вы повторно не проверить ваш почтовый ящик почты. Чтобы восстановить работоспособность

Re: [PATCH 6/7] drm/tilcdc: clean up ifdef hacks around iowrite64

2017-06-27 Thread Arnd Bergmann
On Mon, Jun 26, 2017 at 6:26 PM, Logan Gunthorpe wrote: > Hi Jyri, > > Thanks for the ack. However, I'm reworking this patch set to use the > include/linux/io-64-nonatomic* headers which will explicitly devolve > into two 32-bit transfers. It's not clear whether this is

Re: [PATCH 2] crypto: ccp - Provide a roll-back method for debugfs setup

2017-06-27 Thread Gary R Hook
On 06/27/2017 08:57 AM, Hook, Gary wrote: Changes since v1: - Remove unneeded local variable My apologies for this patch... Pretty sure that the first version won't pass review anyway because of this. Signed-off-by: Gary R Hook --- drivers/crypto/ccp/ccp-debugfs.c |

Re: [PATCH 2] crypto: ccp - Provide a roll-back method for debugfs setup

2017-06-27 Thread Tom Lendacky
On 6/27/2017 8:57 AM, Gary R Hook wrote: Changes since v1: - Remove unneeded local variable Signed-off-by: Gary R Hook --- drivers/crypto/ccp/ccp-debugfs.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git

[PATCH v2 2/3] ntb: ntb_hw_intel: use io-64-nonatomic instead of in-driver hacks

2017-06-27 Thread Logan Gunthorpe
Now that ioread64 and iowrite64 are available in io-64-nonatomic, we can remove the hack at the top of ntb_hw_intel.c and replace it with an include. Signed-off-by: Logan Gunthorpe Cc: Jon Mason Cc: Allen Hubbe Acked-by: Dave Jiang

[PATCH v2 0/3] make io{read|write}64 more globally usable

2017-06-27 Thread Logan Gunthorpe
Hi, This is my second attempt to cleanup the io{read|write}64 functions so that I can use them in a new driver[1]. This time, per a suggestion from Arnd, we simply add the io64 functions to the io-64-nonatomic headers and cleanup the two obvious drivers. (Horia provided me with a corrected patch

[PATCH v2 1/3] io-64-nonatomic: add io{read|write}64[be] macros

2017-06-27 Thread Logan Gunthorpe
This patch adds io{read|write}64[be] macros to point to the readq/writeq in use. This is because new drivers are encouraged to use ioreadXX, et al instead of readX[1], et al -- and mixing ioreadXX with readq is pretty ugly. [1] ldd3: section 9.4.2 Signed-off-by: Logan Gunthorpe

[PATCH v2 3/3] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2017-06-27 Thread Logan Gunthorpe
From: Horia Geantă We can now make use of the io-64-nonatomic-hi-lo header to always provide 64 bit IO operations. So this patch cleans up the extra CONFIG_64BIT ifdefs. Signed-off-by: Horia Geantă Signed-off-by: Logan Gunthorpe

[PATCH] hwrng: Make hwrng choose rng source by quality.

2017-06-27 Thread Harald Freudenberger
The hwrng core implementation currently doesn't consider the quality field of the struct hwrng. So the first registered rng is the winner and further rng sources even with much better quality are ignored. The behavior should be that always the best rng with the highest quality rate should be used

[PATCH 03/14] staging: ccree: fix else placement

2017-06-27 Thread Gilad Ben-Yossef
Fix cases where the else clause was not located correctly after the if brace. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 3 +-- drivers/staging/ccree/ssi_pm.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH 01/14] staging: ccree: fix missing or redundant spaces

2017-06-27 Thread Gilad Ben-Yossef
Add and/or remove redundant and/or missing spaces in ccree source Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/Kconfig | 2 +- drivers/staging/ccree/ssi_aead.c| 38 drivers/staging/ccree/ssi_aead.h| 12 +--

[PATCH 08/14] staging: ccree: fix pointer location

2017-06-27 Thread Gilad Ben-Yossef
Fix location of pointer in variables definitions and dereference. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.h| 4 ++-- drivers/staging/ccree/ssi_buffer_mgr.c | 12 ++-- drivers/staging/ccree/ssi_cipher.c | 8

[PATCH 13/14] staging: ccree: remove/add (un)needed blank lines

2017-06-27 Thread Gilad Ben-Yossef
Remove or add blank lines as needed to match coding style. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 20 +-- drivers/staging/ccree/ssi_aead.h| 4 drivers/staging/ccree/ssi_buffer_mgr.c | 7 ---

[PATCH 14/14] staging: ccree: fix block comment style

2017-06-27 Thread Gilad Ben-Yossef
Align block comments according to coding style. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_hw_queue_defs.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ccree/cc_hw_queue_defs.h

[PATCH 12/14] staging: ccree: remove unused type CCFipsSyncStatus_t

2017-06-27 Thread Gilad Ben-Yossef
The CCFipsSyncStatus_t type was not being used in the code. Remove it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_fips_local.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/staging/ccree/ssi_fips_local.h

[PATCH 02/14] staging: ccree: drop comparsion to true/false

2017-06-27 Thread Gilad Ben-Yossef
Fix cases in ccree where explicit comparsion to true/false was made. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c | 18 +- drivers/staging/ccree/ssi_buffer_mgr.c | 20 ++-- drivers/staging/ccree/ssi_cipher.c

[PATCH 07/14] staging: ccree: remove comparisons to NULL

2017-06-27 Thread Gilad Ben-Yossef
Remove explicit comparisons to NULL in ccree driver. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 34 - drivers/staging/ccree/ssi_buffer_mgr.c | 44 -

[PATCH 10/14] staging: ccree: remove custom type ssi_fips_error_t

2017-06-27 Thread Gilad Ben-Yossef
Replace custom type ssi_fips_error_t with underlying enum. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_fips.c | 4 ++-- drivers/staging/ccree/ssi_fips.h | 6 +++--- drivers/staging/ccree/ssi_fips_ext.c | 6 +++---

[PATCH 09/14] staging: ccree: remove custom type tdes_keys_t

2017-06-27 Thread Gilad Ben-Yossef
Replace references to type tdes_keys_t with struct tdes_keys. _ Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ccree/ssi_cipher.c

[PATCH 11/14] staging: ccree: remove custom type ssi_fips_state_t

2017-06-27 Thread Gilad Ben-Yossef
Replace custom type ssi_fips_state_t with underlying enum. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_fips.c | 4 ++-- drivers/staging/ccree/ssi_fips.h | 6 +++--- drivers/staging/ccree/ssi_fips_ext.c | 6 +++---

[PATCH] checkpatch: add *_ON_STACK to $declaration_macros

2017-06-27 Thread Gilad Ben-Yossef
Add the crypto API *_ON_STACK to $declaration_macros. Resolves the following false warning: WARNING: Missing a blank line after declarations + int err; + SHASH_DESC_ON_STACK(desc, ctx_p->shash_tfm); Signed-off-by: Gilad Ben-Yossef

[PATCH 00/14] staging: ccree: coding style fixes

2017-06-27 Thread Gilad Ben-Yossef
Fix a bunch of coding style across the whole ccree driver Gilad Ben-Yossef (14): staging: ccree: fix missing or redundant spaces staging: ccree: drop comparsion to true/false staging: ccree: fix else placement staging: ccree: remove redundant blank lines staging: ccree: no need for

[PATCH 06/14] staging: ccree: fix unmatched if/else braces

2017-06-27 Thread Gilad Ben-Yossef
Fix mismatched braces between if and else. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 3 ++- drivers/staging/ccree/ssi_cipher.c | 7 +++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 05/14] staging: ccree: no need for braces for single statements

2017-06-27 Thread Gilad Ben-Yossef
Fix several cases of needless braces around single statement blocks. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 38 +++--- drivers/staging/ccree/ssi_buffer_mgr.c | 70 ++---

[PATCH 04/14] staging: ccree: remove redundant blank lines

2017-06-27 Thread Gilad Ben-Yossef
Remove redundant blank lines in brace blocks Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 2 -- drivers/staging/ccree/ssi_buffer_mgr.c | 8 drivers/staging/ccree/ssi_cipher.c | 5 - drivers/staging/ccree/ssi_driver.c

[PATCH] crypto: sahara : make of_device_ids const.

2017-06-27 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 97592736 8 1250330d7

[PATCH V6 7/7] crypto: AES CBC multi-buffer tcrypt

2017-06-27 Thread Megha Dey
The tcrypt test framework for CBC multi-buffer testing is laid out in this patch. Tcrypt has been extended to validate the functionality and performance of AES CBC multi-buffer support. A new test(mode=600) has been added to test the speed of the multibuffer case, as multi-buffer encrypt will

[PATCH V6 6/7] crypto: AES vectors for AES CBC multibuffer testing

2017-06-27 Thread Megha Dey
For more robust testing of AES CBC multibuffer support, additional test vectors have been added to the AES CBC encrypt/decrypt test case. Originally-by: Chandramouli Narayanan Signed-off-by: Megha Dey Acked-by: Tim Chen

[PATCH V6 5/7] crypto: AES CBC multi-buffer glue code

2017-06-27 Thread Megha Dey
This patch introduces the multi-buffer job manager which is responsible for submitting scatter-gather buffers from several AES CBC jobs to the multi-buffer algorithm. The glue code interfaces with the underlying algorithm that handles 8 data streams of AES CBC encryption in parallel. AES key

[PATCH V6 4/7] crypto: AES CBC by8 encryption

2017-06-27 Thread Megha Dey
This patch introduces the assembly routine to do a by8 AES CBC encryption in support of the AES CBC multi-buffer implementation. It encrypts 8 data streams of the same key size simultaneously. Originally-by: Chandramouli Narayanan Signed-off-by: Megha Dey

[PATCH V6 2/7] crypto: AES CBC multi-buffer data structures

2017-06-27 Thread Megha Dey
This patch introduces the data structures and prototypes of functions needed for doing AES CBC encryption using multi-buffer. Included are the structures of the multi-buffer AES CBC job, job scheduler in C and data structure defines in x86 assembly code. Originally-by: Chandramouli Narayanan

[PATCH V6 3/7] crypto: AES CBC multi-buffer scheduler

2017-06-27 Thread Megha Dey
This patch implements in-order scheduler for encrypting multiple buffers in parallel supporting AES CBC encryption with key sizes of 128, 192 and 256 bits. It uses 8 data lanes by taking advantage of the SIMD instructions with XMM registers. The multibuffer manager and scheduler is mostly written

[PATCH V6 1/7] crypto: Multi-buffer encryption infrastructure support

2017-06-27 Thread Megha Dey
In this patch, the infrastructure needed to support multibuffer encryption implementation is added: a) Enhance mcryptd daemon to support skcipher requests. b) Add multi-buffer mcryptd skcipher helper which presents the top-level algorithm as an skcipher. b) Update configuration to include

[PATCH V6 0/7] crypto: AES CBC multibuffer implementation

2017-06-27 Thread Megha Dey
In this patch series, we introduce AES CBC encryption that is parallelized on x86_64 cpu with XMM registers. The multi-buffer technique encrypt 8 data streams in parallel with SIMD instructions. Decryption is handled as in the existing AESNI Intel CBC implementation which can already parallelize