Re: Security Random Number Generator support

2020-06-18 Thread Neal Liu
Hi Marc, On Thu, 2020-06-18 at 10:50 +0100, Marc Zyngier wrote: > On 2020-06-03 08:54, Neal Liu wrote: > > Hi Neal, > > > Do you know which ARM expert could edict this standard? > > Or is there any chance that we can make one? And be reviewed by > > maintainers?

Re: Security Random Number Generator support

2020-06-05 Thread Neal Liu
On Fri, 2020-06-05 at 09:09 +0100, Russell King - ARM Linux admin wrote: > On Fri, Jun 05, 2020 at 03:19:03PM +0800, Neal Liu wrote: > > On Wed, 2020-06-03 at 17:34 +0800, Russell King - ARM Linux admin wrote: > > > This kind of thing is something that ARM have seems to shy awa

Re: Security Random Number Generator support

2020-06-05 Thread Neal Liu
On Wed, 2020-06-03 at 17:34 +0800, Russell King - ARM Linux admin wrote: > On Wed, Jun 03, 2020 at 08:40:58AM +0100, Marc Zyngier wrote: > > On 2020-06-03 08:29, Neal Liu wrote: > > > On Tue, 2020-06-02 at 21:02 +0800, Marc Zyngier wrote: > > > > On 2020-06-

Re: Security Random Number Generator support

2020-06-03 Thread Neal Liu
On Wed, 2020-06-03 at 08:40 +0100, Marc Zyngier wrote: > On 2020-06-03 08:29, Neal Liu wrote: > > On Tue, 2020-06-02 at 21:02 +0800, Marc Zyngier wrote: > >> On 2020-06-02 13:14, Ard Biesheuvel wrote: > >> > On Tue, 2 Jun 2020 at 10:15, Neal Liu wrote: > >>

Re: Security Random Number Generator support

2020-06-03 Thread Neal Liu
On Tue, 2020-06-02 at 21:02 +0800, Marc Zyngier wrote: > On 2020-06-02 13:14, Ard Biesheuvel wrote: > > On Tue, 2 Jun 2020 at 10:15, Neal Liu wrote: > >> > >> These patch series introduce a security random number generator > >> which provides a generic inter

[PATCH v6 2/2] hwrng: add sec-rng driver

2020-06-02 Thread Neal Liu
. Signed-off-by: Neal Liu --- drivers/char/hw_random/Kconfig | 13 drivers/char/hw_random/Makefile |1 + drivers/char/hw_random/sec-rng.c | 155 ++ 3 files changed, 169 insertions(+) create mode 100644 drivers/char/hw_random/sec-rng.c diff --git a

Security Random Number Generator support

2020-06-02 Thread Neal Liu
. *** BLURB HERE *** Neal Liu (2): dt-bindings: rng: add bindings for sec-rng hwrng: add sec-rng driver .../devicetree/bindings/rng/sec-rng.yaml | 53 ++ drivers/char/hw_random/Kconfig| 13 ++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/sec

[PATCH v6 1/2] dt-bindings: rng: add bindings for sec-rng

2020-06-02 Thread Neal Liu
Add bindings for ARM TrustZone based Security Random Number Generator. Signed-off-by: Neal Liu --- Documentation/devicetree/bindings/rng/sec-rng.yaml | 53 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/sec-rng.yaml diff --git

Re: [PATCH v4 2/3] dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs

2019-10-17 Thread Neal Liu
On Wed, 2019-10-02 at 21:47 +0800, Neal Liu wrote: > Dear Rob, > > Just a gentle ping. > > Neal > > On Wed, 2019-09-18 at 09:44 +0800, Neal Liu wrote: > > On Tue, 2019-07-23 at 22:35 +0800, Rob Herring wrote: > > > On Mon, Jul 22, 2019 at 8:21 PM Neal Liu

Re: [PATCH v4 2/3] dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs

2019-10-02 Thread Neal Liu
Dear Rob, Just a gentle ping. Neal On Wed, 2019-09-18 at 09:44 +0800, Neal Liu wrote: > On Tue, 2019-07-23 at 22:35 +0800, Rob Herring wrote: > > On Mon, Jul 22, 2019 at 8:21 PM Neal Liu wrote: > > > > > > > Please don't top post to lists. > > >

Re: [PATCH v4 2/3] dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs

2019-09-17 Thread Neal Liu
On Tue, 2019-07-23 at 22:35 +0800, Rob Herring wrote: > On Mon, Jul 22, 2019 at 8:21 PM Neal Liu wrote: > > > > Please don't top post to lists. > > > Dear Rob, > > You can check my driver for detail: > > http://patchwork.kernel.org/pat

