From patchwork Tue May 19 21:25:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11558825 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 305CC618 for ; Tue, 19 May 2020 21:26:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 12CB8207E8 for ; Tue, 19 May 2020 21:26:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="l95Lbh8U" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727047AbgESV0U (ORCPT ); Tue, 19 May 2020 17:26:20 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:45530 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726658AbgESV0U (ORCPT ); Tue, 19 May 2020 17:26:20 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200519212619euoutp026660629e09647f79ae3314b71366bb2d~QixJDctu12168521685euoutp02F for ; Tue, 19 May 2020 21:26:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200519212619euoutp026660629e09647f79ae3314b71366bb2d~QixJDctu12168521685euoutp02F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1589923579; bh=1c7VGWvexy2eW95UqCglB2SCwEWKkXv1iIEzc8i/+A0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l95Lbh8Uek6BIOdoOAGVVQNqUD6Ef/OpWdjsOfK035IpvHdN8Of8a/Ty9W7W39HzI dfsfJIKUG7hiNaavmuE3XuDSZ93iEWz7kmQpjF7qARZ9bw3sqOsduvFcIJ2Ax9ULZT fA8eXDfhZ2H5JPAj91e7OGq7qMGAVFHA5xVPJUNs= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200519212617eucas1p184ae7a3c1ceef4f3069943c69c8bbed0~QixIAgXno2659226592eucas1p1b; Tue, 19 May 2020 21:26:17 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id A9.EB.60679.9FE44CE5; Tue, 19 May 2020 22:26:17 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200519212617eucas1p1b6e7af0ecb894896b165601fafd6abe8~QixHPs0gA2557025570eucas1p1W; Tue, 19 May 2020 21:26:17 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200519212617eusmtrp292b562aade6f48110764323077d6f380~QixHO68Go1117911179eusmtrp2b; Tue, 19 May 2020 21:26:17 +0000 (GMT) X-AuditID: cbfec7f4-0cbff7000001ed07-2d-5ec44ef94874 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 83.A7.08375.8FE44CE5; Tue, 19 May 2020 22:26:16 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200519212616eusmtip13926f680a1fb9914bec1e3649925e7ca~QixHBwEZQ2033920339eusmtip1y; Tue, 19 May 2020 21:26:16 +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 Cc: Bartlomiej Zolnierkiewicz , =?utf-8?q?=C5=81uk?= =?utf-8?q?asz_Stelmach?= Subject: [PATCH v2 0/2] Set the quality value for two HW RNGs Date: Tue, 19 May 2020 23:25:50 +0200 Message-Id: <20200519212552.11671-1-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200514190734.32746-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0hTYRjG+3bOzjla0+OSejFLGmkYZXazD+xexOkfsaKgQGu107p4Y0vt AhmTNJdupUQ1lbZUZsvrZitFU5ZpWamRZdFlXRaWZVgatnWfx6j/fu/7Pc/zfQ98DCHNooKY PUn7eVWSPEFG+ZL2NnfnHHdMa3ykpi8S/8hvo3Ht2Woxrsy7QeKuHDOBPR9baZxZUk3hE/3B WP/6PYG7umpo/NhRjrD19UMxdj53i/D9hiIKn+26JsLGApcYG+06hN+cs1H44yUXwqdvV5K4 /WYOsSKQ++bJR5zBeZfiPvf0iLh6wzOaK7E2U5y9JZSzWnIorrm4guZspRmcrs6CON27GsRV 1z0gOU1Htpgbsk6L9dvqu0TBJ+xJ41Vzl2333X3PXECnZIkPWM1PyKMom9QihgF2Idw5ptQi X0bKliNwtZURwjCMwK1z0Frk82cYQpCZu+mvwfaJEzRmBIXuEloY+hCY7CaR10CxK0FfdlPs 5UC2SgwjZbyXCTYdjr10je4nskvB9sqEvEyyodA06BhlCRsNec/clJeBDYFs85VR9mGXQO9b j0jQBMCtcy7Sy/7sLKjQ9JJCfghkXi4cbQBsNwPGERMhBK2BHJ1mLHQi9LfX0QIHw6/68yKh WQYU5EcJ3lwE9qKvpKCJhqedHsqrIdhwqG6YK6xXQqlFP2b1g0cDAcIT/CDffoYQ1hI4niUV 1DOgSt84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vYLy0MfgQowAHoxIPr8Gew3FCrIllxZW5 hxglOJiVRHgnvDgUJ8SbklhZlVqUH19UmpNafIjRFOjNicxSosn5wDSWVxJvaGpobmFpaG5s bmxmoSTO2yFwMEZIID2xJDU7NbUgtQimj4mDU6qBsSH2fXJgdk2TwvTAi483rZwp9crpHGOg OEOfofxJyZn6vum/NeY37wtb/7LjDhPTcfVvSnY+6zUM/a5fTfuxkW1CqutGnV4rvyU+qx4v fn87XeK2gW6U7ikHwc5Jio0rzlzQvd8pO/ninl1WyydJn7qtx79k0qvsd99+Tq0weMMfvTvH 93hkhBJLcUaioRZzUXEiACOC+cArAwAA X-CMS-MailID: 20200519212617eucas1p1b6e7af0ecb894896b165601fafd6abe8 X-Msg-Generator: CA X-RootMTR: 20200519212617eucas1p1b6e7af0ecb894896b165601fafd6abe8 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200519212617eucas1p1b6e7af0ecb894896b165601fafd6abe8 References: <20200514190734.32746-1-l.stelmach@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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(+) v2: - recalculated values using the SP800-90B_EntropyAssessment package