Re: [linux-sunxi] [regression] fail to detect USB driver partition for OrangepiPC

2022-01-18 Thread Corentin Labbe
Le Mon, Jan 17, 2022 at 08:29:40PM -0800, zhang...@gmail.com a écrit : > > hi, All > > I use same kernel config for both 5.15.14 and 5.16.0, > > for 5.16.0, USB driver is detected, but failed to detect partition, > use strace fdisk -l /dev/sda , it blocked at open("/dev/sda") > > occasionally

[linux-sunxi] [PATCH] crypto: allwinner: add missing CRYPTO_ prefix

2021-03-29 Thread Corentin Labbe
Some CONFIG select miss CRYPTO_. Reported-by: Chen-Yu Tsai Fixes: 56f6d5aee88d1 ("crypto: sun8i-ce - support hash algorithms") Fixes: d9b45418a9177 ("crypto: sun8i-ss - support hash algorithms") Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 14 ++

[linux-sunxi] Re: set mtu size broken for dwmac-sun8i

2021-03-17 Thread Corentin Labbe
Le Wed, Mar 17, 2021 at 12:37:48PM +0100, Belisko Marek a écrit : > On Wed, Mar 17, 2021 at 12:33 PM Corentin Labbe > wrote: > > > > Le Wed, Mar 17, 2021 at 10:19:26AM +0100, Belisko Marek a écrit : > > > Hi, > > > > > > I'm hunting an issue w

[linux-sunxi] [PATCH] crypto: sun8i-ss: fix result memory leak on error path

2021-03-02 Thread Corentin Labbe
This patch fixes a memory leak on an error path. Fixes: d9b45418a917 ("crypto: sun8i-ss - support hash algorithms") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 2 +- 1 file changed, 1

[linux-sunxi] [PATCH] crypto: sun8i-ss: fix result memory leak on error path

2021-02-12 Thread Corentin Labbe
This patch fixes a memory leak on an error path. Fixes: d9b45418a917 ("crypto: sun8i-ss - support hash algorithms") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 2 +- 1 file changed, 1

[linux-sunxi] Fail to boot on bpim3 with next-20210128

2021-01-30 Thread Corentin Labbe
Hello next-20210128 cannot be booted on my bpim3. It start booting then freeze. [0.00] Linux version 5.11.0-rc5-03084-g7426957d237f (compile@Red) (armv7a-unknown-linux-gnueabihf-gcc (Gentoo 9.3.0-r2 p4) 9.3.0, GNU ld (Gentoo 2.34 p6) 2.34.0) #390 SMP Sat Jan 30 14:59:48 CET 2021 [

Re: [linux-sunxi] [PATCH v2] arm64: dts: allwinner: h6: PineH64 model B: Add wifi

2020-10-31 Thread Corentin Labbe
On Fri, Oct 30, 2020 at 06:25:30PM +0100, Jernej Skrabec wrote: > PineH64 model B contains RTL8723CS wifi+bt combo module. > > Since bluetooth support is not yet squared away, only wifi is enabled > for now. > > Acked-by: Chen-Yu Tsai > Signed-off-by: Jernej Skrabec > --- > Changes from v1: >

Re: [linux-sunxi] [PATCH 10/10] arm64: dts: allwinner: a64: bananapi-m64: Enable RGMII RX/TX delay on PHY

