From patchwork Tue May 19 21:25:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11558839 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 9794E912 for ; Tue, 19 May 2020 21:26:59 +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 655EF2072C for ; Tue, 19 May 2020 21:26:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="V4bDKZxH"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="N7IZ1+XS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 655EF2072C 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:In-Reply-To: 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: List-Owner; bh=TYFYdtAj+8c+rFjWKP7VbIj+MKH/INmJiKhrgDhLJl0=; b=V4bDKZxHk7s0u4 as+71YGZSib6y4Zlv3Q29AA6Tdybw9Gbd29xHSInPVj/a95hCi6wpUcANP2EKp+z49luJJIl+rdzD Rre6WGKkfcxkfCDLbJG0ZiRX/UoFvmVipdjSz+mnBvPPZTDuhB3YKQEjHUZL/FAATpKKAqsOsH4o6 iK87/e0QJhjJPmRQtsvn/UoS0KKmYW1wQFNdiAPfV18LKqRif8h89IIt9xxBCvLz7vcA23b2JLv+G QSzGE9jh4cmm+OX6rQNplC0JDXlxZIM5zcZVqTJ+MF8mAVk5WgS+dz4ZJBWYKT3RSt76DZ4JdK3aC iXpG/5MlmHMRSeG0RCkg==; 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 1jb9lK-0005GR-EC; Tue, 19 May 2020 21:26:58 +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 1jb9kn-0004on-IQ for linux-arm-kernel@lists.infradead.org; Tue, 19 May 2020 21:26:28 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200519212622euoutp0215089ff6712e169f4e3a1f4828e872e5~QixMJGOzp2169021690euoutp02K for ; Tue, 19 May 2020 21:26:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200519212622euoutp0215089ff6712e169f4e3a1f4828e872e5~QixMJGOzp2169021690euoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1589923582; bh=N/YA46ODGLlxDL+bldxjnjkd6gAUd4l+W7uUZ4+8mjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N7IZ1+XSIEc0+62ryPpHUXzd0heipsyVQ0dkcfzgbscuseoNoi/1W6A5OMxygUvoz gGVz/VRdDGT5B3uwP1IaPuZLr+xUrMQ5nC1d6xviRxNHBnYuamfvmLEH5irA1yWsCe FarzRJ93gzS8dHrHTZikamPUbOyPM+BcVAj/Fui4= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200519212621eucas1p1b01882c9c94ab188151dbd94fe920c74~QixLYgw792659226592eucas1p1d; Tue, 19 May 2020 21:26:21 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id EE.EC.60698.DFE44CE5; Tue, 19 May 2020 22:26:21 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200519212621eucas1p13279db41d930b69e115972463c994a37~QixK7ptMf2557025570eucas1p1X; Tue, 19 May 2020 21:26:21 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200519212620eusmtrp274dffa962a5015db7ae6426090390416~QixK4Em2R1118011180eusmtrp2Z; Tue, 19 May 2020 21:26:20 +0000 (GMT) X-AuditID: cbfec7f5-a29ff7000001ed1a-23-5ec44efdac5c Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D4.A7.08375.CFE44CE5; Tue, 19 May 2020 22:26:20 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200519212620eusmtip12841b5e28e124c49be41bb02b995206c~QixKt8VyS2107921079eusmtip19; Tue, 19 May 2020 21:26:20 +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, Stephan Mueller Subject: [PATCH v2 2/2] hwrng: exynos - Set the quality value Date: Tue, 19 May 2020 23:25:52 +0200 Message-Id: <20200519212552.11671-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200519212552.11671-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa1CMYRTHPfte9q2x9dpKx2pklj5kKGHMY8RgzHi/kNH4YoiVVxptmd2S jFEjSmFrQrQqkWZXd1uWLsK2lTS1RrmNS9glMpax20i1Lu27hm+//3n+55z/mXkYQnqcljHx icm8KlGRIKe9SWPnD8sC1wZzzMI+3QzsKugU42vn6yhcc6qDxJYcHYHH7GYxziyvo/GJ4SCc Z/1EYIulXoyfmfQIG6yPKTz46ocI9zcX0/i8pU2Ey07bKFxm1CD8rqiBxvYqG8Jne2pI3HUv h1jlz42PFSBOO9hLc98GBkRck/almCs33KY5450QzlCZQ3O3S6rFXMOVdE7TWIk4zcd6xNU1 PiK5I/ezKc5hmLXRZ4t35C4+IX4/rwpfucN7T8mDAWLfL/EBZ8uoKAM56VzkxQC7BN5WlVK5 yJuRsnoE3ZpCQhBOBPWFWrEgHAhKj36h/rYM3jzjcekQtPaeIAUxhKDq7nu3i2ZXQ17FPTf7 s7UUfK/gJ5lgU+HYG5u77seuAFdRv5tJNgROPhhys4RdDp+uPiaFbcGQrbvhDuvFRoJ5dIQW PNOgu8jm9viy86D6yBNSmB8MmdcvEELvAAOajhSB18JEZqHnAj8Y7moUCxwEv5ouinIR84fT 4XTB0slbgD2JwFg86smwHF70jdGTHoINhbrmcKG8GqqttYTQ6gNPP08TEvhAgfGcpyyB41lS wT0XavNaPQNlcGpYj/KRXPvfLdr/8mv/7SpDRCUK5FPUyjhevTiRTw1TK5TqlMS4sNgkpQH9 +Z89P7tGbqK2iZ0mxDJIPlXytKk9Rkop9qvTlCYEDCH3l+R/MMVIJbsUaQd5VdJ2VUoCrzah mQwpD5Qsvvxxm5SN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73na4mv383qVXmnWwksP HlZN3RHTV8/3NpCvM+/dra8t2x/k38pT2/Oi+7D1m7q5xid0EzbtPnPVVfbBAU3WLp+2bk1G M7VXq3/5XVqm/8Qo8IJiTEzG/E+O9f1hPw59/3C977TGg+aITov0D0GyO7RPeDWK+q1+qlWY tykzwkKJpTgj0VCLuag4EQC9oUcTLQMAAA== X-CMS-MailID: 20200519212621eucas1p13279db41d930b69e115972463c994a37 X-Msg-Generator: CA X-RootMTR: 20200519212621eucas1p13279db41d930b69e115972463c994a37 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200519212621eucas1p13279db41d930b69e115972463c994a37 References: <20200514190734.32746-1-l.stelmach@samsung.com> <20200519212552.11671-1-l.stelmach@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200519_142625_755763_32754EB6 X-CRM114-Status: GOOD ( 14.91 ) 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 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.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -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 value was estimaded with ea_iid[1] using on 10485760 bytes read from the RNG via /dev/hwrng. The min-entropy value calculated using the most common value estimate (NIST SP 800-90P[2], section 6.3.1) was 7.489627. [1] https://github.com/usnistgov/SP800-90B_EntropyAssessment [2] https://csrc.nist.gov/publications/detail/sp/800-90b/final Signed-off-by: Ɓukasz Stelmach --- drivers/char/hw_random/exynos-trng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/exynos-trng.c b/drivers/char/hw_random/exynos-trng.c index 8e1fe3f8dd2d..2a5896122001 100644 --- a/drivers/char/hw_random/exynos-trng.c +++ b/drivers/char/hw_random/exynos-trng.c @@ -123,6 +123,7 @@ static int exynos_trng_probe(struct platform_device *pdev) trng->rng.init = exynos_trng_init; trng->rng.read = exynos_trng_do_read; trng->rng.priv = (unsigned long) trng; + trng->rng.quality = 900; platform_set_drvdata(pdev, trng); trng->dev = &pdev->dev;