Re: [PATCH v4 0/3] MediaTek Security random number generator support

2019-08-01 Thread Neal Liu
Dear Matthias, Rob, Mark, Just gentle ping. Thanks > On Mon, 2019-06-24 at 15:24 +0800, Neal Liu wrote: > > These patch series introduce a generic rng driver for Trustzone > > based kernel driver which would like to communicate with ATF > > SIP servic

Re: [PATCH v4 2/3] dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs

2019-07-23 Thread Neal Liu
On Tue, 2019-07-23 at 08:35 -0600, Rob Herring wrote: > On Mon, Jul 22, 2019 at 8:21 PM Neal Liu wrote: > > > > Please don't top post to lists. > > > Dear Rob, > > You can check my driver for detail: > > http://patchwork.kernel.org/pat

Re: [PATCH v4 2/3] dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs

2019-07-22 Thread Neal Liu
have other suggestion to meet this requirement? Thanks On Tue, 2019-07-23 at 01:13 +0800, Rob Herring wrote: > On Mon, Jun 24, 2019 at 03:24:11PM +0800, Neal Liu wrote: > > Document the binding used by the MediaTek ARMv8 SoCs random > > number generator with Tr

Re: [PATCH v4 0/3] MediaTek Security random number generator support

2019-07-22 Thread Neal Liu
Dear Matthias, Rob, Mark, Just gentle ping. Thanks On Mon, 2019-06-24 at 15:24 +0800, Neal Liu wrote: > These patch series introduce a generic rng driver for Trustzone > based kernel driver which would like to communicate with ATF > SIP services. > > Patch #1 i

[PATCH v4 2/3] dt-bindings: rng: add bindings for MediaTek ARMv8 SoCs

2019-06-24 Thread Neal Liu
Document the binding used by the MediaTek ARMv8 SoCs random number generator with TrustZone enabled. Signed-off-by: Neal Liu --- .../devicetree/bindings/rng/mtk-sec-rng.txt| 10 ++ 1 file changed, 10 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/mtk

[PATCH v4 1/3] soc: mediatek: add SMC fid table for SIP interface

2019-06-24 Thread Neal Liu
1. Add a header file to provide SIP interface to ATF 2. Add hwrng SMC fid Signed-off-by: Neal Liu --- include/linux/soc/mediatek/mtk_sip_svc.h | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 include/linux/soc/mediatek/mtk_sip_svc.h diff --git a

[PATCH v4 0/3] MediaTek Security random number generator support

2019-06-24 Thread Neal Liu
mtk-sec-rng since all MediaTek ARMv8 SoCs can reuse this driver. - refine coding style and unnecessary check. changes since v2: - remove unused comments. - remove redundant variable. changes since v3: - add dt-bindings for MediaTek rng with TrustZone enabled - revise HWRNG SMC call fid Neal Liu

[PATCH v4 3/3] hwrng: add mtk-sec-rng driver

2019-06-24 Thread Neal Liu
For MediaTek SoCs on ARMv8 with TrustZone enabled, peripherals like entropy sources is not accessible from normal world (linux) and rather accessible from secure world (ATF/TEE) only. This driver aims to provide a generic interface to ATF rng service. Signed-off-by: Neal Liu --- drivers/char

Re: [PATCH v3 2/3] dt-bindings: rng: update bindings for MediaTek ARMv8 SoCs

2019-06-11 Thread Neal Liu
On Tue, 2019-06-11 at 16:53 -0600, Rob Herring wrote: > On Mon, Jun 10, 2019 at 06:36:23PM +0800, Neal Liu wrote: > > Document the binding used by the MediaTek ARMv8 SoCs random > > number generator with TrustZone enabled. > > > > Signed-off-by: Neal Liu > >

[PATCH v3 0/3] MediaTek Security random number generator support

2019-06-10 Thread Neal Liu
mtk-sec-rng since all MediaTek ARMv8 SoCs can reuse this driver. - refine coding style and unnecessary check. changes since v2: - remove unused comments. - remove redundant variable. Neal Liu (3): soc: mediatek: add SMC fid table for SIP interface dt-bindings: rng: update bindings for MediaTek

[PATCH v3 3/3] hwrng: add mtk-sec-rng driver

