Message ID | 20220110091640.459989-1-s.alexey@gmail.com |
---|---|
State | Accepted |
Delegated to: | Hauke Mehrtens |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=M1fmzteP; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=dN/pNJXB; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JXTJl6MNmz9s9c for <incoming@patchwork.ozlabs.org>; Mon, 10 Jan 2022 20:37:59 +1100 (AEDT) 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=3rvk0grkYzfBhwLeefNGm80GYn/g9scvf0o0LXVupiI=; b=M1fmztePAlUtwp 4J/5SGaGM5jnkyFG27ONVlXsJlBj2eEYgBy6KggvMGpBV2+0UTyZgUFlQwOlmDMgfO8LqEYC5ApDw 3O0dtLYI4cEjMo1g6y9KseeBnws0yLyovqaJ76b6RxoTShCPic3HTT4W2Z85O3tiuCG+w7U7qvkh8 lXr9tpXTsNIff+Da8psxXNmcNEr772FH8BnSHiu8aqB1K/U4ZlLCBnuB3MHNnk2/6UtENvHCELZfJ GGHkDGGIEMxOvI3tnZAxrkjSV4/ThD1FqsQjS/NmofPX/9j+G4oyMu0D8zr+WH30TPyaF69wdaOlg WbwpeiZWg6STaY1C11mQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6r3c-00AQcs-Ui; Mon, 10 Jan 2022 09:33:41 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6qno-00AGlE-UW for openwrt-devel@lists.openwrt.org; Mon, 10 Jan 2022 09:17:22 +0000 Received: by mail-lf1-x130.google.com with SMTP id x7so41909166lfu.8 for <openwrt-devel@lists.openwrt.org>; Mon, 10 Jan 2022 01:17:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AHicgles9paIyj/EoP3pFGMLLNBR/hfwgwGRUiSJArw=; b=dN/pNJXBDkIFEQ234fjbxi8weJz4/Ujku/+YRigWySjhMmLorElfeNT/S9fJ2u39rv Q1kKMqADeDoQjUeNyghkwnDmYk2L3S0wUgz022KQjTe8Mwev06myt6NOQ8lnBOsNujLy F7GpC9eVCaWNGzqM+zWsFxIrUhuqAEeFDSFtJ3QAM7UFCzycrdY8WdQpnGsP06p8AaWs 0lOzDUOtSdTD7oscJ2xImmq7yynM/y9fMz0L3hgxW65dJi24wLEpeb03d52iZnCB+wkp voR3VBP0XQF2bet0U9VGJAfMz6vxh0sNWQoNy+PjyjRX3p25nIlz4NQIMxOKemf4hZrR /hcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AHicgles9paIyj/EoP3pFGMLLNBR/hfwgwGRUiSJArw=; b=5NZ1+ysVYFVPnjdi9sblbmNhikLRROiKZU5LaBjHOFYK/qycBHBCOctV8bNBS0ltgq h1UdjAKGa6BxnnnClO97oncGhkHYceD4/pssyERSL0iUkZWxq+XP02laOo90IiwfTusb /l0N5pTuKZ0SIvyRFBLH8bt42rdXUhWgRk4ka3uorRWKwyxQ9xKHuCT7FDTMZMoXN1dI PcUzP+m27vvnV8g8oSRIPWpOViwGUgV0d1r7Bzdhw6RbdnetotmFvkCKEOR1Vs77XTlr +DtxcyNCsmmg5zd5djBLDXzuE6sTBeiC3vJKTBHJ24jOn6u8o1P7PAy8qLl+5JMDYrOn Bjzg== X-Gm-Message-State: AOAM531C8cfvvFkSfkEA1AiuFkn0kW/Bv+LOa9IFMtc203zqpdyoPGeb D+JIdxlaf45uXFFuvl1QlQnk/fG0H6U= X-Google-Smtp-Source: ABdhPJwlAgk7OVR85wd2SoDVXBJ4wiLkuL2iqzjyw4zO88j/XyUy//6QUXi0qBe8UaVi6ME7b/+/HA== X-Received: by 2002:a05:6512:3b5:: with SMTP id v21mr6722607lfp.540.1641806238652; Mon, 10 Jan 2022 01:17:18 -0800 (PST) Received: from scuderia-pc.olvs.miee.ru (broadband-5-228-176-108.ip.moscow.rt.ru. [5.228.176.108]) by smtp.gmail.com with ESMTPSA id i22sm1006213ljh.85.2022.01.10.01.17.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jan 2022 01:17:18 -0800 (PST) From: Alexey Smirnov <s.alexey@gmail.com> To: openwrt-devel@lists.openwrt.org Cc: a.heider@gmail.com, Alexey Smirnov <s.alexey@gmail.com> Subject: [PATCH] omap: add support for the TRNG Hardware Accelerator Date: Mon, 10 Jan 2022 12:16:40 +0300 Message-Id: <20220110091640.459989-1-s.alexey@gmail.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-20220110_011721_046234_D42F7E35 X-CRM114-Status: GOOD ( 10.57 ) X-Spam-Score: -0.2 (/) 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: According to TI docs (Processor SDK Linux Getting Started Guide) the Random Number Generator hardware is found on OMAP16xx, OMAP2/3/4/5, AM33xx/AM43xx boards. It already defined in device tree files. [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:130 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [s.alexey[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
omap: add support for the TRNG Hardware Accelerator
|
expand
|
diff --git a/target/linux/omap/config-5.10 b/target/linux/omap/config-5.10 index 3daa6c0921..05ebd5f860 100644 --- a/target/linux/omap/config-5.10 +++ b/target/linux/omap/config-5.10 @@ -265,6 +265,8 @@ CONFIG_HSI=y CONFIG_HSI_BOARDINFO=y # CONFIG_HSI_CHAR is not set CONFIG_HWMON=y +CONFIG_HW_RANDOM=y +CONFIG_HW_RANDOM_OMAP=y CONFIG_HZ_FIXED=0 CONFIG_I2C=y CONFIG_I2C_ALGOBIT=y
According to TI docs (Processor SDK Linux Getting Started Guide) the Random Number Generator hardware is found on OMAP16xx, OMAP2/3/4/5, AM33xx/AM43xx boards. It already defined in device tree files. Let's enable it. Some tests: root@RTS1_OI:~# rngtest -c 1000 </dev/hwrng rngtest 6.10 Copyright (c) 2004 by Henrique de Moraes Holschuh This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. rngtest: starting FIPS tests... rngtest: bits received from input: 20000032 rngtest: FIPS 140-2 successes: 999 rngtest: FIPS 140-2 failures: 1 rngtest: FIPS 140-2(2001-10-10) Monobit: 0 rngtest: FIPS 140-2(2001-10-10) Poker: 0 rngtest: FIPS 140-2(2001-10-10) Runs: 1 rngtest: FIPS 140-2(2001-10-10) Long run: 0 rngtest: FIPS 140-2(2001-10-10) Continuous run: 0 rngtest: input channel speed: (min=198.710; avg=1265.501; max=2976.417)Kibits/s rngtest: FIPS tests speed: (min=1.780; avg=37.085; max=39.736)Mibits/s rngtest: Program run time: 15961329 microseconds Signed-off-by: Alexey Smirnov <s.alexey@gmail.com> --- target/linux/omap/config-5.10 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)