From patchwork Thu May 14 19:07:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11549495 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 627D2618 for ; Thu, 14 May 2020 19:08:03 +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 303DF2065F for ; Thu, 14 May 2020 19:08:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NEPgFI+n"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="OuKiGx3+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 303DF2065F 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=eGn9i/K9Ch5TgKD59bnoXz1qPwK0Kbw5ttfTNxNdEsk=; b=NEPgFI+nKWGRCW 629z+6XiVL4psnDAf4JDjt+1FWBEG/mk81k13jfhbFR27iSkWFIdpcEGXnCelWmoF8iLCdrXeoSwT 0cmp3jZIhBKlI6wDKCr0+GngE1QSTCj/J62G0ZH69SwI2me39QsOrxCU6rwilDmayKx7AAyXeyQlD YDMMu0RMwEIYglJAsfkqxG8qQiX3Qa/OYDH5OAFB9ptxePFNGxbw2IO39Ct4Q3qwt7kHIou/hcmiZ 08/s2KJ9/esQ+1nrIv/6DMftZjz1ne5tz/d3DbCuGqMC/l+40pXcwZDOkV7m9Xl4v5nJEYtnHdPrZ tnugHPwzu9oTovQN67dQ==; 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 1jZJD0-0007sa-KP; Thu, 14 May 2020 19:07:54 +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-0007jr-MJ 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 20200514190740euoutp02f65dfc1e0fe0e7a44cfb43861e670975~O_pqNKN5O1067510675euoutp02R for ; Thu, 14 May 2020 19:07:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200514190740euoutp02f65dfc1e0fe0e7a44cfb43861e670975~O_pqNKN5O1067510675euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1589483260; bh=0ZTSEZCdZQmmB3Cuf4f7fDeYUffZn+GsVAdbdhxdQ5Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OuKiGx3+2JiS7BvGECbc+jyku4zGJDdZ5m9YG4MSrDREE8kitFBoCiuKvlLcDxUH9 YnbokNDaW6Q0hzI2Dt9bpZzNBO1N0UyWvHpF+MRnADy0789en/GHNQVv1/PTX1sxbT BrQB4/l8t1uFnMNAydoZU2919kid093HrwTW2Y3s= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200514190739eucas1p128e1f360ca382919779973520cc2d026~O_ppzoPtB2658126581eucas1p1E; Thu, 14 May 2020 19:07:39 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id D4.98.60698.BF69DBE5; Thu, 14 May 2020 20:07:39 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200514190738eucas1p2695c0d8af064ee702209ca03696ef438~O_po-9KUX0444904449eucas1p2n; Thu, 14 May 2020 19:07:38 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200514190738eusmtrp1af5f742bc66af38419c76ed7d1f90ba7~O_po55Wqj2577025770eusmtrp1n; Thu, 14 May 2020 19:07:38 +0000 (GMT) X-AuditID: cbfec7f5-a0fff7000001ed1a-b3-5ebd96fb75c4 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D4.BE.07950.AF69DBE5; Thu, 14 May 2020 20:07:38 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200514190738eusmtip1e02e9ee08457f754ba2db3422c2673cc~O_pordu_C0350703507eusmtip1P; Thu, 14 May 2020 19:07:38 +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 1/2] hwrng: iproc-rng200 - Set the quality value Date: Thu, 14 May 2020 21:07:33 +0200 Message-Id: <20200514190734.32746-2-l.stelmach@samsung.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200514190734.32746-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA01SfUyMcRz363ntOD1d0Vde2o7mZVNZzX7mEGN7Zmb+sDGrOHp2opI7Hdm8 hd670qG6iqaoJR1355YoLVS0ujAulkLpzbJZjM5LunvO+O/z/X7eft/txxKyCcqfjYk/JKjj lbFyWkJam8c7lv64WB8VYutdhH/lNTP4VoGRwjeyH5HYll5BYMenhww+XWakcebIHJzT95HA NttNBr9qqkTY1PeSwr094x74eV0xjQtsDR64VN9P4VKrDuEPhWYaf7rej3BLazoR7sP/cOQh 3tDbTvN3DG8Yvsx0n+atjYG8qSqd5u+XVDO8ufwEr7NUIV43fBPxRssLkk9+kkrxY6Z5W6Q7 JIpoITZGK6iDV++S7L2m+0glXGaOPJ/IJE+ic3QG8mSBC4PfFrsLy7hKBA+uqDOQZBJ/QTDR ncaIwxiCnqed1F/Hpc/lpEhUIMhPLXQPgwiGB+4gp4rm1kLO1VbKSfhyZynQf84lnQTBHYaz 7/pdUT5cOJhSslzlJBcI1okXrr2UWwm5BTnuugAoOtXm0nhyCrAPOTxEjTc8Lux3ZXpxS6A6 2e7OD4DTt4sIZzFwjSz0vi93X7oeUh70uLEPjLRYGBHPgTZ91qSZncQnQJ+3XPRmIbAWfydF zUro7nDQTg3BLQZjXbC4Xgv6y88Y0Toduka9xSdMhzxrPiGupZCWIhPVC6Am55470B+yRypR LpIb/jvG8N8Bhn9dpYioQn5CoiZOJWhC44XDQRplnCYxXhW050CcCU1+y7bfLV9rUcPP3U2I Y5F8mjTkQn2UjFJqNUlxTQhYQu4r3Wy8GyWTRiuTjgrqAzvVibGCpgnNZkm5nzT0ynCkjFMp Dwn7BS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T//EbX4r 9VfbL/mudnfGjQjz39v11dL3Fc68rXlzVpTNmhNbXp3gUbnf0fNthXi8zYL/n82+xF6X1Ant zpssuejVnsMrInhTuZSfV802Ud0nz/I8pPGf8tfqzrwLTBOPlX6z3PlkU/0JJZbijERDLeai 4kQAVkcDliIDAAA= X-CMS-MailID: 20200514190738eucas1p2695c0d8af064ee702209ca03696ef438 X-Msg-Generator: CA X-RootMTR: 20200514190738eucas1p2695c0d8af064ee702209ca03696ef438 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200514190738eucas1p2695c0d8af064ee702209ca03696ef438 References: <20200514190734.32746-1-l.stelmach@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200514_120741_860541_18B58948 X-CRM114-Status: GOOD ( 15.12 ) 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_HELO_PASS SPF: HELO matches SPF record -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 value has been estimaded by obtainig 1024 chunks of data 128 bytes (1024 bits) each from the generator and finding chunk with minimal entropy using the ent(1) tool. The value was 6.327820 bits of entropy in each 8 bits of data. Signed-off-by: Ɓukasz Stelmach --- drivers/char/hw_random/iproc-rng200.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/char/hw_random/iproc-rng200.c b/drivers/char/hw_random/iproc-rng200.c index 32d9fe61a225..7eb02a23f744 100644 --- a/drivers/char/hw_random/iproc-rng200.c +++ b/drivers/char/hw_random/iproc-rng200.c @@ -199,6 +199,7 @@ static int iproc_rng200_probe(struct platform_device *pdev) priv->rng.read = iproc_rng200_read, priv->rng.init = iproc_rng200_init, priv->rng.cleanup = iproc_rng200_cleanup, + priv->rng.quality = 800, /* Register driver */ ret = devm_hwrng_register(dev, &priv->rng);