Re: [PATCH] crypto: pcrypt: Fix possible deadlock in padata_sysfs_release

2019-05-31 Thread Kefeng Wang
On 2019/5/31 17:29, Kefeng Wang wrote: > There is a deadlock issue in pcrypt_init_padata(), > > pcrypt_init_padata() > cpus_read_lock() > padata_free() > padata_sysfs_release() > cpus_read_lock() > > Narrow rcu_read_lock/unlock() and move

[PATCH] crypto: pcrypt: Fix possible deadlock in padata_sysfs_release

2019-05-31 Thread Kefeng Wang
-by: Kefeng Wang --- crypto/pcrypt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c index 0e9ce329fd47..662228b48b70 100644 --- a/crypto/pcrypt.c +++ b/crypto/pcrypt.c @@ -407,13 +407,14 @@ static int pcrypt_init_padata(struct

[PATCH v4 0/2] Add Hisilicon Random Number Generator(RNG) support

2016-04-13 Thread Kefeng Wang
e linux/random.h for get_random_bytes() Changes since v1: - Rename compatible name from "hisilicon,hisi-rng" to "hisilicon,rng" Kefeng Wang (2): dt/bindings: Add bindings for hisilicon random number generator hwrng: hisi: Add support for Hisilicon SoC RNG Documentation/de

[PATCH v4 2/2] hwrng: hisi: Add support for Hisilicon SoC RNG

2016-04-13 Thread Kefeng Wang
This adds the Hisilicon Random Number Generator(RNG) support, which is found in Hip04 and Hip05 soc. Reviewed-by: Mathieu Poirier Signed-off-by: Kefeng Wang --- drivers/char/hw_random/Kconfig| 13 drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/hisi-rng.c | 126

[PATCH v4 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-13 Thread Kefeng Wang
Document the devicetree bindings for the random number generator found on Hisilicon Hip04 and Hip05 soc. Signed-off-by: Kefeng Wang --- Documentation/devicetree/bindings/rng/hisi-rng.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings

Re: [PATCH v2 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-12 Thread Kefeng Wang
On 2016/4/12 21:54, Rob Herring wrote: > On Mon, Apr 11, 2016 at 8:16 PM, Kefeng Wang > wrote: >> >> >> On 2016/4/11 22:43, Rob Herring wrote: >>> On Thu, Apr 07, 2016 at 04:23:16PM +0800, Kefeng Wang wrote: >>>> Document the devicetree bindings

Re: [PATCH v2 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-11 Thread Kefeng Wang
On 2016/4/11 22:43, Rob Herring wrote: > On Thu, Apr 07, 2016 at 04:23:16PM +0800, Kefeng Wang wrote: >> Document the devicetree bindings for the random number generator found >> on Hisilicon Hip04 and Hip05 soc. >> >> Signed-off-by: Kefeng Wang >> --- >>

[PATCH v3 2/2] hwrng: hisi: Add support for Hisilicon SoC RNG

2016-04-10 Thread Kefeng Wang
This adds the Hisilicon Random Number Generator(RNG) support, which is found in Hip04 and Hip05 soc. Signed-off-by: Kefeng Wang --- drivers/char/hw_random/Kconfig| 13 drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/hisi-rng.c | 125

[PATCH v3 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-10 Thread Kefeng Wang
Document the devicetree bindings for the random number generator found on Hisilicon Hip04 and Hip05 soc. Signed-off-by: Kefeng Wang --- Documentation/devicetree/bindings/rng/hisi-rng.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v3 0/2] Add Hisilicon Random Number Generator(RNG) support

2016-04-10 Thread Kefeng Wang
Changes since v2: - Remove unused RNG_RELOAD_ERR. - Add comment of seed choice in hisi_rng_init - Add head inculde linux/random.h for get_random_bytes() Changes since v1: - Rename compatible name from "hisilicon,hisi-rng" to "hisilicon,rng" Kefeng Wang (2): dt/bindin

Re: [PATCH v2 2/2] hwrng: hisi: Add support for Hisilicon SoC RNG

2016-04-10 Thread Kefeng Wang
On 2016/4/8 22:35, Mathieu Poirier wrote: > On 7 April 2016 at 20:03, Kefeng Wang wrote: >> >> >> On 2016/4/7 22:55, Mathieu Poirier wrote: >>> On 7 April 2016 at 02:23, Kefeng Wang wrote: >>>> This adds the Hisilicon Random Number Generator(RNG) suppo

Re: [PATCH v2 2/2] hwrng: hisi: Add support for Hisilicon SoC RNG

2016-04-07 Thread Kefeng Wang
On 2016/4/7 22:55, Mathieu Poirier wrote: > On 7 April 2016 at 02:23, Kefeng Wang wrote: >> This adds the Hisilicon Random Number Generator(RNG) support, >> which is found in Hip04 and Hip05 soc. >> >> Signed-off-by: Kefeng Wang >> --- >>

[PATCH v2 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-07 Thread Kefeng Wang
Document the devicetree bindings for the random number generator found on Hisilicon Hip04 and Hip05 soc. Signed-off-by: Kefeng Wang --- Documentation/devicetree/bindings/rng/hisi-rng.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v2 0/2] Add Hisilicon Random Number Generator(RNG) support

2016-04-07 Thread Kefeng Wang
This patchset add the Hisilicon Random Number Generator(RNG) support. Changes since v1: - Rename compatible name from "hisilicon,hisi-rng" to "hisilicon,rng" Kefeng Wang (2): dt/bindings: Add bindings for hisilicon random number generator hwrng: hisi: Add support f

[PATCH v2 2/2] hwrng: hisi: Add support for Hisilicon SoC RNG

2016-04-07 Thread Kefeng Wang
This adds the Hisilicon Random Number Generator(RNG) support, which is found in Hip04 and Hip05 soc. Signed-off-by: Kefeng Wang --- drivers/char/hw_random/Kconfig| 13 drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/hisi-rng.c | 121

Re: [PATCH 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-04-04 Thread Kefeng Wang
On 2016/4/4 13:15, Rob Herring wrote: > On Fri, Apr 01, 2016 at 09:37:43AM +0800, Kefeng Wang wrote: >> Document the devicetree bindings for the random number generator >> found on Hisilicon Hip04 and Hip05 soc. [...] >> + >> +Required properties: >> +- compatibl

[PATCH 1/2] dt/bindings: Add bindings for hisilicon random number generator

2016-03-31 Thread Kefeng Wang
Document the devicetree bindings for the random number generator found on Hisilicon Hip04 and Hip05 soc. Signed-off-by: Kefeng Wang --- Documentation/devicetree/bindings/rng/hisi-rng.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 2/2] hwrng: hisi: Add support for Hisilicon RNG support

2016-03-31 Thread Kefeng Wang
This adds the Hisilicon Random Number Generator(RNG) support, which is found on Hip04 and Hip05 soc. Signed-off-by: Kefeng Wang --- drivers/char/hw_random/Kconfig| 13 drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/hisi-rng.c | 121