Re: [PATCH v6 1/2] staging: fsl-mc: Move core bus out of staging

2018-02-05 Thread Horia Geantă
On 2/5/2018 4:08 PM, Bogdan Purcareata wrote: > Move the source files out of staging into their final locations: > -mc.h include file in drivers/staging/fsl-mc/include go to include/linux/fsl > -source files in drivers/staging/fsl-mc/bus go to drivers/bus/fsl-mc > -overview.rst, providing an

Re: [PATCH v2 1/3] staging: ccree: copy IV to DMAable memory

2017-11-08 Thread Horia Geantă
On 11/2/2017 10:14 AM, Gilad Ben-Yossef wrote: > We are being passed an IV buffer from unknown origin, which may be > stack allocated and thus not safe for DMA. Allocate a DMA safe > buffer for the IV and use that instead. > IIUC this fixes only the (a)blkcipher / skcipher algorithms. What about a

Re: [PATCH 0/4] staging: fsl-mc: dpio: add dpseci dependencies

2017-09-01 Thread Horia Geantă
On 9/1/2017 11:30 AM, Greg Kroah-Hartman wrote: > On Fri, Sep 01, 2017 at 08:14:16AM +0000, Horia Geantă wrote: >> On 8/31/2017 7:20 PM, Greg Kroah-Hartman wrote: >>> On Wed, Aug 30, 2017 at 01:41:58PM +0300, Horia Geantă wrote: >>>> This patch set adds support for

[PATCH] staging: fsl-dpaa2/eth: fix off-by-one FD ctrl bitmaks

2017-09-01 Thread Horia Geantă
Fix the values of DPAA2_FD_CTRL_FSE and DPAA2_FD_CTRL_FAERR, which are shifted off by one bit. Fixes: 39163c0ce0f48 ("staging: fsl-dpaa2/eth: Errors checking update") Cc: Signed-off-by: Horia Geantă --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h | 4 ++-- 1 file changed, 2 insert

Re: [PATCH 4/4] staging: fsl-dpaa2/eth: move generic FD defines to DPIO

2017-09-01 Thread Horia Geantă
On 8/31/2017 7:19 PM, Greg Kroah-Hartman wrote: > On Wed, Aug 30, 2017 at 01:42:02PM +0300, Horia Geantă wrote: >> Previous commits: >> 6e2387e8f19e ("staging: fsl-dpaa2/eth: Add Freescale DPAA2 Ethernet driver") >> 39163c0ce0f4 ("staging: fsl-dpaa2/eth: Errors

Re: [PATCH 0/4] staging: fsl-mc: dpio: add dpseci dependencies

2017-09-01 Thread Horia Geantă
On 8/31/2017 7:20 PM, Greg Kroah-Hartman wrote: > On Wed, Aug 30, 2017 at 01:41:58PM +0300, Horia Geantă wrote: >> This patch set adds support for functionalities needed by the upcoming >> dpseci (Data Path SEC Interface) object device driver: >> -Frame List Entries (FLEs)

[PATCH 0/4] staging: fsl-mc: dpio: add dpseci dependencies

2017-08-30 Thread Horia Geantă
-crypto@vger.kernel.org/msg27290.html and crypto-specific (dpseci) patches have been ack-ed. I am resending the dpio dependencies separately (patches 1-4 in the RFC) for inclusion in the staging tree. Thanks, Horia Horia Geantă (3): staging: fsl-mc: dpio: add frame list format support staging: fsl

[PATCH 2/4] staging: fsl-mc: dpio: add congestion notification support

2017-08-30 Thread Horia Geantă
Add support for Congestion State Change Notifications (CSCN), which allow DPIO users to be notified when a congestion group changes its state (due to hitting the entrance / exit threshold). Signed-off-by: Ioana Radulescu Signed-off-by: Radu Alexe Signed-off-by: Horia Geantă --- drivers

[PATCH 4/4] staging: fsl-dpaa2/eth: move generic FD defines to DPIO

2017-08-30 Thread Horia Geantă
her accelerators can make use of them. While here, fix the values of FD_CTRL_FSE and FD_CTRL_FAERR, which were shifted off by one bit. Signed-off-by: Horia Geantă --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 8 +++- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h | 19 +---

[PATCH 1/4] staging: fsl-mc: dpio: add frame list format support

2017-08-30 Thread Horia Geantă
FLE case) - FLC[5:0] not used for stashing Signed-off-by: Horia Geantă --- drivers/staging/fsl-mc/include/dpaa2-fd.h | 243 ++ 1 file changed, 243 insertions(+) diff --git a/drivers/staging/fsl-mc/include/dpaa2-fd.h b/drivers/staging/fsl-mc/include/dpaa2-fd.h index c

[PATCH 3/4] staging: fsl-mc: dpio: add order preservation support

2017-08-30 Thread Horia Geantă
From: Radu Alexe Order preservation is a feature that will be supported in dpni, dpseci and dpci devices. This is a preliminary patch for the changes to be introduced in the corresponding drivers. Signed-off-by: Radu Alexe Signed-off-by: Horia Geantă --- drivers/staging/fsl-mc/include

[RFC PATCH 05/10] crypto: caam/qi - prepare for gcm(aes) support

2017-08-10 Thread Horia Geantă
Update gcm(aes) descriptors (generic, rfc4106 and rfc4543) such that they would also work when submitted via the QI interface. Signed-off-by: Horia Geantă --- drivers/crypto/caam/caamalg.c | 19 +++-- drivers/crypto/caam/caamalg_desc.c | 165 ++--- drivers

[RFC PATCH 07/10] crypto: caam - add Queue Interface v2 error codes

2017-08-10 Thread Horia Geantă
Add support to translate error codes returned by QI v2, i.e. Queue Interface present on DataPath Acceleration Architecture v2 (DPAA2). Signed-off-by: Horia Geantă --- drivers/crypto/caam/error.c | 75 +++-- drivers/crypto/caam/error.h | 6 +++- drivers

[RFC PATCH 03/10] staging: fsl-mc: dpio: add order preservation support

2017-08-10 Thread Horia Geantă
From: Radu Alexe Order preservation is a feature that will be supported in dpni, dpseci and dpci devices. This is a preliminary patch for the changes to be introduced in the corresponding drivers. Signed-off-by: Radu Alexe Signed-off-by: Horia Geantă --- drivers/staging/fsl-mc/include

[RFC PATCH 09/10] crypto: caam/qi2 - add ablkcipher algorithms

2017-08-10 Thread Horia Geantă
Add support to submit the following ablkcipher algorithms via the DPSECI backend: cbc({aes,des,des3_ede}) ctr(aes), rfc3686(ctr(aes)) xts(aes) Signed-off-by: Horia Geantă --- drivers/crypto/caam/Kconfig | 1 + drivers/crypto/caam/caamalg_qi2.c | 816

[RFC PATCH 01/10] staging: fsl-mc: dpio: add frame list format support

2017-08-10 Thread Horia Geantă
FLE case) - FLC[5:0] not used for stashing Signed-off-by: Horia Geantă --- drivers/staging/fsl-mc/include/dpaa2-fd.h | 243 ++ 1 file changed, 243 insertions(+) diff --git a/drivers/staging/fsl-mc/include/dpaa2-fd.h b/drivers/staging/fsl-mc/include/dpaa2-fd.h index c

[RFC PATCH 02/10] staging: fsl-mc: dpio: add congestion notification support

2017-08-10 Thread Horia Geantă
Add support for Congestion State Change Notifications (CSCN), which allow DPIO users to be notified when a congestion group changes its state (due to hitting the entrance / exit threshold). Signed-off-by: Ioana Radulescu Signed-off-by: Radu Alexe Signed-off-by: Horia Geantă --- drivers

[RFC PATCH 10/10] arm64: defconfig: enable CAAM crypto engine on QorIQ DPAA2 SoCs