2020-10-24 Thread Corentin Labbe
{ > { > pinctrl-names = "default"; > pinctrl-0 = <_pins>; > - phy-mode = "rgmii"; > + phy-mode = "rgmii-id"; > phy-handle = <_rgmii_phy>; > phy-supply = <_dc1sw>; > status = "okay"; &

Re: [linux-sunxi] SATA on Banana Pi M2 Ultra (R40) broken

2020-09-22 Thread Corentin Labbe
On Mon, Sep 21, 2020 at 02:20:55PM +0200, Danny Milosavljevic wrote: > Hi, > > On Thu, 30 Jan 2020 07:01:15 +0100 > Corentin Labbe wrote: > > > My own bpi m2u is working fine on 5.5.0-rc2-next-20191220+ (doing luks on > > the sata drive). > > I will test some s

[linux-sunxi] [PATCH v3] dt-bindings: crypto: Specify that allwinner,sun8i-a33-crypto needs reset

2020-09-07 Thread Corentin Labbe
When adding allwinner,sun8i-a33-crypto, I forgot to add that it needs reset. Furthermore, there are no need to use items to list only one compatible in compatible list. Fixes: f81547ba7a98 ("dt-bindings: crypto: add new compatible for A33 SS") Signed-off-by: Corentin Labbe --- Chang

Re: [linux-sunxi] Re: [PATCH v6 18/18] crypto: sun8i-ce: fix some style issue

2020-09-07 Thread Corentin Labbe
On Fri, Sep 04, 2020 at 12:37:19PM -0700, Joe Perches wrote: > On Fri, 2020-09-04 at 11:10 +0000, Corentin Labbe wrote: > > This patch fix a double empty line issue reported by checkpatch. > > While at it, since now the maximum line length is now 100, reorder some > > wrappe

[linux-sunxi] [PATCH v2] dt-bindings: crypto: Specify that allwinner,sun8i-a33-crypto needs reset

2020-09-03 Thread Corentin Labbe
When adding allwinner,sun8i-a33-crypto, I forgot to add that it needs reset. Furthermore, there are no need to use items to list only one compatible in compatible list. Fixes: f81547ba7a98 ("dt-bindings: crypto: add new compatible for A33 SS") Signed-off-by: Corentin Labbe --- Chang

[linux-sunxi] [PATCH] dt-bindings: crypto: Specify that allwinner,sun8i-a33-crypto needs reset

2020-09-02 Thread Corentin Labbe
When adding allwinner,sun8i-a33-crypto, I forgot to add that it needs reset. Furthermore, there are no need to use items to list only one compatible in compatible list. Fixes: f81547ba7a98 ("dt-bindings: crypto: add new compatible for A33 SS") Signed-off-by: Corentin Labbe --- ..

Re: [linux-sunxi] SATA on Banana Pi M2 Ultra (R40) broken

2020-01-29 Thread Corentin Labbe
On Wed, Jan 29, 2020 at 09:55:30PM +0100, Danny Milosavljevic wrote: > Hi, > > SATA seems to be broken on the mainline kernel for Banana Pi M2 Ultra > (with sunxi_defconfig). > > Bisecting, I get: > > 4.19.99: broken (no sata, no ethernet) > 5.2: broken (no working sata) > 5.3: broken (no

[linux-sunxi] Re: [PATCH 1/9] crypto: engine: workqueue can only be processed one by one

2020-01-28 Thread Corentin Labbe
On Tue, Jan 28, 2020 at 04:58:00PM +0100, Corentin Labbe wrote: > On Tue, Jan 28, 2020 at 03:50:14PM +, Horia Geanta wrote: > > On 1/22/2020 12:46 PM, Corentin Labbe wrote: > > > Some bykeshedding are unnecessary since a workqueue can only be executed > > > one b

[linux-sunxi] Re: [PATCH 1/9] crypto: engine: workqueue can only be processed one by one

2020-01-28 Thread Corentin Labbe
On Tue, Jan 28, 2020 at 03:50:14PM +, Horia Geanta wrote: > On 1/22/2020 12:46 PM, Corentin Labbe wrote: > > Some bykeshedding are unnecessary since a workqueue can only be executed > > one by one. > > This behaviour is documented in: > > - kernel/kthread.c: c

[linux-sunxi] Re: [PATCH 5/9] crypto: engine: add enqueue_request/can_do_more

2020-01-28 Thread Corentin Labbe
On Mon, Jan 27, 2020 at 10:58:36PM +, Iuliana Prodan wrote: > On 1/22/2020 12:45 PM, Corentin Labbe wrote: > > This patchs adds two new function wrapper in crypto_engine. > > - enqueue_request() for drivers enqueuing request to hardware. > > - can_queue_more() for le

[linux-sunxi] [PATCH 8/9] crypto: sun8i-ce: split into prepare/run/unprepare

2020-01-22 Thread Corentin Labbe
This patch split the do_one_request into three. Prepare will handle all DMA mapping and initialisation of the task structure. Unprepare will clean all DMA mapping. And the do_one_request will be limited to just excuting the task. Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i-ce

[linux-sunxi] [PATCH 9/9] crypto: sun8i-ce: permit to batch requests

2020-01-22 Thread Corentin Labbe
This patch permit to batch request. This imply: - linking two task via next - set interrupt flag just before running the batch in the last task. - storing all requests for finalizing them later Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i-ce-cipher.c | 60

[linux-sunxi] [PATCH 7/9] crypto: sun8i-ce: increase task list size

2020-01-22 Thread Corentin Labbe
The CE can handle more than 1 task at once, so this patch increase the size of the task list up to 8. For the moment I did not see more gain beyong this value. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 4 ++-- drivers/crypto/allwinner/sun8i-ce/sun8i

[linux-sunxi] [PATCH 0/9] crypto: engine: permit to handle multiple requests

2020-01-22 Thread Corentin Labbe
to handle more requests. The 5th patch introduce the new wrappers for handle multiple requests. Lasts patchs are for enabling batching in sun8i-ce. Regards Corentin Labbe (9): crypto: engine: workqueue can only be processed one by one crypto: engine: get rid of cur_req_prepared crypto: engine

[linux-sunxi] [PATCH 2/9] crypto: engine: get rid of cur_req_prepared

2020-01-22 Thread Corentin Labbe
-off-by: Corentin Labbe --- crypto/crypto_engine.c | 17 ++--- include/crypto/engine.h | 2 -- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c index feb0d82dd454..dfcb00e92e09 100644 --- a/crypto/crypto_engine.c +++ b

[linux-sunxi] [PATCH 6/9] crypto: sun8i-ce: move iv data to request context

2020-01-22 Thread Corentin Labbe
Instead of storing IV data in the channel context, store them in the request context. Storing them in the channel structure was conceptualy wrong since they are per request related. Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i-ce-cipher.c | 27 +-- drivers

[linux-sunxi] [PATCH 4/9] crypto: engine: permit to choose queue length

2020-01-22 Thread Corentin Labbe
This patch adds a new function which permit to choose the crypto engine queue length. Signed-off-by: Corentin Labbe --- crypto/crypto_engine.c | 23 --- include/crypto/engine.h | 2 ++ 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/crypto/crypto_engine.c b

[linux-sunxi] [PATCH 5/9] crypto: engine: add enqueue_request/can_do_more

2020-01-22 Thread Corentin Labbe
ne_request() is now optional. Signed-off-by: Corentin Labbe --- crypto/crypto_engine.c | 25 ++--- include/crypto/engine.h | 14 -- 2 files changed, 30 insertions(+), 9 deletions(-) diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c index 5bcb1e740fd9..4a

[linux-sunxi] [PATCH 1/9] crypto: engine: workqueue can only be processed one by one

2020-01-22 Thread Corentin Labbe
-by: Corentin Labbe --- crypto/crypto_engine.c | 13 - include/crypto/engine.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c index eb029ff1e05a..feb0d82dd454 100644 --- a/crypto/crypto_engine.c +++ b/crypto/crypto_engine.c @@ -73,16 +73,6

[linux-sunxi] [PATCH 3/9] crypto: engine: get rid of cur_req

2020-01-22 Thread Corentin Labbe
() is only used for cryptoengine and so the request finalized will be always the current request. Signed-off-by: Corentin Labbe --- crypto/crypto_engine.c | 25 ++--- include/crypto/engine.h | 2 -- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/crypto

[linux-sunxi] Re: [PATCH RFC 06/10] crypto: engine: introduce ct

2020-01-16 Thread Corentin Labbe
On Thu, Jan 16, 2020 at 11:34:19AM +, Iuliana Prodan wrote: > On 1/14/2020 4:00 PM, Corentin Labbe wrote: > > We will store the number of request in a batch in engine->ct. > > This patch adds all loop to unprepare all requests of a batch. > > > >

[linux-sunxi] Re: [PATCH RFC 00/10] crypto: engine: permit to batch requests

2020-01-16 Thread Corentin Labbe
On Thu, Jan 16, 2020 at 11:33:24AM +, Iuliana Prodan wrote: > On 1/14/2020 3:59 PM, Corentin Labbe wrote: > > Hello > > > > The sun8i-ce hardware can work on multiple requests in one batch. > > For this it use a task descriptor, and chain them. > > For th

[linux-sunxi] [PATCH RFC 10/10] crypto: sun8i-ce: use the new batch mechanism

2020-01-14 Thread Corentin Labbe
Now all infrastructure to batch request are in place, it is time to use it. Introduce some debug for it also. Signed-off-by: Corentin Labbe --- .../crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c| 14 -- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 9 ++--- drivers

[linux-sunxi] [PATCH RFC 09/10] crypto: engine: permit to batch requests

2020-01-14 Thread Corentin Labbe
Now everything is ready, this patch permits to choose the number of request to batch. Signed-off-by: Corentin Labbe --- crypto/crypto_engine.c | 32 +++- include/crypto/engine.h | 2 ++ 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/crypto

[linux-sunxi] [PATCH RFC 06/10] crypto: engine: introduce ct

2020-01-14 Thread Corentin Labbe
We will store the number of request in a batch in engine->ct. This patch adds all loop to unprepare all requests of a batch. Signed-off-by: Corentin Labbe --- crypto/crypto_engine.c | 30 ++ include/crypto/engine.h | 2 ++ 2 files changed, 20 insertions(+),

[linux-sunxi] [PATCH RFC 05/10] crypto: engine: transform cur_req in an array

2020-01-14 Thread Corentin Labbe
For having the ability of doing a batch of request in one do_one_request(), we should be able to store them in an array. (for unpreparing them later). This patch converts cur_req in an array of request, but for the moment hardcode the maximum to 1. Signed-off-by: Corentin Labbe --- crypto

[linux-sunxi] [PATCH RFC 04/10] crypto: sun8i-ce: introduce the slot number

2020-01-14 Thread Corentin Labbe
This patch adds the slot position, for choosing which task in the task list should be prepared/unprepared. The slot is for the moment is always 0 until the infrastructure will handle non 0 value. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 6

[linux-sunxi] [PATCH RFC 08/10] crypto: engine: add slot parameter

2020-01-14 Thread Corentin Labbe
prepare/unprepare functions should be able to know which slot in a batch should be used for preparing a request. Signed-off-by: Corentin Labbe --- crypto/crypto_engine.c | 4 ++-- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 6 ++ drivers/crypto/omap

[linux-sunxi] [PATCH RFC 07/10] crypto: sun8i-ce: handle slot > 0

2020-01-14 Thread Corentin Labbe
Handle the fact a slot could be different than 0. This imply: - linking two task via next - set interrupt flag just before running the batch in the last task. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 8 +++- drivers/crypto/allwinner/sun8i-ce

[linux-sunxi] [PATCH RFC 03/10] crypto: sun8i-ce: split into prepare/run/unprepare

2020-01-14 Thread Corentin Labbe
This patch split the do_one_request into three. Prepare will handle all DMA mapping and initialisation of the task structure. Unprepare will clean all DMA mapping. And the do_one_request will be limited to just excuting the task. Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i-ce

[linux-sunxi] [PATCH RFC 02/10] crypto: sun8i-ce: increase task list size

2020-01-14 Thread Corentin Labbe
The CE can handle more than 1 task at once, so this patch increase the size of the task list up to 8. For the moment I did not see more gain beyong this value. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 4 ++-- drivers/crypto/allwinner/sun8i-ce/sun8i

[linux-sunxi] [PATCH RFC 01/10] crypto: sun8i-ce: move iv data to request context

2020-01-14 Thread Corentin Labbe
Instead of storing IV data in the channel context, store them in the request context. Storing them in the channel structure was conceptualy wrong since they are per request related. Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i-ce-cipher.c | 27 +-- drivers

[linux-sunxi] [PATCH RFC 00/10] crypto: engine: permit to batch requests

2020-01-14 Thread Corentin Labbe
at the same time. For testing the serie, the selftest are not enough, since it issue request one at a time. I have used LUKS for testing it. Please give me what you think about this serie, specially maintainers which have hardware with the same kind of capability. Regards Corentin Labbe (10

[linux-sunxi] ata: sunxi: Regression due to 5253fe05bb47 ("phy: core: Add consumer device link support")

2020-01-09 Thread Corentin Labbe
Hello On next-20200108 (at least), the sunxi_ahci fail to probe with: 3.025955] 8<--- cut here --- [3.029012] Unable to handle kernel NULL pointer dereference at virtual address 0071 [3.037115] pgd = (ptrval) [3.039819] [0071] *pgd= [3.043408] Internal error:

[linux-sunxi] [PATCH] crypto: sun8i-ce: remove dead code

2020-01-06 Thread Corentin Labbe
Some code were left in the final driver but without any use. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 5 - drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h| 8 2 files changed, 13 deletions(-) diff --git a/drivers/crypto/allwinner

[linux-sunxi] [PATCH] crypto: sun8i-ce: fix removal of module

2020-01-06 Thread Corentin Labbe
Removing the driver cause an oops due to the fact we clean an extra channel. Let's give the right index to the cleaning function. Fixes: 06f751b61329 ("crypto: allwinner - Add sun8i-ce Crypto Engine") Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce-

[linux-sunxi] [PATCH] crypto: sun8i-ss: fix removal of module

2020-01-06 Thread Corentin Labbe
Removing the driver cause an oops due to the fact we clean an extra channel. Let's give the right index to the cleaning function. Fixes: f08fcced6d00 ("crypto: allwinner - Add sun8i-ss cryptographic offloader") Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ss/sun8i

[linux-sunxi] [PATCH v2 3/3] crypto: sun4i-ss: add the A33 variant of SS

2019-11-20 Thread Corentin Labbe
The A33 SS has a difference with all other SS, it give SHA1 digest directly in BE. So this patch adds variant support in sun4i-ss. Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Signed-off-by: Corentin Labbe --- .../crypto/allwinner/sun4

[linux-sunxi] [PATCH v2 0/3] crypto: sun4i-ss: fix SHA1 on A33 SecuritySystem

2019-11-20 Thread Corentin Labbe
. Changes since v1: - removed compatible fallback Corentin Labbe (3): dt-bindings: crypto: add new compatible for A33 SS ARM: dts: sun8i: a33: add the new SS compatible crypto: sun4i-ss: add the A33 variant of SS .../crypto/allwinner,sun4i-a10-crypto.yaml| 2 ++ arch/arm/boot/dts

[linux-sunxi] [PATCH v2 1/3] dt-bindings: crypto: add new compatible for A33 SS

2019-11-20 Thread Corentin Labbe
The A33 SS has a difference with all other SS, it give SHA1 digest directly in BE. This difference need to be handlded by the driver and so need a new compatible. Signed-off-by: Corentin Labbe --- .../devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 2 ++ 1 file changed, 2

[linux-sunxi] [PATCH v2 2/3] ARM: dts: sun8i: a33: add the new SS compatible

2019-11-20 Thread Corentin Labbe
Add the new A33 SS compatible to the crypto node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a33.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi index 1532a0e59af4..a2c37adacf77 100644

[linux-sunxi] Re: [PATCH 2/3] ARM: dts: sun8i: a33: add the new SecuritySystem compatible

2019-11-18 Thread Corentin Labbe
On Mon, Nov 18, 2019 at 12:11:43PM +0100, Maxime Ripard wrote: > Hi, > > On Thu, Nov 14, 2019 at 03:48:11PM +0100, Corentin Labbe wrote: > > Add the new A33 SecuritySystem compatible to the crypto node. > > > > Signed-off-by: Corentin Labbe > > --- > >

[linux-sunxi] Re: [PATCH 2/2] crypto: sun4i-ss: remove dependency on not 64BIT

2019-11-18 Thread Corentin Labbe
if your patch is applied to the wrong git tree, please drop us a note to help > improve the system. BTW, we also suggest to use '--base' option to specify the > base tree in git format-patch, please see > https://stackoverflow.com/a/37406982] > > url: > https://github.com/0day-ci/li

[linux-sunxi] [PATCH] crypto: allwinner: sun8i-ce: enable working on big endian

2019-11-17 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i-ce-cipher.c | 50 +++ drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 24 - 2 files changed, 40 insertions(+), 34 deletions(-) diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c b/drivers/crypto

[linux-sunxi] [PATCH 3/3] crypto: sun4i-ss: add the A33 variant of SecuritySystem

2019-11-14 Thread Corentin Labbe
The A33 SecuritySystem has a difference with all other SS, it give SHA1 digest directly in BE. So this patch adds variant support in sun4i-ss. Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Signed-off-by: Corentin Labbe --- .../crypto

[linux-sunxi] [PATCH 1/3] dt-bindings: crypto: add new compatible for A33 SecuritySystem

2019-11-14 Thread Corentin Labbe
The A33 SecuritySystem has a difference with all other SS, it give SHA1 digest directly in BE. This difference need to be handlded by the driver and so need a new compatible. Signed-off-by: Corentin Labbe --- .../devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml | 3 +++ 1 file changed

[linux-sunxi] [PATCH 2/3] ARM: dts: sun8i: a33: add the new SecuritySystem compatible

2019-11-14 Thread Corentin Labbe
Add the new A33 SecuritySystem compatible to the crypto node. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a33.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi index 1532a0e59af4

[linux-sunxi] [PATCH 0/3] crypto: sun4i-ss: fix SHA1 on A33 SecuritySystem

2019-11-14 Thread Corentin Labbe
. Corentin Labbe (3): dt-bindings: crypto: add new compatible for A33 SS ARM: dts: sun8i: a33: add the new SS compatible crypto: sun4i-ss: add the A33 variant of SS .../crypto/allwinner,sun4i-a10-crypto.yaml| 3 +++ arch/arm/boot/dts/sun8i-a33.dtsi | 3 ++- .../crypto

[linux-sunxi] [PATCH] crypto: sun4i-ss: fix big endian issues

2019-11-14 Thread Corentin Labbe
When testing BigEndian kernel, the sun4i-ss was failling all crypto tests. This patch fix endian issues with it. Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Signed-off-by: Corentin Labbe --- .../crypto/allwinner/sun4i-ss/sun4i-ss-h

[linux-sunxi] [PATCH] crypto: sun4i-ss: hide the Invalid keylen message

2019-11-14 Thread Corentin Labbe
Drop the "Invalid keylen" message to debug level, it adds no value, and when CRYPTO_EXTRA_TEST is enabled, it floods the console. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH] crypto: sun4i-ss: use crypto_ahash_digestsize

2019-11-14 Thread Corentin Labbe
The size of the digest is different between MD5 and SHA1 so instead of using the higher value (5 words), let's use crypto_ahash_digestsize(). Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[linux-sunxi] [PATCH 2/2] crypto: sun4i-ss: remove dependency on not 64BIT

2019-11-14 Thread Corentin Labbe
The driver now compile without warnings on 64bits, we can remove the !64BIT condition. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/allwinner/Kconfig b/drivers/crypto/allwinner/Kconfig index

[linux-sunxi] [PATCH 1/2] crypto: sun4i-ss: Fix 64-bit size_t warnings on sun4i-ss-hash.c

2019-11-14 Thread Corentin Labbe
If you try to compile this driver on a 64-bit platform then you will get warnings because it mixes size_t with unsigned int which only works on 32-bit. This patch fixes all of the warnings on sun4i-ss-hash.c. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c

[linux-sunxi] [PATCH v3 4/4] ARM: dts: sun9i: a80: Add Security System node

2019-10-25 Thread Corentin Labbe
The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG/RSA algorithms. It could be found on Allwinner SoC A80 and A83T This patch adds it on the Allwinner A80 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun9i-a80.dtsi | 9

[linux-sunxi] [PATCH v3 3/4] ARM: dts: sun8i: a83t: Add Security System node

2019-10-25 Thread Corentin Labbe
The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG/RSA algorithms. It could be found on Allwinner SoC A80 and A83T This patch adds it on the Allwinner A83T SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a83t.dtsi | 9

[linux-sunxi] [PATCH v3 1/4] crypto: Add Allwinner sun8i-ss cryptographic offloader

2019-10-25 Thread Corentin Labbe
The Security System is an hardware cryptographic offloader present on Allwinner SoCs A80 and A83T. It is different from the previous sun4i-ss. This driver supports AES cipher in CBC and ECB mode. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig

[linux-sunxi] [PATCH v3 2/4] dt-bindings: crypto: Add DT bindings documentation for sun8i-ss Security System

2019-10-25 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings of the Security System cryptographic offloader driver. Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ss.yaml | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree

[linux-sunxi] [PATCH v3 0/4] crypto: add sun8i-ss driver for Allwinner Security System

2019-10-25 Thread Corentin Labbe
8i-ce driver for Allwinner crypto engine" serie. Regards Changes since v2: - Made the reset mandatory - Removed reset-names Changes since v1: - fixed uninitialized err in sun8i_ss_allocate_chanlist - Added missing commit description on DT Documentation patch Corentin Labbe (4): crypto: Add

[linux-sunxi] Re: [PATCH v2 2/4] dt-bindings: crypto: Add DT bindings documentation for sun8i-ss Security System

2019-10-24 Thread Corentin Labbe
On Thu, Oct 24, 2019 at 08:50:05AM +0200, Maxime Ripard wrote: > Hi, > > On Wed, Oct 23, 2019 at 10:10:14PM +0200, Corentin Labbe wrote: > > This patch adds documentation for Device-Tree bindings of the > > Security System cryptographic offloader driver. > > > &

[linux-sunxi] [PATCH v2 4/4] ARM: dts: sun9i: a80: Add Security System node

2019-10-23 Thread Corentin Labbe
This patchs the node for sun8i-ss which is availlable on the A80. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun9i-a80.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi index b9b6fb00be28

[linux-sunxi] [PATCH v2 3/4] ARM: dts: sun8i: a83t: Add Security System node

2019-10-23 Thread Corentin Labbe
The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG/RSA algorithms. It could be found on Allwinner SoC A80 and A83T This patch add it on the Allwinner A83T SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10

[linux-sunxi] [PATCH v2 1/4] crypto: Add Allwinner sun8i-ss cryptographic offloader

2019-10-23 Thread Corentin Labbe
The Security System is an hardware cryptographic offloader present on Allwinner SoCs A80 and A83T. It is different from the previous sun4i-ss. This driver supports AES cipher in CBC and ECB mode. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig

[linux-sunxi] [PATCH v2 0/4] crypto: add sun8i-ss driver for Allwinner Security System

2019-10-23 Thread Corentin Labbe
8i-ce driver for Allwinner crypto engine" serie. Regards Changes since v1: - fixed uninitialized err in sun8i_ss_allocate_chanlist - Added missing commit description on DT Documentation patch Corentin Labbe (4): crypto: Add Allwinner sun8i-ss cryptographic offloader dt-bindings: crypto: Add D

[linux-sunxi] [PATCH v2 2/4] dt-bindings: crypto: Add DT bindings documentation for sun8i-ss Security System

2019-10-23 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings of the Security System cryptographic offloader driver. Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ss.yaml | 64 +++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree

[linux-sunxi] [PATCH v6 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-23 Thread Corentin Labbe
The Crypto Engine is an hardware cryptographic offloader present on all recent Allwinner SoCs H2+, H3, R40, A64, H5, H6 This driver supports AES cipher in CBC/ECB mode. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 27 + drivers

[linux-sunxi] [PATCH v6 07/11] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5

2019-10-23 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H5 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 9

[linux-sunxi] [PATCH v6 09/11] sunxi_defconfig: add new Allwinner crypto options

2019-10-23 Thread Corentin Labbe
This patch adds the new Allwinner crypto configs to sunxi_defconfig Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index df433abfcb02..d0ab8ba7710a

[linux-sunxi] [PATCH v6 00/11] crypto: add sun8i-ce driver for Allwinner crypto engine

2019-10-23 Thread Corentin Labbe
sary interrupt_names in A64 DT - Added arm64 defconfig - Added support for PM functions - Splitted probe functions - Reworked clock settings - made reset mandatory Corentin Labbe (11): crypto: Add allwinner subdirectory crypto: Add Allwinner sun8i-ce Crypto Engine dt-bindings: crypto: Add DT bindi

[linux-sunxi] [PATCH v6 11/11] crypto: sun4i-ss: Move to Allwinner directory

2019-10-23 Thread Corentin Labbe
Since we have a dedicated Allwinner directory for crypto driver, move the sun4i-ss driver in it. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 - drivers/crypto/Kconfig| 26 -- drivers

[linux-sunxi] [PATCH v6 10/11] arm64: defconfig: add new Allwinner crypto options

2019-10-23 Thread Corentin Labbe
This patch adds the new allwinner crypto configs to ARM64 defconfig Signed-off-by: Corentin Labbe --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c9adae41bac0..c45fb6822e4a 100644 --- a/arch

[linux-sunxi] [PATCH v6 08/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6

2019-10-23 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. This patch enables the Crypto Engine on the Allwinner H6 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 9 + 1 file changed, 9 insertions(+) diff

[linux-sunxi] [PATCH v6 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-23 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 9 + 1 file

[linux-sunxi] [PATCH v6 01/11] crypto: Add allwinner subdirectory

2019-10-23 Thread Corentin Labbe
Since a second Allwinner crypto driver will be added, it is better to create a dedicated subdirectory. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ++ drivers/crypto/Kconfig | 2 ++ drivers/crypto/Makefile | 1 + drivers

[linux-sunxi] [PATCH v6 04/11] ARM: dts: sun8i: R40: add crypto engine node

2019-10-23 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic offloader that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner R40 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40.dtsi | 9 + 1 file

[linux-sunxi] [PATCH v6 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-10-23 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings for the Crypto Engine cryptographic accelerator driver. Reviewed-by: Rob Herring Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ce.yaml | 88 +++ 1 file changed, 88 insertions(+) create mode 100644

[linux-sunxi] [PATCH v6 06/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64

2019-10-23 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner A64 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9

[linux-sunxi] Re: [PATCH v4 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-22 Thread Corentin Labbe
On Tue, Oct 22, 2019 at 12:23:12PM +0300, Dan Carpenter wrote: > Hi Corentin, > > url: > https://github.com/0day-ci/linux/commits/Corentin-Labbe/crypto-add-sun8i-ce-driver-for-Allwinner-crypto-engine/20191014-104401 > base: > https://git.kernel.org/pub/scm/linux/

[linux-sunxi] [PATCH v5 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-10-16 Thread Corentin Labbe
This patch adds documentation for Device-Tree bindings for the Crypto Engine cryptographic accelerator driver. Reviewed-by: Rob Herring Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ce.yaml | 88 +++ 1 file changed, 88 insertions(+) create mode 100644

[linux-sunxi] [PATCH v5 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-16 Thread Corentin Labbe
The Crypto Engine is an hardware cryptographic offloader present on all recent Allwinner SoCs H2+, H3, R40, A64, H5, H6 This driver supports AES cipher in CBC/ECB mode. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 27 + drivers

[linux-sunxi] [PATCH v5 01/11] crypto: Add allwinner subdirectory

2019-10-16 Thread Corentin Labbe
Since a second Allwinner crypto driver will be added, it is better to create a dedicated subdirectory. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 ++ drivers/crypto/Kconfig | 2 ++ drivers/crypto/Makefile | 1 + drivers

[linux-sunxi] [PATCH v5 09/11] sunxi_defconfig: add new Allwinner crypto options

2019-10-16 Thread Corentin Labbe
This patch adds the new Allwinner crypto configs to sunxi_defconfig Signed-off-by: Corentin Labbe --- arch/arm/configs/sunxi_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index df433abfcb02..d0ab8ba7710a

[linux-sunxi] [PATCH v5 00/11] crypto: add sun8i-ce driver for Allwinner crypto engine

2019-10-16 Thread Corentin Labbe
ettings - made reset mandatory Corentin Labbe (11): crypto: Add allwinner subdirectory crypto: Add Allwinner sun8i-ce Crypto Engine dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine ARM: dts: sun8i: R40: add crypto engine node ARM: dts: sun8i: H3: Add C

[linux-sunxi] [PATCH v5 11/11] crypto: sun4i-ss: Move to Allwinner directory

2019-10-16 Thread Corentin Labbe
Since we have a dedicated Allwinner directory for crypto driver, move the sun4i-ss driver in it. Acked-by: Maxime Ripard Signed-off-by: Corentin Labbe --- MAINTAINERS | 6 - drivers/crypto/Kconfig| 26 -- drivers

[linux-sunxi] [PATCH v5 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-16 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H3 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-h3.dtsi | 9 + 1 file

[linux-sunxi] [PATCH v5 08/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on H6

2019-10-16 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. This patch enables the Crypto Engine on the Allwinner H6 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 9 + 1 file changed, 9 insertions(+) diff

[linux-sunxi] [PATCH v5 06/11] ARM64: dts: allwinner: sun50i: Add Crypto Engine node on A64

2019-10-16 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner A64 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 9

[linux-sunxi] [PATCH v5 10/11] arm64: defconfig: add new Allwinner crypto options

2019-10-16 Thread Corentin Labbe
This patch adds the new allwinner crypto configs to ARM64 defconfig Signed-off-by: Corentin Labbe --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index c9adae41bac0..c45fb6822e4a 100644 --- a/arch

[linux-sunxi] [PATCH v5 04/11] ARM: dts: sun8i: R40: add crypto engine node

2019-10-16 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic offloader that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner R40 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40.dtsi | 9 + 1 file

[linux-sunxi] [PATCH v5 07/11] ARM64: dts: allwinner: sun50i: Add crypto engine node on H5

2019-10-16 Thread Corentin Labbe
The Crypto Engine is a hardware cryptographic accelerator that supports many algorithms. It could be found on most Allwinner SoCs. This patch enables the Crypto Engine on the Allwinner H5 SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 9

[linux-sunxi] [PATCH 3/4] ARM: dts: sun8i: a83t: Add Security System node

2019-10-16 Thread Corentin Labbe
The Security System is a hardware cryptographic accelerator that support AES/MD5/SHA1/DES/3DES/PRNG/RSA algorithms. It could be found on Allwinner SoC A80 and A83T This patch add it on the Allwinner A83T SoC Device-tree. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-a83t.dtsi | 10

[linux-sunxi] [PATCH 2/4] dt-bindings: crypto: Add DT bindings documentation for sun8i-ss Security System

2019-10-16 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- .../bindings/crypto/allwinner,sun8i-ss.yaml | 64 +++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/allwinner,sun8i-ss.yaml diff --git a/Documentation/devicetree/bindings/crypto/allwinner,sun8i

[linux-sunxi] [PATCH 1/4] crypto: Add Allwinner sun8i-ss cryptographic offloader

2019-10-16 Thread Corentin Labbe
The Security System is an hardware cryptographic offloader present on Allwinner SoCs A80 and A83T. It is different from the previous sun4i-ss. This driver supports AES cipher in CBC and ECB mode. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 28 + drivers

[linux-sunxi] [PATCH 4/4] ARM: dts: sun9i: a80: Add Security System node

2019-10-16 Thread Corentin Labbe
This patchs the node for sun8i-ss which is availlable on the A80. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun9i-a80.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun9i-a80.dtsi b/arch/arm/boot/dts/sun9i-a80.dtsi index b9b6fb00be28

  1   2   3   4   5   >