From patchwork Mon Feb 13 10:16:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Roberts X-Patchwork-Id: 13138155 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 890FDC636D4 for ; Mon, 13 Feb 2023 10:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kZ6nfbzPVyfxW9ztbWxAd9UzwJXiIVfHonq5gRLsj+w=; b=d4IKWQLxNx7hlj jsH3qb4iXbSdBaoCLFasoKgb78DSsctjYksJ9Fmcl9p9X7K51VM8iw/va2tZfuam/MouhvkgqQf+s AI9eFIjY4C3xbA0tv9Fw9QVBrphsm2bmUg3WvO0R77C7akvQ/VSpD+d498jvspR3Eq/DtjLwG5cvq MMciohBlFM08BCaY/aJ5OW0HNlOVEdQ9XeU2PWBEo8cskdNUxHQjUcP0ta2LCKPTm8x08aS/kIqjw 5K9fLmTsVLXrxyqJmb0kJWDOb+tF/onOioje2KrzHht/ltgXos3iXZKszH1tdFhraanjXM7iSkzib SHBN/8ZbXNlbwSf7n/KQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRVtO-00E4h5-QQ; Mon, 13 Feb 2023 10:17:02 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pRVtI-00E4dn-Cm for linux-arm-kernel@lists.infradead.org; Mon, 13 Feb 2023 10:16:59 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8244D4B3; Mon, 13 Feb 2023 02:17:34 -0800 (PST) Received: from e125769.cambridge.arm.com (e125769.cambridge.arm.com [10.1.196.26]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0D1AF3F703; Mon, 13 Feb 2023 02:16:50 -0800 (PST) From: Ryan Roberts To: Catalin Marinas , Will Deacon Cc: Ryan Roberts , Bjorn Andersson , Arnd Bergmann , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1] arm64: defconfig: Enable Virtio RNG driver as built in Date: Mon, 13 Feb 2023 10:16:33 +0000 Message-Id: <20230213101633.2085161-1-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230213_021656_515009_4BB49363 X-CRM114-Status: GOOD ( 10.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 851e8f9be06d..e2dad45e87a7 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -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