2017-08-10 Thread Horia Geantă
Enable CAAM (Cryptographic Accelerator and Assurance Module) driver for QorIQ Data Path Acceleration Architecture (DPAA) v2. It handles DPSECI (Data Path SEC Interface) DPAA2 objects that sit on the Management Complex (MC) fsl-mc bus. Signed-off-by: Horia Geantă --- arch/arm64/configs/defconfig

[RFC PATCH 04/10] staging: fsl-dpaa2/eth: move generic FD defines to DPIO

2017-08-10 Thread Horia Geantă
her accelerators can make use of them. While here, fix the values of FD_CTRL_FSE and FD_CTRL_FAERR, which were shifted off by one bit. Signed-off-by: Horia Geantă --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 8 +++- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h | 19 +---

[RFC PATCH 06/10] crypto: caam - add DPAA2-CAAM (DPSECI) backend API

2017-08-10 Thread Horia Geantă
Add the low-level API that allows to manage DPSECI DPAA2 objects that sit on the Management Complex (MC) fsl-mc bus. The API is compatible with MC firmware 10.2.0+. Signed-off-by: Horia Geantă --- drivers/crypto/caam/dpseci.c | 858 +++ drivers/crypto

[RFC PATCH 00/10] crypto: caam - add DPAA2 (DPSECI) driver

2017-08-10 Thread Horia Geantă
4. It will be built only if dependency on DPIO (CONFIG_FSL_MC_DPIO) is satisfied. Thanks, Horia Horia Geantă (9): staging: fsl-mc: dpio: add frame list format support staging: fsl-mc: dpio: add congestion notification support staging: fsl-dpaa2/eth: move generic FD defines to DPIO crypto:

Re: [PATCH] staging: fsl-mc/dpio: add cpu <--> LE conversion for dpaa2_fd

2017-04-29 Thread Horia Geantă
On 4/29/2017 7:32 PM, Stuart Yoder wrote: > On Fri, Apr 28, 2017 at 9:38 AM, Horia Geantă wrote: >> >> While dpaa2_fd.simple structure fields are marked __leXX, >> corresponding cpu_to_leXX / leXX_to_cpu conversions are missing. >> >> While here, fix dpaa2_fd_

[PATCH] staging: fsl-mc/dpio: add cpu <--> LE conversion for dpaa2_fd

2017-04-28 Thread Horia Geantă
frame descriptor and scatter/gather APIs") Signed-off-by: Horia Geantă --- drivers/staging/fsl-mc/include/dpaa2-fd.h | 45 --- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/drivers/staging/fsl-mc/include/dpaa2-fd.h b/drivers/staging/fsl-mc/include/

Re: [PATCH v2] bus: fsl-mc: dpio: fix alter FQ state command

2017-04-28 Thread Horia Geantă
On 4/28/2017 1:32 PM, Greg KH wrote: > On Sat, Apr 22, 2017 at 09:44:49AM +0300, Horia Geantă wrote: >> When checking the response verb, the valid bit should be masked out, >> since its value flips depending on what Response Register >> (RR0 /RR1) it's been read from.

[PATCH v2] bus: fsl-mc: dpio: fix alter FQ state command

2017-04-21 Thread Horia Geantă
When checking the response verb, the valid bit should be masked out, since its value flips depending on what Response Register (RR0 /RR1) it's been read from. Fixes: 321eecb06bfb ("bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2") Signed-off-by: Horia Geantă --- v2: use QB

Re: [PATCH] bus: fsl-mc: dpio: fix alter FQ state command

2017-04-21 Thread Horia Geantă
On 4/21/2017 4:31 PM, Stuart Yoder wrote: > On Fri, Apr 21, 2017 at 7:00 AM, Horia Geantă wrote: >> >> When checking the response verb, the valid bit should be masked out, >> since its value flips depending on what Response Register >> (RR0 /RR1) it's been read

[PATCH] bus: fsl-mc: dpio: fix alter FQ state command

2017-04-21 Thread Horia Geantă
When checking the response verb, the valid bit should be masked out, since its value flips depending on what Response Register (RR0 /RR1) it's been read from. Fixes: 321eecb06bfb ("bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2") Signed-off-by: Horia Geantă --- drivers/sta