arm64: defconfig: Enable Virtio RNG driver as built in
authorRyan Roberts <ryan.roberts@arm.com>
Mon, 13 Feb 2023 10:16:33 +0000 (10:16 +0000)
committerArnd Bergmann <arnd@arndb.de>
Fri, 24 Mar 2023 17:48:51 +0000 (18:48 +0100)
Modern versions of FVP_Base_RevC-2xAEMvA contain a Virtio RNG device,
use of which can dramatically speed up the time taken for Linux to
initialize its CRNG, from 10s of seconds in some cases, to instant. This
improves the debug cycle significantly.

However, there are 2 barriers to getting people to use it. The first is
that the defconfig doesn't have the required driver. The second is that
the device is disabled in the device tree (for back-compat since older
versions of the FVP don't have the device). Here we solve the first
issue.

Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm64/configs/defconfig

index 6e123de3a9cf5bef254005c3613b1a25d84fc20c..0657fa46b71d3c3008d6ec2e63cdf80da01aa7a5 100644 (file)
@@ -463,6 +463,8 @@ CONFIG_VIRTIO_CONSOLE=y
 CONFIG_IPMI_HANDLER=m
 CONFIG_IPMI_DEVICE_INTERFACE=m
 CONFIG_IPMI_SI=m
+CONFIG_HW_RANDOM=y
+CONFIG_HW_RANDOM_VIRTIO=y
 CONFIG_TCG_TPM=y
 CONFIG_TCG_TIS=m
 CONFIG_TCG_TIS_SPI=m