From patchwork Thu May 14 19:07:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11549491 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7C87D14B7 for ; Thu, 14 May 2020 19:07:49 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 542F62065F for ; Thu, 14 May 2020 19:07:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="T1rap5M9"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="CClJ+Fyo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 542F62065F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version:Message-Id:Date :Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Owner; bh=/bvWtNk0J7k1eSchvle9YTynKcCrf4W7PT4W7HfqP5M=; b=T1rap5M97VNRMX oxPsaLWcutQzJcMrlh6cDqgRWSAR1/6p9CsmIKbrKhmwUJyYcnWtzVWVDg4A7GcJ60m7Fg10lANAh tdMJuyevPJh4d0v7Unc8Rfo3BOGzXYdw4/UtDFRl7saOh34iBEbhk9gSErxdnU5v46mK6Dq+w/NZZ ++TwRyGhyHDthORvMHKIbwoDJOG5ARCXvbRUXC30+/ZsYV+gUCmPop5j4thb8VZCZ0TmOeHf2vbI0 /Midz8t+iHA2tNGw12kt1+aORlJXzBVCiPrP7mnQ7kg1xZFkHPtg6eDuibO3Lnt9BKhZeOWd5j3ZV 0O7fza3RapuPqKvD30rg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZJCt-0007lc-AQ; Thu, 14 May 2020 19:07:47 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZJCn-0007jn-GZ for linux-arm-kernel@lists.infradead.org; Thu, 14 May 2020 19:07:45 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200514190739euoutp02cbca7ef5c4cd7636313585d499a89c72~O_ppNMbyh1181211812euoutp02B for ; Thu, 14 May 2020 19:07:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200514190739euoutp02cbca7ef5c4cd7636313585d499a89c72~O_ppNMbyh1181211812euoutp02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1589483259; bh=CXFOnCSMo4ZePs1sWzgaCbirikPXXnubVCNzMYCfGBA=; h=From:To:Cc:Subject:Date:References:From; b=CClJ+FyobMDurEP5yKu624eumo8GvTzP8ChA5fSE9+1wiFgNQuxpmx/E0ST0igXxj tZTQkS+3D2KqSutEbtIgkxiaEehVWkcH1QEBLQOVRoAqu3qC7lpETQ7kQSOil5N3K3 auZIU4ZmlvR/Q39YBVCbiXzbOnifgxsOFsJ5Biu4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200514190737eucas1p266af3c9f52a7fcb960981451ed8a6ed4~O_poBhODy0442904429eucas1p25; Thu, 14 May 2020 19:07:37 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 41.A1.60679.9F69DBE5; Thu, 14 May 2020 20:07:37 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200514190737eucas1p18ccdddb185ea7611683a6859e17bc721~O_pniwfV-0234402344eucas1p1o; Thu, 14 May 2020 19:07:37 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200514190737eusmtrp1dfac399447ada06f75e580787e9cef7f~O_pnh-Vnd2577025770eusmtrp1m; Thu, 14 May 2020 19:07:37 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-6a-5ebd96f9c12d Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id C8.32.08375.9F69DBE5; Thu, 14 May 2020 20:07:37 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200514190737eusmtip2b2b24273eb8b84ed3db9c7ab6359c5ef~O_pnXZPj81371813718eusmtip2A; Thu, 14 May 2020 19:07:37 +0000 (GMT) From: =?utf-8?q?=C5=81ukasz_Stelmach?= To: Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Kukjin Kim , Krzysztof Kozlowski , Florian Fainelli , Markus Elfring , Matthias Brugger , Stefan Wahren , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 0/2] Set the quality value for two HW RNGs Date: Thu, 14 May 2020 21:07:32 +0200 Message-Id: <20200514190734.32746-1-l.stelmach@samsung.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRjm81x2sk4dp+DLiqJRQaZmF+OjMhKCTpRd6EdhZK06qeSNHc2K SMtmac2NLVNnkWWheFttNnRpl5WuElslZWEl6TQ0FETJS/d51uXf8z2X93lf+BhC/pNSMPFJ qYI6SZWgpH1JW/O4K2T8YmNMWIMxBH83NMvwrUIzhau1TSR25ZQReGLwkQxnlZppfK5/FtZ1 fyawy3VTht86yhG2dL+mcOeHcR/cZr9E40LXXR9cYnRTuMSWh3BPkZXGg5VuhJ2Pc4i1/vzX CQPiTZ2tNF9vei/jSy33aN52fz5vqcih+XuXq2S89XoGn1dbgfi8vpuIN9e+IvlTT89Q/LBl 9lY22nf1ASEh/rCgXrxmr29c5UMrlWInj5zucNOZyEnkoikMcMshr671N/Zl5Fw5An1lPZIe Iwh6y796lWEEdz92/Y3UVNd7hTIEo+OnvZFPCCxtLymPi+YiQXfjMeURAjgNBcYhPekRCC4d NB/dkyZ/biU4uzJ9chHDkNx8yOyiPTTLrYKu3Aek1DYHik+2eHk/eFLknuRncEFQdardO3IO ZN0untwIuBsM5A9ZaSm8DrKzc7yD/KHfWSuT8CxoMZ4nPb3AZYDRsELKnkdguzTm9a+Cd88m aI+H4BaC2b5YoiOhorRfJkWnw5sBP2mF6WCwFRASzcLZbLnkngc1ugbvQAVo+8uRhHl4/vkn pUdzTf8dZvrvGNO/3hJEVKBAIU1MjBXEpUlCeqioShTTkmJD9ycnWtDvb9nywzlSh+zf9jkQ xyDlNDYsvzFGTqkOi0cTHQgYQhnAbjbfiZGzB1RHjwnq5D3qtARBdKCZDKkMZJdd69st52JV qcIhQUgR1H9UH2aKIhOdCT/YtzZwYJHik13RsMO4IWvk6vYOw1hwcJrGb5NGG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bgfPnYeqWo9x/u xXT57DSadqH6YE20V37ilxpfS6/6zl82vNEd3kosxRmJhlrMRcWJAG2FeAMKAwAA X-CMS-MailID: 20200514190737eucas1p18ccdddb185ea7611683a6859e17bc721 X-Msg-Generator: CA X-RootMTR: 20200514190737eucas1p18ccdddb185ea7611683a6859e17bc721 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200514190737eucas1p18ccdddb185ea7611683a6859e17bc721 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200514_120741_755490_399FD9A5 X-CRM114-Status: GOOD ( 13.48 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [210.118.77.12 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [210.118.77.12 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 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 -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.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?=C5=81ukasz_Stelmach?= , Bartlomiej Zolnierkiewicz Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The rng structure contains the quality field which tells how many bits of entropy can be obtained from 1024 bits read from a device. With the quality value set the hw_random framework starts a kernel thread to feed the entropy pool in the CRNG, which helps to initialize it quickly especially during boot. Ɓukasz Stelmach (2): hwrng: iproc-rng200 - Set the quality value hwrng: exynos - Set the quality value drivers/char/hw_random/exynos-trng.c | 1 + drivers/char/hw_random/iproc-rng200.c | 1 + 2 files changed, 2 insertions(+)