From patchwork Wed Apr 19 21:07:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elliott Mitchell X-Patchwork-Id: 1774257 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=Pz3j2F0z; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Q69Mh5FvBz23vJ for ; Thu, 27 Apr 2023 06:24:48 +1000 (AEST) 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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:To:Subject:Date:From: References:In-Reply-To:Message-Id:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=R5T3E+HyeCk9ru/SsTRwI7W3XkSZHBzM43YS3x0Tons=; b=Pz3j2F0zwvmT1U s6stsNYPnew5gdSzo+F83h2H8d+47C0M095Q/VNQvybCETCW35C8zKfPVC+RgdUXCyLSlzWlCiVu9 Ymw/MK9G0J4FphqRfG4QDOYZar8vQJSatgWDpjtMqOEkRw8ghC/alCo1FeEr3n0wgWVmkqHKES5D+ MJA5EJiRz2urGmcFAkWNl5r1StPpJp1Tx0NLjw0LZn97QbifFDHrIBtJrSNFpBocbx86h5EoDuNGs mTaj4GnM5xAqWkbmlodkH83jHz27zYil8v/E4byraWFHHnZXzCvvT4ibEHvcMkzbwCVygRQTo6+7+ wCqyAJbWr/vIHrMR3fng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1prlfc-004mrd-0L; Wed, 26 Apr 2023 20:23:20 +0000 Received: from mailhost.m5p.com ([74.104.188.4]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1prlfZ-004mq5-0t for openwrt-devel@lists.openwrt.org; Wed, 26 Apr 2023 20:23:18 +0000 Received: from m5p.com (mailhost.m5p.com [IPv6:2001:470:1f07:15ff:0:0:0:f7]) by mailhost.m5p.com (8.16.1/8.15.2) with ESMTPS id 33QKN9hk029995 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 26 Apr 2023 16:23:15 -0400 (EDT) (envelope-from ehem@m5p.com) Received: (from ehem@localhost) by m5p.com (8.16.1/8.15.2/Submit) id 33QKN9ql029994; Wed, 26 Apr 2023 13:23:09 -0700 (PDT) (envelope-from ehem) Message-Id: <888ba3e4666c8bc34dbd0333730e05ac69686d89.1682539911.git.ehem+openwrt@m5p.com> In-Reply-To: References: From: Elliott Mitchell Date: Wed, 19 Apr 2023 14:07:47 -0700 Subject: [PATCH 3/9] kernel/x86: move Geode HW random from generic to geode To: openwrt-devel@lists.openwrt.org X-Spam-Status: No, score=2.5 required=10.0 tests=DATE_IN_PAST_96_XX, KHOP_HELO_FCRDNS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mattapan.m5p.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230426_132317_454980_D4E56956 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Quite reasonable to have support for the Geode HW random number generator. On the Geode kernel. Support for the VIA HWRNG has been enabled in common. Pull that from the Geode kernel. Signed-off-by: Elliott Mitchell --- target/linux/x86/config-5.10 | 1 - target/linux/x86/config-5.15 | 1 - target/linux/x86/geode/config-5.10 | 2 ++ target/linux/x86/geode/config [...] Content analysis details: (2.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Quite reasonable to have support for the Geode HW random number generator. On the Geode kernel. Support for the VIA HWRNG has been enabled in common. Pull that from the Geode kernel. Signed-off-by: Elliott Mitchell Reviewed-by: Philip Prindeville --- target/linux/x86/config-5.10 | 1 - target/linux/x86/config-5.15 | 1 - target/linux/x86/geode/config-5.10 | 2 ++ target/linux/x86/geode/config-5.15 | 2 ++ 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target/linux/x86/config-5.10 b/target/linux/x86/config-5.10 index 1a2f0d653a..cfd580b282 100644 --- a/target/linux/x86/config-5.10 +++ b/target/linux/x86/config-5.10 @@ -156,7 +156,6 @@ CONFIG_HPET_EMULATE_RTC=y CONFIG_HPET_TIMER=y # CONFIG_HP_WATCHDOG is not set CONFIG_HW_CONSOLE=y -CONFIG_HW_RANDOM_GEODE=y CONFIG_HW_RANDOM_VIA=y # CONFIG_HYPERVISOR_GUEST is not set CONFIG_HZ_PERIODIC=y diff --git a/target/linux/x86/config-5.15 b/target/linux/x86/config-5.15 index 715090977b..acfaa0e4b7 100644 --- a/target/linux/x86/config-5.15 +++ b/target/linux/x86/config-5.15 @@ -157,7 +157,6 @@ CONFIG_HPET_EMULATE_RTC=y CONFIG_HPET_TIMER=y # CONFIG_HP_WATCHDOG is not set CONFIG_HW_CONSOLE=y -CONFIG_HW_RANDOM_GEODE=y CONFIG_HW_RANDOM_VIA=y # CONFIG_HYPERVISOR_GUEST is not set CONFIG_HZ_PERIODIC=y diff --git a/target/linux/x86/geode/config-5.10 b/target/linux/x86/geode/config-5.10 index 579f316914..dc2ac4454b 100644 --- a/target/linux/x86/geode/config-5.10 +++ b/target/linux/x86/geode/config-5.10 @@ -49,6 +49,8 @@ CONFIG_GPIO_CS5535=y # CONFIG_HPET is not set # CONFIG_HP_ACCEL is not set CONFIG_HWMON=y +CONFIG_HW_RANDOM_GEODE=y +CONFIG_HW_RANDOM_VIA=n CONFIG_I2C=y CONFIG_I2C_ALGOBIT=y CONFIG_I2C_ALGOPCA=y diff --git a/target/linux/x86/geode/config-5.15 b/target/linux/x86/geode/config-5.15 index 2ede23ea5e..2a8db278b3 100644 --- a/target/linux/x86/geode/config-5.15 +++ b/target/linux/x86/geode/config-5.15 @@ -53,6 +53,8 @@ CONFIG_GPIO_CS5535=y # CONFIG_HPET is not set # CONFIG_HP_ACCEL is not set CONFIG_HWMON=y +CONFIG_HW_RANDOM_GEODE=y +CONFIG_HW_RANDOM_VIA=n CONFIG_I2C=y CONFIG_I2C_ALGOBIT=y CONFIG_I2C_ALGOPCA=y