Skip to contentSkip to conversation

arm64: defconfig: Enable Virtio RNG driver as built in

PATCH In review Ryan Roberts 3 participants 5 messages Feb 13, 2023 – Mar 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: defconfig: Enable Virtio RNG driver as built in

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.

---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/configs/defconfig +2 -0
index 851e8f9be06d..e2dad45e87a7 100644
@@ -464,6 +464,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

--
2.25.1

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#1 lore raw

Hi Catalin, Will, all,

Just a polite nudge: Is there any reason it would be problematic to merge this?

Thanks,
Ryan

Quoted 33 lines · Ryan Roberts

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.

---
 arch/arm64/configs/defconfig | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/configs/defconfig +2 -1
index 851e8f9be06d..e2dad45e87a7 100644
@@ -464,6 +464,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
--

2.25.1

Quoted 5 lines

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw
Quoted 1 line · Ryan Roberts

Just a polite nudge: Is there any reason it would be problematic to merge this?

No problems with the patch. It probably fell through the cracks. Will and I normally leave the defconfig patches to Arnd but I guess it was also posted fairly close to the merging window when most of maintainer trees had already been frozen.

Signature · 6 lines
Catalin

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw
Quoted 7 lines · Catalin Marinas
Quoted 1 line · Ryan Roberts

Just a polite nudge: Is there any reason it would be problematic to merge this?

No problems with the patch. It probably fell through the cracks. Will and I normally leave the defconfig patches to Arnd but I guess it was also posted fairly close to the merging window when most of maintainer trees had already been frozen.

I've applied it to the soc/defconfig branch for 6.4 now, sorry for missing it before.

Arnd

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw
Quoted 11 lines · Arnd Bergmann
Quoted 7 lines · Catalin Marinas
Quoted 1 line · Ryan Roberts

Just a polite nudge: Is there any reason it would be problematic to merge this?

No problems with the patch. It probably fell through the cracks. Will and I normally leave the defconfig patches to Arnd but I guess it was also posted fairly close to the merging window when most of maintainer trees had already been frozen.

I've applied it to the soc/defconfig branch for 6.4 now, sorry for missing it before.

No problem - thanks!

Quoted 2 lines

Arnd

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel