[PATCH v1 0/3] Add support for Cavium CNN55XX crypto adapters.

2017-05-10 Thread Srikanth Jampala
ernel cryptographic offload operations. Please provide the feeback. Srikanth Jampala (3): crypto: cavium - Add support for CNN55XX adapters. crypto: cavium - Add debugfs support in CNN55XX driver crypto: cavium - Register the CNN55XX supported crypto algorithms. dr

[PATCH v1 2/3] crypto: cavium - Add debugfs support in CNN55XX driver

2017-05-10 Thread Srikanth Jampala
Add debugfs support in CNN55XX Physical Function driver. Provides hardware counters and firmware information. Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/nitrox_csr.h | 5 ++ drivers/crypto/cavium/nitrox/nitrox_dev.h | 3 + drivers/crypto/cavium/nitrox/nitrox_main.c

[PATCH v1 1/3] crypto: cavium - Add support for CNN55XX adapters.

2017-05-10 Thread Srikanth Jampala
Add Physical Function driver support for CNN55XX crypto adapters. CNN55XX adapters belongs to Cavium NITROX family series, which accelerate both Symmetric and Asymmetric crypto workloads. These adapters have crypto engines that need firmware to become operational. Signed-off-by: Srikanth Jampala

[PATCH v1 3/3] crypto: cavium - Register the CNN55XX supported crypto algorithms.

2017-05-10 Thread Srikanth Jampala
Register the Symmetric crypto algorithms supported by CNN55XX driver with crypto subsystem. The following Symmetric crypto algorithms are supported, - aes with cbc, ecb, cfb, xts, ctr and cts modes - des3_ede with cbc and ecb modes Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium

Re: [PATCH v1 3/3] crypto: cavium - Register the CNN55XX supported crypto algorithms.

2017-05-11 Thread srikanth jampala
Hi Stephan, On Wednesday 10 May 2017 07:26 PM, Stephan Müller wrote: > Am Mittwoch, 10. Mai 2017, 15:06:40 CEST schrieb Srikanth Jampala: > > Hi Srikanth, > > In general: you are using the ablkcipher API. I think it is on its way out > and > being replaced with skcipher

Re: [PATCH v1 3/3] crypto: cavium - Register the CNN55XX supported crypto algorithms.

2017-05-11 Thread srikanth jampala
Hi Stephan, On Thursday 11 May 2017 05:52 PM, Stephan Müller wrote: > Am Donnerstag, 11. Mai 2017, 14:18:34 CEST schrieb srikanth jampala: > > Hi srikanth, > >> Hi Stephan, >> >> On Wednesday 10 May 2017 07:26 PM, Stephan Müller wrote: >>> Am Mittwo

[PATCH v2 1/3] crypto: cavium - Add support for CNN55XX adapters.

2017-05-30 Thread Srikanth Jampala
Add Physical Function driver support for CNN55XX crypto adapters. CNN55XX adapters belongs to Cavium NITROX family series, which accelerate both Symmetric and Asymmetric crypto workloads. These adapters have crypto engines that need firmware to become operational. Signed-off-by: Srikanth Jampala

[PATCH v2 0/3] Add support for Cavium CNN55XX crypto adapters.

2017-05-30 Thread Srikanth Jampala
. - Clear the context information while releasing. - Cleanup in request processing, avoids unnecessary copies. - Use refcount_t type for reference counters. - Dependencies updated in Kconfig. Srikanth Jampala (3): crypto: cavium - Add support for CNN55XX adapters. crypto: cavium - Add debugfs support

[PATCH v2 2/3] crypto: cavium - Add debugfs support in CNN55XX driver.

2017-05-30 Thread Srikanth Jampala
Add debugfs support in CNN55XX Physical Function driver. Provides hardware counters and firmware information. Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/nitrox_csr.h | 4 + drivers/crypto/cavium/nitrox/nitrox_dev.h | 4 + drivers/crypto/cavium/nitrox/nitrox_main.c

[PATCH v2 3/3] crypto: cavium - Register the CNN55XX supported crypto algorithms.

