[edk2,edk2-platforms,0/2] Platform/RaspberryPi3: add RNG support

Message ID 20190216103422.10907-1-ard.biesheuvel@linaro.org
Headers show
Series
  • Platform/RaspberryPi3: add RNG support
Related show

Message

Ard Biesheuvel Feb. 16, 2019, 10:34 a.m.
Add a RNG driver for the BCM283x and wire it up for the Raspberry Pi 3
platform so that the random number generator is accessible to the OS
loader via the EFI_RNG_PROTOCOL. This is used by the KASLR implementation
in the arm64 Linux kernel to randomize the placement of various parts of
the kernel.

Changes since v2:
- move the RNG specific SoC definitions into the Bcm2836.h common header
- add patch that wires up the driver into the RPi3 platform

Cc: Pete Batard <pete@akeo.ie>
Cc: Jeremy Linton <jeremy.linton@arm.com>
Cc: Leif Lindholm <leif.lindholm@linaro.org>

Ard Biesheuvel (2):
  Silicon/Bcm2836: add random number generator driver
  Platform/RaspberryPi3: add RNG driver

 Platform/RaspberryPi/RPi3/RPi3.dsc                          |   5 +
 Platform/RaspberryPi/RPi3/RPi3.fdf                          |   5 +
 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.c            | 203 ++++++++++++++++++++
 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf          |  45 +++++
 Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h |   9 +
 5 files changed, 267 insertions(+)
 create mode 100644 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.c
 create mode 100644 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf

-- 
2.20.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Comments

Leif Lindholm Feb. 19, 2019, 2:44 p.m. | #1
On Sat, Feb 16, 2019 at 11:34:20AM +0100, Ard Biesheuvel wrote:
> Add a RNG driver for the BCM283x and wire it up for the Raspberry Pi 3

> platform so that the random number generator is accessible to the OS

> loader via the EFI_RNG_PROTOCOL. This is used by the KASLR implementation

> in the arm64 Linux kernel to randomize the placement of various parts of

> the kernel.

> 

> Changes since v2:

> - move the RNG specific SoC definitions into the Bcm2836.h common header

> - add patch that wires up the driver into the RPi3 platform

> 

> Cc: Pete Batard <pete@akeo.ie>

> Cc: Jeremy Linton <jeremy.linton@arm.com>

> Cc: Leif Lindholm <leif.lindholm@linaro.org>


For the series:
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>


> Ard Biesheuvel (2):

>   Silicon/Bcm2836: add random number generator driver

>   Platform/RaspberryPi3: add RNG driver

> 

>  Platform/RaspberryPi/RPi3/RPi3.dsc                          |   5 +

>  Platform/RaspberryPi/RPi3/RPi3.fdf                          |   5 +

>  Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.c            | 203 ++++++++++++++++++++

>  Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf          |  45 +++++

>  Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h |   9 +

>  5 files changed, 267 insertions(+)

>  create mode 100644 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.c

>  create mode 100644 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf

> 

> -- 

> 2.20.1

> 

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Ard Biesheuvel Feb. 19, 2019, 2:58 p.m. | #2
On Tue, 19 Feb 2019 at 15:44, Leif Lindholm <leif.lindholm@linaro.org> wrote:
>

> On Sat, Feb 16, 2019 at 11:34:20AM +0100, Ard Biesheuvel wrote:

> > Add a RNG driver for the BCM283x and wire it up for the Raspberry Pi 3

> > platform so that the random number generator is accessible to the OS

> > loader via the EFI_RNG_PROTOCOL. This is used by the KASLR implementation

> > in the arm64 Linux kernel to randomize the placement of various parts of

> > the kernel.

> >

> > Changes since v2:

> > - move the RNG specific SoC definitions into the Bcm2836.h common header

> > - add patch that wires up the driver into the RPi3 platform

> >

> > Cc: Pete Batard <pete@akeo.ie>

> > Cc: Jeremy Linton <jeremy.linton@arm.com>

> > Cc: Leif Lindholm <leif.lindholm@linaro.org>

>

> For the series:

> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

>


Thanks

Pushed as 94d6843f1a90..76d9e9a5da9e

> > Ard Biesheuvel (2):

> >   Silicon/Bcm2836: add random number generator driver

> >   Platform/RaspberryPi3: add RNG driver

> >

> >  Platform/RaspberryPi/RPi3/RPi3.dsc                          |   5 +

> >  Platform/RaspberryPi/RPi3/RPi3.fdf                          |   5 +

> >  Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.c            | 203 ++++++++++++++++++++

> >  Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf          |  45 +++++

> >  Silicon/Broadcom/Bcm283x/Include/IndustryStandard/Bcm2836.h |   9 +

> >  5 files changed, 267 insertions(+)

> >  create mode 100644 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.c

> >  create mode 100644 Silicon/Broadcom/Bcm283x/Drivers/RngDxe/RngDxe.inf

> >

> > --

> > 2.20.1

> >

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel