diff mbox series

[1/1] arm: enable DM_RNG on QEMU by default

Message ID 20200919055535.4969-1-xypron.glpk@gmx.de
State Accepted
Delegated to: Tom Rini
Headers show
Series [1/1] arm: enable DM_RNG on QEMU by default | expand

Commit Message

Heinrich Schuchardt Sept. 19, 2020, 5:55 a.m. UTC
The EFI_RNG_PROTOCOL is needed for address randomization in Linux.
We should provide it by default on QEMU.

Reported-by: François Ozog <francois.ozog@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
Resent, cc U-Boot list
---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

--
2.28.0

Comments

Tom Rini Sept. 22, 2020, 3:26 p.m. UTC | #1
On Sat, Sep 19, 2020 at 07:55:35AM +0200, Heinrich Schuchardt wrote:

> The EFI_RNG_PROTOCOL is needed for address randomization in Linux.
> We should provide it by default on QEMU.
> 
> Reported-by: François Ozog <francois.ozog@linaro.org>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

This causes cmd_bootefi_selftest to fail on both qemu_arm and
qemu_arm64.
Heinrich Schuchardt Sept. 22, 2020, 6:35 p.m. UTC | #2
On 9/22/20 5:26 PM, Tom Rini wrote:
> On Sat, Sep 19, 2020 at 07:55:35AM +0200, Heinrich Schuchardt wrote:
>
>> The EFI_RNG_PROTOCOL is needed for address randomization in Linux.
>> We should provide it by default on QEMU.
>>
>> Reported-by: François Ozog <francois.ozog@linaro.org>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>
> This causes cmd_bootefi_selftest to fail on both qemu_arm and
> qemu_arm64.
>

Fixed in https://github.com/swarren/uboot-test-hooks.git by:
cf979fcf372c ("u-boot-hooks: add virtio-rng-pci")

Best regards

Heinrich
Tom Rini Oct. 14, 2020, 5:42 p.m. UTC | #3
On Sat, Sep 19, 2020 at 07:55:35AM +0200, Heinrich Schuchardt wrote:

> The EFI_RNG_PROTOCOL is needed for address randomization in Linux.
> We should provide it by default on QEMU.
> 
> Reported-by: François Ozog <francois.ozog@linaro.org>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 80702c23d3..4ebedece80 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -935,6 +935,7 @@  config ARCH_QEMU
 	select OF_CONTROL
 	select PL01X_SERIAL
 	imply CMD_DM
+	imply DM_RNG
 	imply DM_RTC
 	imply RTC_PL031