2017-05-30 Thread Srikanth Jampala
Register the Symmetric crypto algorithms supported by CNN55XX driver with crypto subsystem. The following Symmetric crypto algorithms are supported, - aes with cbc, ecb, cfb, xts, ctr and cts modes - des3_ede with cbc and ecb modes Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium

[PATCH 0/1] Add firmware for CNN55XX crypto driver

2017-06-16 Thread Srikanth Jampala
CNN55XX driver is accepted and needs firmware to functional. This patchset adds CNN55XX firmware v07 supports symmetric crypto operations. Srikanth Jampala (1): cavium: Add firmware for CNN55XX crypto driver. WHENCE| 9 + cnn55xx_se.fw | Bin 0 -> 27698 bytes 2 files chan

[PATCH 1/1] cavium: Add firmware for CNN55XX crypto driver.

2017-06-16 Thread Srikanth Jampala
This patchset adds the firmware for CNN55XX cryto driver, supports Symmetric crypto operations. The version of the firmware is v07. Signed-off-by: Srikanth Jampala --- WHENCE| 9 + cnn55xx_se.fw | Bin 0 -> 27698 bytes 2 files changed, 9 insertions(+) create mode 100

Re: [PATCH 1/1] cavium: Add firmware for CNN55XX crypto driver.

2017-06-23 Thread srikanth jampala
Sure kyle, I will work on this. Thanks. On Friday 23 June 2017 12:39 AM, Kyle McMartin wrote: > On Fri, Jun 16, 2017 at 07:52:26PM +0530, Srikanth Jampala wrote: >> This patchset adds the firmware for CNN55XX cryto driver, >> supports Symmetric crypto operations. >>

[PATCH][crypto-next] crypto: cavium/nitrox - Change in firmware path.

2017-06-23 Thread Srikanth Jampala
Moved the firmware to "cavium" subdirectory as suggested by Kyle McMartin. Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/nitrox_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/cavium/nitrox/nitrox_main.c b/drivers/cry

[PATCH 1/1] crypto: cavium/nitrox - fix for command corruption in queue full case with backlog submissions.

2018-08-22 Thread Srikanth Jampala
free slot to post the command. Return -ENOSPC in queue full case. Signed-off-by: Srikanth Jampala Reviewed-by: Gadam Sreerama Tested-by: Jha, Chandan --- drivers/crypto/cavium/nitrox/nitrox_dev.h| 3 +- drivers/crypto/cavium/nitrox/nitrox_lib.c| 1 + drivers/crypto/cavium/nitrox

[PATCH 1/1] crypto: cavium/nitrox - Added support for SR-IOV configuration.

2018-09-07 Thread Srikanth Jampala
Added support to configure SR-IOV using sysfs interface. Supported VF modes are 16, 32, 64 and 128. Grouped the hardware configuration functions to "nitrox_hal.h" file. Changed driver version to "1.1". Signed-off-by: Srikanth Jampala Reviewed-by: Gadam Sreerama --- drivers/

[PATCH] crypto: cavium/nitrox - use dma_pool_zalloc()

2018-09-10 Thread Srikanth Jampala
use dma_pool_zalloc() instead of dma_pool_alloc with __GFP_ZERO flag. crypto dma pool renamed to "nitrox-context". Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/nitrox_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/cav

[PATCH cryptodev-2.6 2/3] crypto: cavium/nitrox - add support for per device request statistics.

2018-09-21 Thread Srikanth Jampala
Add per device statistics like number of requests posted, dropped and completed etc. Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/nitrox_dev.h| 7 +++ drivers/crypto/cavium/nitrox/nitrox_main.c | 5 + drivers/crypto/cavium/nitrox/nitrox_reqmgr.c | 9

[PATCH cryptodev-2.6 3/3] crypto: cavium/nitrox - updated debugfs information.

2018-09-21 Thread Srikanth Jampala
Updated debugfs to provide device partname and frequency etc. New file "stats" shows the number of requests posted, dropped and completed. Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/Makefile | 1 + drivers/crypto/cavium/nitrox/nitrox_debug

[PATCH cryptodev-2.6 1/3] crypto: cavium/nitrox - added support to identify the NITROX device partname.