2019-06-10 Thread Neal Liu
For MediaTek SoCs on ARMv8 with TrustZone enabled, peripherals like entropy sources is not accessible from normal world (linux) and rather accessible from secure world (ATF/TEE) only. This driver aims to provide a generic interface to ATF rng service. Signed-off-by: Neal Liu --- drivers/char

[PATCH v3 2/3] dt-bindings: rng: update bindings for MediaTek ARMv8 SoCs

2019-06-10 Thread Neal Liu
Document the binding used by the MediaTek ARMv8 SoCs random number generator with TrustZone enabled. Signed-off-by: Neal Liu --- Documentation/devicetree/bindings/rng/mtk-rng.txt | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree

[PATCH v3 1/3] soc: mediatek: add SMC fid table for SIP interface

2019-06-10 Thread Neal Liu
1. Add a header file to provide SIP interface to ATF 2. Add hwrng SMC fid Signed-off-by: Neal Liu --- include/linux/soc/mediatek/mtk_sip_svc.h | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 include/linux/soc/mediatek/mtk_sip_svc.h diff --git a

Re: [PATCH v2 1/3] soc: mediatek: add SMC fid table for SIP interface

2019-06-02 Thread Neal Liu
Hi Sean, On Fri, 2019-05-31 at 06:50 +0800, Sean Wang wrote: > Hi Neal, > > On Mon, May 27, 2019 at 1:39 AM Neal Liu wrote: > > > > 1. Add a header file to provide SIP interface to ARM Trusted > > Firmware(ATF) > > 2. Add hwrng SMC fid > > > >

Re: [PATCH v2 3/3] hwrng: add mtk-sec-rng driver

2019-06-02 Thread Neal Liu
Hi Sean, On Thu, 2019-05-30 at 15:59 -0700, Sean Wang wrote: > Hi, Neal > > On Mon, May 27, 2019 at 1:39 AM Neal Liu wrote: > > > > For MediaTek SoCs on ARMv8 with TrustZone enabled, peripherals like > > entropy sources is not accessible from normal world (linux) and

Re: [PATCH v2 2/3] dt-bindings: rng: update bindings for MediaTek ARMv8 SoCs

2019-06-02 Thread Neal Liu
Hi Sean, On Thu, 2019-05-30 at 15:56 -0700, Sean Wang wrote: > Hi, Neal > > On Mon, May 27, 2019 at 1:39 AM Neal Liu wrote: > > > > Document the binding used by the MediaTek ARMv8 SoCs random > > number generator with TrustZone enabled. >

[PATCH v2 3/3] hwrng: add mtk-sec-rng driver

2019-05-27 Thread Neal Liu
For MediaTek SoCs on ARMv8 with TrustZone enabled, peripherals like entropy sources is not accessible from normal world (linux) and rather accessible from secure world (ATF/TEE) only. This driver aims to provide a generic interface to ATF rng service. Signed-off-by: Neal Liu --- drivers/char

[PATCH v2 1/3] soc: mediatek: add SMC fid table for SIP interface

2019-05-27 Thread Neal Liu
1. Add a header file to provide SIP interface to ARM Trusted Firmware(ATF) 2. Add hwrng SMC fid Signed-off-by: Neal Liu --- include/linux/soc/mediatek/mtk_sip_svc.h | 51 ++ 1 file changed, 51 insertions(+) create mode 100644 include/linux/soc/mediatek

[PATCH v2 2/3] dt-bindings: rng: update bindings for MediaTek ARMv8 SoCs

2019-05-27 Thread Neal Liu
Document the binding used by the MediaTek ARMv8 SoCs random number generator with TrustZone enabled. Signed-off-by: Neal Liu --- Documentation/devicetree/bindings/rng/mtk-rng.txt | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree

[PATCH v2 0/3] MediaTek Security random number generator support

2019-05-27 Thread Neal Liu
mtk-sec-rng since all MediaTek ARMv8 SoCs can reuse this driver. - refine coding style and unnecessary check. Neal Liu (3): soc: mediatek: add SMC fid table for SIP interface dt-bindings: rng: update bindings for MediaTek ARMv8 SoCs hwrng: add mtk-sec-rng driver .../devicetree/bindings/rng

Re: [PATCH 3/3] hwrng: add mt67xx-rng driver

2019-05-24 Thread Neal Liu
Hi Herbert, Could you kindly help to review our patches? Thanks FromNeal Liu <> Subject [PATCH 0/3] MT67XX random number generator support DateWed, 8 May 2019 11:58:54 +0800 share These patch series introduce a generic rng driver for Trustzone based kernel driver