[PATCH v3 08/14] crypto: sun8i-ce: split into prepare/run/unprepare

2020-06-21 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 executing the task. Signed-off-by: Corentin Labbe --- .../allwinner/sun8i-ce/sun8i

[PATCH v3 12/14] crypto: sun8i-ce: Add stat_bytes debugfs

2020-06-21 Thread Corentin Labbe
This patch adds a new stat_bytes counter in the sun8i-ce debugfs. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h b/drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h

[PATCH v3 13/14] crypto: sun8i-ce: Add support for the PRNG

2020-06-21 Thread Corentin Labbe
This patch had support for the PRNG present in the CE. The output was tested with rngtest without any failure. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 8 + drivers/crypto/allwinner/sun8i-ce/Makefile| 1 + .../crypto/allwinner/sun8i-ce/sun8i-ce

[PATCH v3 14/14] crypto: sun8i-ce: Add support for the TRNG

2020-06-21 Thread Corentin Labbe
-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 8 ++ drivers/crypto/allwinner/sun8i-ce/Makefile| 1 + .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 18 +++ .../crypto/allwinner/sun8i-ce/sun8i-ce-trng.c | 124 ++ drivers/crypto/allwinner/sun8i-ce

[PATCH] net: cadence: macb: disable NAPI on error

2020-06-10 Thread Corentin Labbe
nabled if macb_phylink_connect() fail. Fixes: 7897b071ac3b ("net: macb: convert to phylink") Signed-off-by: Corentin Labbe --- drivers/net/ethernet/cadence/macb_main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/

[PATCH] sparc: piggyback: handle invalid image

2020-06-10 Thread Corentin Labbe
With an old elftoaout, the generation of tftpboot.img fail with "lseek: invalid argument". This is due to offset being negative. Instead of printing this error message, let's print a better one. Signed-off-by: Corentin Labbe --- arch/sparc/boot/piggyback.c | 4 1 file

Re: Fail to build tftpboot.img

2020-06-09 Thread Corentin Labbe
On Fri, Jun 05, 2020 at 01:05:35PM +0200, Corentin Labbe wrote: > Hello > > For reinstalling an old SPARC machine , I need a netboot image. > I tried to create it via make tftpboot.img but got: > BUILD: sparc to /home/compile/crossbuild/next/sparc/sparc64/defconfig > make[1]:

Fail to build tftpboot.img

2020-06-05 Thread Corentin Labbe
Hello For reinstalling an old SPARC machine , I need a netboot image. I tried to create it via make tftpboot.img but got: BUILD: sparc to /home/compile/crossbuild/next/sparc/sparc64/defconfig make[1]: Entering directory '/usr/src/crossbuild/next/sparc/sparc64/defconfig' GEN Makefile

kexec: arm: possible overwrite of initrd

2020-05-15 Thread Corentin Labbe
Hello Following https://lkml.org/lkml/2020/4/6/96 I was able to boot my Cubieboard4 via kexec reliabily. But now I have started to use kernelCI builds, I got problems. All sunxi_defconfig kernel works but not multi_v7_defconfig which got: [1.896540] Trying to unpack rootfs image as

Re: [PATCH] net: ethernet: dwmac-sun8i: show message only when switching to promisc

2019-10-18 Thread Corentin Labbe
On Fri, Oct 18, 2019 at 03:05:14PM +0100, Mans Rullgard wrote: > Printing the info message every time more than the max number of mac > addresses are requested generates unnecessary log spam. Showing it only > when the hw is not already in promiscous mode is equally informative > without being

[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

[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

[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

[PATCH v3 09/11] sunxi_defconfig: add new Allwinner crypto options

2019-10-10 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

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

2019-10-10 Thread Corentin Labbe
rt 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 bindings documentation for sun8i-ce Crypto Engine ARM: dts: sun8

[PATCH v3 01/11] crypto: Add allwinner subdirectory

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

Re: [PATCH v2 03/11] dt-bindings: crypto: Add DT bindings documentation for sun8i-ce Crypto Engine

2019-10-04 Thread Corentin Labbe
On Wed, Oct 02, 2019 at 07:54:58AM +0200, Maxime Ripard wrote: > On Tue, Oct 01, 2019 at 08:41:33PM +0200, Corentin Labbe wrote: > > This patch adds documentation for Device-Tree bindings for the > > Crypto Engine cryptographic accelerator driver. > > > > Si

[PATCH v2 05/11] ARM: dts: sun8i: H3: Add Crypto Engine node

2019-10-01 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 | 11 +++ 1

[PATCH v2 11/11] crypto: sun4i-ss: Move to Allwinner directory

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

[PATCH v2 02/11] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-10-01 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. Signed-off-by: Corentin Labbe --- drivers/crypto/allwinner/Kconfig | 27 + drivers/crypto/allwinner/Makefile

[PATCH v3 2/2] crypto: sun4i-ss: enable pm_runtime

2019-09-24 Thread Corentin Labbe
This patch enables power management on the Security System. sun4i-ss now depends on PM because it simplify code and prevent some ifdef. But this is not a problem since arch maintainer want ARCH_SUNXI to depend on PM in the future. Signed-off-by: Corentin Labbe --- drivers/crypto/Kconfig

Re: bringing back media/zoran driver

2019-09-23 Thread Corentin Labbe
On Mon, Sep 23, 2019 at 10:05:09AM +0200, Hans Verkuil wrote: > On 9/21/19 7:03 PM, Corentin Labbe wrote: > > hello > > > > I am the owner of a zoran based DC10+ card. > > I am in the need of using it since yesterday and I found that its driver > > was removed

Re: [PATCH v2 2/2] crypto: sun4i-ss: enable pm_runtime

2019-09-23 Thread Corentin Labbe
On Thu, Sep 19, 2019 at 06:55:59PM +0200, Maxime Ripard wrote: > Hi, > > On Thu, Sep 19, 2019 at 07:10:35AM +0200, Corentin Labbe wrote: > > This patch enables power management on the Security System. > > > > Signed-off-by: Corentin Labbe > > --- > > dr

bringing back media/zoran driver

2019-09-21 Thread Corentin Labbe
hello I am the owner of a zoran based DC10+ card. I am in the need of using it since yesterday and I found that its driver was removed. Reverting the removing patch made to a temporary working situation. If I understand correctly, it was removed due to lack of vb2 convertion. If I am able to

Re: [PATCH 2/9] crypto: Add Allwinner sun8i-ce Crypto Engine

2019-09-09 Thread Corentin Labbe
On Mon, Sep 09, 2019 at 01:38:37PM +0200, Maxime Ripard wrote: > On Sat, Sep 07, 2019 at 09:04:08PM +0200, Corentin Labbe wrote: > > > Also, I'm not sure what is the point of having the clocks names be > > > parameters there as well. It's constant across all the compatibles,

Re: [PATCH V2 4/4] crypto: Add Xilinx AES driver

2019-09-06 Thread Corentin Labbe
On Wed, Sep 04, 2019 at 05:40:22PM +, Kalyani Akula wrote: > Hi Corentin, > > Thanks for the review comments. > Please find my response/queries inline. > > > -Original Message----- > > From: Corentin Labbe > > Sent: Monday, September 2, 2019 12:29 PM &g

Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-16 Thread Corentin Labbe
On Fri, Aug 16, 2019 at 03:52:06PM +0200, Maxime Ripard wrote: > On Fri, Aug 16, 2019 at 01:57:50PM +0200, Corentin Labbe wrote: > > On Fri, Aug 16, 2019 at 01:36:50PM +0200, Maxime Ripard wrote: > > > On Fri, Aug 16, 2019 at 11:35:13AM +0200, Corentin Labbe wrote: > >

Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-16 Thread Corentin Labbe
On Fri, Aug 16, 2019 at 01:36:50PM +0200, Maxime Ripard wrote: > On Fri, Aug 16, 2019 at 11:35:13AM +0200, Corentin Labbe wrote: > > On Wed, Aug 14, 2019 at 03:33:22PM +0200, Maxime Ripard wrote: > > > On Wed, Aug 14, 2019 at 03:17:41PM +0200, Corentin Labbe wrote: > >

Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-16 Thread Corentin Labbe
On Wed, Aug 14, 2019 at 03:33:22PM +0200, Maxime Ripard wrote: > On Wed, Aug 14, 2019 at 03:17:41PM +0200, Corentin Labbe wrote: > > On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard wrote: > > > On Thu, Aug 08, 2019 at 10:42:53AM +0200, Corentin Labbe wrote: >

Re: [linux-sunxi] [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Corentin Labbe
On Mon, Aug 12, 2019 at 12:56:56PM +0200, Jernej Škrabec wrote: > Dne četrtek, 08. avgust 2019 ob 10:42:53 CEST je Corentin Labbe napisal(a): > > This patch adds the evaluation variant of the model A of the PineH64. > > The model A has the same size of the pine64 and

Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Corentin Labbe
On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard wrote: > On Thu, Aug 08, 2019 at 10:42:53AM +0200, Corentin Labbe wrote: > > This patch adds the evaluation variant of the model A of the PineH64. > > The model A has the same size of the pine64 and has a PCIE slot. &

Re: [linux-sunxi] [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-14 Thread Corentin Labbe
On Thu, Aug 08, 2019 at 04:50:35PM +0200, Clément Péron wrote: > Hi, > > On Thu, 8 Aug 2019 at 10:42, Corentin Labbe wrote: > > > > This patch adds the evaluation variant of the model A of the PineH64. > > The model A has the same size of the pine64 and has a

[PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-08 Thread Corentin Labbe
This patch adds the evaluation variant of the model A of the PineH64. The model A has the same size of the pine64 and has a PCIE slot. The only devicetree difference with current pineH64, is the PHY regulator. Signed-off-by: Corentin Labbe --- arch/arm64/boot/dts/allwinner/Makefile| 1

How to add multiple example with conflicting includes

2019-07-26 Thread Corentin Labbe
Hello When I try to check the following examples of a devicetree schema: examples: - | #include #include

Re: [BUG] net: dm9600: false link status

2019-07-01 Thread Corentin Labbe
On Thu, Jun 27, 2019 at 04:43:39PM +0200, Andrew Lunn wrote: > On Thu, Jun 27, 2019 at 03:21:37PM +0200, Corentin Labbe wrote: > > Hello > > > > I own an USB dongle which is a "Davicom DM96xx USB 10/100 Ethernet". > > According to the CHIP_ID, it is a DM9620.

[BUG] net: dm9600: false link status

2019-06-27 Thread Corentin Labbe
Hello I own an USB dongle which is a "Davicom DM96xx USB 10/100 Ethernet". According to the CHIP_ID, it is a DM9620. Since I needed for bringing network to uboot for a board, I have started to create its uboot's driver. My uboot driver is based on the dm9600 Linux driver. The dongle was

Re: [PATCH net-next] net: stmmac: Fix wrapper drivers not detecting PHY

2019-06-14 Thread Corentin Labbe
HY handle while these wrapper drivers are > not fully converted to PHYLINK. > > Reported-by: Corentin Labbe > Fixes: 74371272f97f ("net: stmmac: Convert to phylink and remove phylib > logic") > Signed-off-by: Jose Abreu > Cc: Joao Pinto > Cc: David S. Miller > Cc:

Re: [PATCH net-next 0/3] net: stmmac: Convert to phylink

2019-06-14 Thread Corentin Labbe
On Tue, Jun 11, 2019 at 05:18:44PM +0200, Jose Abreu wrote: > [ Hope this diff looks better (generated with --minimal) ] > > This converts stmmac to use phylink. Besides the code redution this will > allow to gain more flexibility. > > Cc: Joao Pinto > Cc: David S. Miller > Cc: Giuseppe

Re: Running linux on qemu omap

2019-05-22 Thread Corentin Labbe
On Wed, May 22, 2019 at 02:23:23AM +0300, Aaro Koskinen wrote: > Hi, > > On Mon, May 20, 2019 at 09:05:33PM +0200, Corentin Labbe wrote: > > Hello > > > > I am working on adding a maximum set of qemu machine on kernelCI. > > That's cool. > > > For OM

Re: [RESEND PATCH] gnss: get serial speed from subdrivers

2019-05-08 Thread Corentin Labbe
On Wed, May 08, 2019 at 03:39:48PM +0200, Loys Ollivier wrote: > The default serial speed was hardcoded in the code. > Rename current-speed to default-speed. > Add a function parameter that lets the subdrivers specify their > default speed. > If not specified fallback to the device-tree

Re: [PATCH 0/3] agp: Misc fix

2019-04-20 Thread Corentin Labbe
On Fri, Sep 01, 2017 at 02:13:29PM +0200, Corentin Labbe wrote: > Hello > > The first patch goal is to regroup all miscdevice number in the same place. > The two subsequent patch are build warning fix found when working on the > first. > > Corentin Labbe (3): >

Re: [PATCH RESEND] misc: mic: Remove linux/miscdevice.h include

2019-04-20 Thread Corentin Labbe
On Mon, Sep 18, 2017 at 06:52:52PM +0200, Corentin Labbe wrote: > linux/miscdevice.h include was added in commit 1da2b3eeef36 ("misc: mic: > Remove COSM functionality from the MIC host driver") > along with a struct miscdevice miscdev in struct mic_device. > but the followi

Re: [PATCH] ia64: agp: Replace empty define with do while

2019-04-20 Thread Corentin Labbe
On Wed, Dec 20, 2017 at 08:16:13PM +0100, Corentin Labbe wrote: > It's dangerous to use empty code define. > Furthermore it lead to the following warning: > drivers/char/agp/generic.c: In function « agp_generic_destroy_page »: > drivers/char/agp/generic.c:1266:28: attention : suggest b

[PATCH 4/4] crypto: sun4i-ss: fallback when length is not multiple of blocksize

2019-04-18 Thread Corentin Labbe
sun4i-ss does not handle requests when length are not a multiple of blocksize. This patch adds a fallback for that case. Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator") Signed-off-by: Corentin Labbe --- drivers/crypto/sunxi-ss/sun4i-ss-cip

Re: [PATCH v2 0/2] Fix Arm system PMU hotplug issues

2019-04-04 Thread Corentin Labbe
phy (2): > perf/arm-cci: Remove broken race mitigation > perf/arm-ccn: Remove broken race mitigation > > drivers/perf/arm-cci.c | 16 +++- > drivers/perf/arm-ccn.c | 23 +++ > 2 files changed, 18 insertions(+), 21 deletions(-) > > -- >

Re: [linux-sunxi] [PATCH v2 00/10] Allwinner sunxi message box support

2019-02-28 Thread Corentin Labbe
On Thu, Feb 28, 2019 at 11:29:37PM -0600, Samuel Holland wrote: > This series adds support for the "hardware message box" in sun8i, sun9i, > and sun50i SoCs, used for communication with the ARISC management > processor (the platform's equivalent of the ARM SCP). The end goal is to > use the

[PATCH resend] arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM

2019-02-25 Thread Corentin Labbe
We have now a HSDK device in our kernelci lab, but kernel builded via the hsdk_defconfig lacks ramfs supports, so it cannot boot kernelci jobs yet. So this patch enable CONFIG_BLK_DEV_RAM in hsdk_defconfig. Signed-off-by: Corentin Labbe --- arch/arc/configs/hsdk_defconfig | 1 + 1 file changed

[PATCH RFC 1/1] x86: adds additional CPU options

2019-02-21 Thread Corentin Labbe
/i5/i7 (Haswell) * Intel 5th Gen Core i3/i5/i7 (Broadwell) * Intel 6th Gen Core i3/i5/i7 (Skylake) * Intel 6th Gen Core i7/i9 (Skylake X) * Intel 8th Gen Core i3/i5/i7 (Cannon Lake) * Intel 8th Gen Core i7/i9 (Ice Lake) Signed-off-by: John graysky Signed-off-by: Corentin Labbe --- arch/x86

[PATCH RFC 0/1] x86: adds additional CPU options

2019-02-21 Thread Corentin Labbe
Corentin Labbe (1): x86: adds additional CPU options arch/x86/Kconfig.cpu | 172 -- arch/x86/Makefile | 21 + arch/x86/Makefile_32.cpu | 21 + arch/x86/include/asm/module.h | 42 + 4 files changed, 250 insertions(+), 6

Re: [PATCH v4 4/4] gnss: add driver for mediatek receivers

2019-02-14 Thread Corentin Labbe
On Wed, Feb 13, 2019 at 04:09:29PM +0100, Loys Ollivier wrote: > Add driver for serial-connected Mediatek-based GNSS receivers. > > These devices typically boot transmitting vendor specific NMEA output > sequences. The serial port bit rate is read from the device tree > "current-speed". > > Note

Re: [PATCH 1/5] perf/arm-cci: Fix CPU hotplug race avoidance

2019-02-05 Thread Corentin Labbe
;model->name); > - return 0; > +out: > + cpus_read_unlock(); > + return ret; > } > > static int cci_pmu_remove(struct platform_device *pdev) > -- > 2.20.1.dirty Hello Thanks, this patch fix my issue that I has reported here: https://lkml.org/lkml/2017/12/29/139 https://lkml.org/lkml/2018/11/12/1901 Tested-by: Corentin Labbe Tested-on: sun8i-a83t-bananapi-m3 Regards

[PATCH 0/2] arc: hsdk_defconfig: permit kernelci jobs

2019-02-05 Thread Corentin Labbe
for hsdk_defconfig, it miss two CONFIGs for let hsdk boot. Thanks Regards Corentin Labbe (2): arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM arc: hsdk_defconfig: enable CONFIG_ARC_UBOOT_SUPPORT arch/arc/configs/hsdk_defconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.19.2

[PATCH 1/2] arc: hsdk_defconfig: Enable CONFIG_BLK_DEV_RAM

2019-02-05 Thread Corentin Labbe
We have now a HSDK device in our kernelci lab, but kernel builded via the hsdk_defconfig lacks ramfs supports, so it cannot boot kernelci jobs yet. So this patch enable CONFIG_BLK_DEV_RAM in hsdk_defconfig. Signed-off-by: Corentin Labbe --- arch/arc/configs/hsdk_defconfig | 1 + 1 file changed

[PATCH 2/2] arc: hsdk_defconfig: enable CONFIG_ARC_UBOOT_SUPPORT

2019-02-05 Thread Corentin Labbe
in hsdk_defconfig. Signed-off-by: Corentin Labbe --- arch/arc/configs/hsdk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig index 0e5fd29ed238..b80e3ac5c93c 100644 --- a/arch/arc/configs/hsdk_defconfig +++ b/arch/arc

Re: [PATCH] tty: serial: meson_uart: Add support for kernel debugger

2019-02-01 Thread Corentin Labbe
On Fri, Feb 01, 2019 at 10:59:22AM +0100, Julien Masson wrote: > The kgdb invokes the poll_put_char and poll_get_char when communicating > with the host. This patch implement the serial polling hooks for the > meson_uart to be used for KGDB debugging over serial line. > > Signed-off-by: Julien

Re: [PATCH v2 3/3] crypto: s5p: add AES support for Exynos5433

2019-01-24 Thread Corentin Labbe
On Wed, Jan 23, 2019 at 05:55:33PM +0100, Kamil Konieczny wrote: > Add AES crypto HW acceleration for Exynos5433, with the help of SlimSSS IP. > > Signed-off-by: Kamil Konieczny > --- > drivers/crypto/s5p-sss.c | 50 > 1 file changed, 46 insertions(+), 4

Re: [RFC/RFT PATCH 11/15] crypto: testmgr - convert skcipher testing to use testvec_configs

2019-01-24 Thread Corentin Labbe
On Thu, Jan 24, 2019 at 01:36:23PM +0100, Ard Biesheuvel wrote: > On Wed, 23 Jan 2019 at 23:53, Eric Biggers wrote: > > > > From: Eric Biggers > > > > Convert alg_test_skcipher() to use the new test framework, adding a list > > of testvec_configs to test by default. When the extra self-tests

[PATCH] crypto4xx: Fix wrong ppc4xx_trng_probe()/ppc4xx_trng_remove() arguments

2019-01-23 Thread Corentin Labbe
crypto4xx_device *' but argument is of type 'struct crypto4xx_core_device *' This patch fix the needed argument of ppc4xx_trng_probe()/ppc4xx_trng_remove() in that case. Fixes: 5343e674f32f ("crypto4xx: integrate ppc4xx-rng into crypto4xx") Signed-off-by: Corentin Labbe --- drivers/c

[PATCH] xtensa: rename BUILTIN_DTB to BUILTIN_DTB_SOURCE

2019-01-23 Thread Corentin Labbe
it as a string for which dtb to bulltin. But for this (which dtb to build), it is better to use BUILTIN_DTB_SOURCE like other arch do. Signed-off-by: Corentin Labbe --- arch/xtensa/Kconfig | 2 +- arch/xtensa/boot/dts/Makefile | 6 +++--- arch/xtensa/configs

[PATCH v2] arm: sun8i-h3-nanopi-m1-plus: enable HDMI

2019-01-21 Thread Corentin Labbe
This patch enable HDMI output on sun8i-h3-nanopi-m1-plus. Signed-off-by: Corentin Labbe --- Change since v1: - removed status=okay from hdmi_out arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 25 +++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3

[PATCH v2] powerpc: build virtex dtb

2019-01-21 Thread Corentin Labbe
-by: Corentin Labbe --- Changes since v1: - squashed the two dtb into one make line arch/powerpc/boot/dts/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/boot/dts/Makefile b/arch/powerpc/boot/dts/Makefile index fb335d05aae8..1cbc0e4ce857 100644 --- a/arch/powerpc/boot/dts

[PATCH 6/7] hwmon: adm1029: Fix function alignment

2019-01-18 Thread Corentin Labbe
This patch fix the "Alignment should match open parenthesis" checkpatch warning. Signed-off-by: Corentin Labbe --- drivers/hwmon/adm1029.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c index 4339f6b864a1..e9

[PATCH 2/7] hwmon: adm1029: Add SPDX header

2019-01-18 Thread Corentin Labbe
This patch addes SPDX header to adm1029 Signed-off-by: Corentin Labbe --- drivers/hwmon/adm1029.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c index 3dd4c84ec89e..381bfae6b04b 100644 --- a/drivers/hwmon/adm1029.c +++ b/drivers/hwmon

[PATCH 4/7] hwmon: adm1029: Add blank line after declarations

2019-01-18 Thread Corentin Labbe
As requested by checkpatch, this patch adds a blank line after declarations Signed-off-by: Corentin Labbe --- drivers/hwmon/adm1029.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c index 092f16ad774f..f9f4f1f4a4c7 100644 --- a/drivers

[PATCH 5/7] hwmon: adm1029: Fix Logical continuations should be on the previous line checkpatch warning

2019-01-18 Thread Corentin Labbe
This patchs fix the "Logical continuations should be on the previous line" checkpatch warning. Signed-off-by: Corentin Labbe --- drivers/hwmon/adm1029.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm10

[PATCH 7/7] hwmon: adm1029: Add a comment for locking mutex

2019-01-18 Thread Corentin Labbe
Checkpatch complains that mutex does not have any comment. This patch fix that. Signed-off-by: Corentin Labbe --- drivers/hwmon/adm1029.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c index e9fe4fc3489e..e561279aea21 100644

[PATCH 3/7] hwmon: adm1029: replace S_IXXX macros by their numeric values

2019-01-18 Thread Corentin Labbe
As requested by checkpatch, this patch replace S_IXXX macros by their numeric values. Signed-off-by: Corentin Labbe --- drivers/hwmon/adm1029.c | 37 - 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon

[PATCH 1/7] hwmon: adm1029: Remove write to FFF paragraph

2019-01-18 Thread Corentin Labbe
As suggested by checkpatch, remove the "write to FFF" paragraph. Signed-off-by: Corentin Labbe --- drivers/hwmon/adm1029.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c index 8c5cdb560258..3dd4c84ec89e 100644 --- a/drivers/hwm

[PATCH 0/7] hwmon: adm1029: Fix most style problem

2019-01-18 Thread Corentin Labbe
Hello Thirteen years later, coding style have change a bit. This patch series fixes the gap. This patch serie was tested on my precious so rare real hardware. Regards Corentin Labbe (7): hwmon: adm1029: Remove write to FFF paragraph hwmon: adm1029: Add SPDX header hwmon: adm1029: replace

[PATCH] xtensa: Fix typo use space=>user space

2019-01-18 Thread Corentin Labbe
This patch fix a simple typo. Signed-off-by: Corentin Labbe --- arch/xtensa/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index 20a0756f27ef..48906ac5fd25 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -164,7

[PATCH v2] dma-debug: add dumping facility via debugfs

2019-01-18 Thread Corentin Labbe
While debugging a DMA mapping leak, I needed to access debug_dma_dump_mappings() but easily from user space. This patch adds a /sys/kernel/debug/dma-api/dump file which contain all current DMA mapping. Signed-off-by: Corentin Labbe --- Changes since v1: - Use DEFINE_SHOW_ATTRIBUTE - Add

[PATCH] Documentation: DMA-API: fix two typos

2019-01-18 Thread Corentin Labbe
This patch fixes two typos, a missing "e" and dma-api/driver_filter was incorrectly typed dma-api/driver-filter. Signed-off-by: Corentin Labbe --- Documentation/DMA-API.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/DMA-API.txt b/Documen

Re: [RFC PATCH 5/5] crypto: Add Xilinx AES driver

2019-01-17 Thread Corentin Labbe
On Thu, Jan 17, 2019 at 12:32:21PM +0530, Kalyani Akula wrote: > This patch adds AES driver support for the Xilinx > ZynqMP SoC. > > Signed-off-by: Kalyani Akula > --- > drivers/crypto/Kconfig | 11 ++ > drivers/crypto/Makefile | 1 + > drivers/crypto/zynqmp-aes.c | 331 >

[PATCH] dma-debug: add dumping facility via debugfs

2019-01-16 Thread Corentin Labbe
While debugging a DMA mapping leak, I needed to access debug_dma_dump_mappings() but easily from user space. This patch adds a /sys/kernel/debug/dma-api/dump file which contain all current DMA mapping. Signed-off-by: Corentin Labbe --- kernel/dma/debug.c | 47

Re: [RFC PATCH V2 3/4] crypto: Add Xilinx SHA3 driver

2019-01-10 Thread Corentin Labbe
On Wed, Jan 09, 2019 at 02:56:24PM +0530, Kalyani Akula wrote: > This patch adds SHA3 driver support for the Xilinx > ZynqMP SoC. > > Signed-off-by: Kalyani Akula > --- > drivers/crypto/Kconfig | 10 ++ > drivers/crypto/Makefile |1 + > drivers/crypto/zynqmp-sha.c | 305 >

[BUG] rmmod g_mass_storage result to segmentation fault

2019-01-08 Thread Corentin Labbe
Hello When running an imx_defconfig on a imx6q-sabrelite, rmmod g_mass_storage lead to the following crash: [ 143.952834] Internal error: Oops: 817 [#1] SMP ARM [ 143.957639] Modules linked in: dmatest psmouse serport da9063_wdt wl12xx wl18xx wlcore wlcore_sdio brcmfmac brcmutil mwifiex_sdio

[PATCH] powerpc: build virtex dtb

2019-01-08 Thread Corentin Labbe
-by: Corentin Labbe --- arch/powerpc/boot/dts/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/boot/dts/Makefile b/arch/powerpc/boot/dts/Makefile index fb335d05aae8..cae14fca682e 100644 --- a/arch/powerpc/boot/dts/Makefile +++ b/arch/powerpc/boot/dts/Makefile @@ -4,3

Re: [RFC PATCH 2/3] crypto: Add Xilinx SHA3 driver

2019-01-07 Thread Corentin Labbe
On Mon, Jan 07, 2019 at 02:32:55PM +0530, Kalyani Akula wrote: > This patch adds SHA3 driver suuport for the Xilinx > ZynqMP SoC. > > Signed-off-by: Kalyani Akula Hello I have some comment below > +static int zynqmp_sha_init(struct ahash_request *req) > +{ > + const struct zynqmp_eemi_ops

[PATCH] powerpc: build dtb even without COMPILE_TEST

2019-01-04 Thread Corentin Labbe
ndependent of COMPILE_TEST (by depending only on the PPC arch) A better selection of which DTB to build could be done in the future like that do the ARM arch. Signed-off-by: Corentin Labbe --- arch/powerpc/boot/dts/Makefile | 2 +- arch/powerpc/boot/dts/fsl/Makefile | 2 +- 2 files changed, 2

[PATCH] PCI: amlogic: fix build failure due to missing linux/gpio/consumer.h header

2019-01-04 Thread Corentin Labbe
missing linux/gpio/consumer.h header Signed-off-by: Corentin Labbe --- drivers/pci/controller/dwc/pci-meson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/controller/dwc/pci-meson.c b/drivers/pci/controller/dwc/pci-meson.c index 241ebe0c4505..e35e9eaa50ee 100644 --- a/drivers/p

arch/mips/jazz/jazzdma.c:77:30: error: implicit declaration of function ‘KSEG1ADDR’

2019-01-02 Thread Corentin Labbe
Hello I hit the following build error on next-20190102: /linux-next/arch/mips/jazz/jazzdma.c: In function ‘vdma_init’: /linux-next/arch/mips/jazz/jazzdma.c:77:30: error: implicit declaration of function ‘KSEG1ADDR’; did you mean ‘CKSEG1ADDR’? [-Werror=implicit-function-declaration] pgtbl =

Re: [BUG] net: sungem: device driver frees DMA memory with wrong function

2019-01-02 Thread Corentin Labbe
On Fri, Dec 28, 2018 at 12:36:21AM -0800, Christoph Hellwig wrote: > Please try this patch: > The error type change to "DMA-API: gem :00:0f.0: device driver failed to check map error" (I will send patch for fixing this). Note that I used the patch from your just sent DMA series (since the

[BUG] net: sungem: device driver frees DMA memory with wrong function

2018-12-23 Thread Corentin Labbe
Hello During a boot on a qemu machine, I hit the following problem: [ 21.613659] [ cut here ] [ 21.614039] DMA-API: gem :00:0f.0: device driver frees DMA memory with wrong function [device address=0x185c5402] [size=408 bytes] [mapped as page] [unmapped as

[PATCH 2/2] crypto: document missing stats member

2018-12-13 Thread Corentin Labbe
This patchs adds missing member of stats documentation. Signed-off-by: Corentin Labbe --- include/linux/crypto.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 9850b41e38ae..81e178fb9ed8 100644 --- a/include/linux/crypto.h +++ b

[PATCH 1/2] crypto: crypto_user_stat: remove unused dump functions

2018-12-13 Thread Corentin Labbe
This patch removes unused dump functions for crypto_user_stats. There are remains of the copy/paste of crypto_user_base to crypto_user_stat and I forgot to remove them. Signed-off-by: Corentin Labbe --- crypto/crypto_user_base.c| 4 +--- crypto/crypto_user_stat.c| 33

[PATCH] sparc: Set "ARCH: sunxx" information on the same line

2018-12-11 Thread Corentin Labbe
Signed-off-by: Corentin Labbe --- arch/sparc/kernel/setup_32.c | 13 ++--- arch/sparc/kernel/setup_64.c | 4 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c index 7df3d704284c..afe1592a6d08 100644 --- a/arch/sp

[PATCH 1/2] MAINTAINERS: add driver/soc/amlogic/ to amlogic list

2018-12-10 Thread Corentin Labbe
While sending a patch for drivers/soc/amlogic/Kconfig, I saw that getmaintainer.pl give nobody for it. This patchs adds drivers/soc/amlogic/ to amlogic maintainers. Signed-off-by: Corentin Labbe --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index

[PATCH 2/2] soc: amlogic: meson-clk-measure: Add missing REGMAP_MMIO dependency

2018-12-10 Thread Corentin Labbe
This patchs adds a missing dependency on REGMAP_MMIO. This cause the following build failure on SPARC: drivers/soc/amlogic/meson-clk-measure.o: In function `meson_msr_probe': meson-clk-measure.c:(.text+0xc4): undefined reference to `__devm_regmap_init_mmio_clk' Signed-off-by: Corentin Labbe

[PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB

2018-12-10 Thread Corentin Labbe
When playing with a virtual SPARC machine with qemu, I found that the IDE emulated device was not probing with the ata/pata_oldpiix driver. But with the old ide/piix, it was probed. This is due to this PCI devid was not migrated from the old ide/piix. Signed-off-by: Corentin Labbe --- drivers

[PATCH v5 10/11] crypto: crypto_user_stat: rename err_cnt parameter

2018-11-29 Thread Corentin Labbe
Since now all crypto stats are on their own structures, it is now useless to have the algorithm name in the err_cnt member. Signed-off-by: Corentin Labbe --- crypto/algapi.c | 38 - crypto/crypto_user_stat.c | 18 include

[PATCH v5 09/11] crypto: crypto_user_stat: Split stats in multiple structures

2018-11-29 Thread Corentin Labbe
Like for userspace, this patch splits stats into multiple structures, one for each algorithm class. Signed-off-by: Corentin Labbe --- crypto/algapi.c | 108 +++ crypto/crypto_user_stat.c | 82 - include/linux/crypto.h| 180

[PATCH v5 06/11] crypto: crypto_user_stat: fix use_after_free of struct xxx_request

2018-11-29 Thread Corentin Labbe
rypto statistics") Reported-by: syzbot Signed-off-by: Corentin Labbe --- crypto/ahash.c | 17 ++- crypto/algapi.c| 233 + crypto/rng.c | 4 +- include/crypto/acompress.h | 38 ++ include/crypto/aead.h

[PATCH v5 04/11] crypto: crypto_user_stat: split user space crypto stat structures

2018-11-29 Thread Corentin Labbe
It is cleaner to have each stat in their own structures. Signed-off-by: Corentin Labbe --- crypto/crypto_user_stat.c | 20 +++ include/uapi/linux/cryptouser.h | 100 2 files changed, 72 insertions(+), 48 deletions(-) diff --git a/crypto

[PATCH v5 11/11] crypto: crypto_user_stat: Add crypto_stats_init

2018-11-29 Thread Corentin Labbe
This patch add the crypto_stats_init() function. This will permit to remove some ifdef from __crypto_register_alg(). Signed-off-by: Corentin Labbe --- crypto/algapi.c| 10 +++--- include/linux/crypto.h | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/crypto

[PATCH v5 00/11] crypto: crypto_user_stat: misc enhancement

2018-11-29 Thread Corentin Labbe
header to algapi.c for using crypto_alg_get/put Changes since v1: - Better locking of crypto_alg via crypto_alg_get/crypto_alg_put - remove all intermediate variables in crypto/crypto_user_stat.c - splited all internal stats variables into different structures Corentin Labbe (11): crypto

[PATCH v5 10/11] crypto: crypto_user_stat: rename err_cnt parameter

2018-11-29 Thread Corentin Labbe
Since now all crypto stats are on their own structures, it is now useless to have the algorithm name in the err_cnt member. Signed-off-by: Corentin Labbe --- crypto/algapi.c | 38 - crypto/crypto_user_stat.c | 18 include

[PATCH v5 09/11] crypto: crypto_user_stat: Split stats in multiple structures

2018-11-29 Thread Corentin Labbe
Like for userspace, this patch splits stats into multiple structures, one for each algorithm class. Signed-off-by: Corentin Labbe --- crypto/algapi.c | 108 +++ crypto/crypto_user_stat.c | 82 - include/linux/crypto.h| 180

[PATCH v5 06/11] crypto: crypto_user_stat: fix use_after_free of struct xxx_request

2018-11-29 Thread Corentin Labbe
rypto statistics") Reported-by: syzbot Signed-off-by: Corentin Labbe --- crypto/ahash.c | 17 ++- crypto/algapi.c| 233 + crypto/rng.c | 4 +- include/crypto/acompress.h | 38 ++ include/crypto/aead.h

[PATCH v5 04/11] crypto: crypto_user_stat: split user space crypto stat structures

2018-11-29 Thread Corentin Labbe
It is cleaner to have each stat in their own structures. Signed-off-by: Corentin Labbe --- crypto/crypto_user_stat.c | 20 +++ include/uapi/linux/cryptouser.h | 100 2 files changed, 72 insertions(+), 48 deletions(-) diff --git a/crypto

[PATCH v5 11/11] crypto: crypto_user_stat: Add crypto_stats_init

2018-11-29 Thread Corentin Labbe
This patch add the crypto_stats_init() function. This will permit to remove some ifdef from __crypto_register_alg(). Signed-off-by: Corentin Labbe --- crypto/algapi.c| 10 +++--- include/linux/crypto.h | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/crypto

<    1   2   3   4   5   6   7   8   9   10   >