2018-09-21 Thread Srikanth Jampala
Get the device partname based on it's capabilities like, core frequency, number of cores and revision id. Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/nitrox_csr.h | 111 + drivers/crypto/cavium/nitrox/nitrox_dev.h | 17 +++- drivers/crypto/c

RE: [PATCH cryptodev-2.6 3/3] crypto: cavium/nitrox - updated debugfs information.

2018-09-28 Thread Srikanth, Jampala
Hey Ard, Thanks a lot for your feedback. I will post the fixes soon. -Original Message- From: Ard Biesheuvel Sent: 28 September 2018 19:02 To: Srikanth, Jampala Cc: Herbert Xu ; David S. Miller ; open list:HARDWARE RANDOM NUMBER GENERATOR CORE ; Linux Kernel Mailing List ; Gadam

[PATCH cryptodev-2.6 3/4] crypto: cavium/nitrox - NITROX command queue changes.

2018-09-29 Thread Srikanth Jampala
Use node based allocations for queues. consider the dma address alignment changes, while calculating the queue base address. added checks in cleanup functions. Minor changes to queue variable names Signed-off-by: Srikanth Jampala Reviewed-by: Gadam Sreerama --- drivers/crypto/cavium/nitrox

[PATCH cryptodev-2.6 1/4] crypto: cavium/nitrox - fix warnings while printing atomic64_t types

2018-09-29 Thread Srikanth Jampala
el Signed-off-by: Srikanth Jampala Reviewed-by: Gadam Sreerama --- drivers/crypto/cavium/nitrox/nitrox_debugfs.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/cavium/nitrox/nitrox_debugfs.c b/drivers/crypto/cavium/nitrox/nitrox_debugfs.c index 2f1e74ea8

[PATCH cryptodev-2.6 2/4] crypto: cavium/nitrox - use pcie_flr instead of duplicating it

2018-09-29 Thread Srikanth Jampala
check the flr capability using pcie_has_flr() and do the flr. Signed-off-by: Srikanth Jampala Reviewed-by: Gadam Sreerama --- drivers/crypto/cavium/nitrox/nitrox_main.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/crypto/cavium/nitrox

[PATCH cryptodev-2.6 4/4] crypto: cavium/nitrox - use pci_alloc_irq_vectors() while enabling MSI-X.

2018-09-29 Thread Srikanth Jampala
replace pci_enable_msix_exact() with pci_alloc_irq_vectors(). get the required vector count from pci_msix_vec_count(). use struct nitrox_q_vector as the argument to tasklets. Signed-off-by: Srikanth Jampala Reviewed-by: Gadam Sreerama --- drivers/crypto/cavium/nitrox/nitrox_common.h | 5

Re: [PATCH] crypto: cavium/nitrox - fix a DMA pool free failure

2018-10-30 Thread Srikanth, Jampala
iaju1...@gmail.com; Srikanth, Jampala; Gadam, Sreerama; linux-crypto@vger.kernel.org; open list Subject: Re: [PATCH] crypto: cavium/nitrox - fix a DMA pool free failure External Email Hello, Can anyone confirm this bug? Thanks! Wenwen On Thu, Oct 18, 2018 at 7:51 PM Wenwen Wang wrote: &

[PATCH 1/1] crypto: cavium/nitrox - Enable interrups for PF in SR-IOV mode.

2018-11-21 Thread Srikanth, Jampala
Enable the available interrupt vectors for PF in SR-IOV Mode. Only single vector entry 192 is valid of PF. This is used to notify any hardware errors and mailbox messages from VF(s). Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/nitrox_dev.h | 15 +++- drivers/crypto/cavium

[PATCH] crypto: cavium/nitrox - Enabled Mailbox support

2018-12-04 Thread Srikanth, Jampala
Enabled the PF->VF Mailbox support. Mailbox message are interpreted as {type, opcode, data}. Supported message types are REQ, ACK and NACK. Signed-off-by: Srikanth Jampala --- drivers/crypto/cavium/nitrox/Makefile | 3 +- drivers/crypto/cavium/nitrox/nitrox_csr.h | 12 +- driv