Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30498234rwd; Thu, 6 Jul 2023 06:51:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlEhcC9t3A8GWSWkOHUp3P8PPy85QkfKkjfimPBs9w5w01V0wQ+Epmo4C93Tp9rU1BHDxMiV X-Received: by 2002:a17:90a:8c01:b0:25c:18ad:6b82 with SMTP id a1-20020a17090a8c0100b0025c18ad6b82mr3212059pjo.21.1688651495116; Thu, 06 Jul 2023 06:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688651495; cv=none; d=google.com; s=arc-20160816; b=geNFDZVuwLSWP/9p1utxYJMebpHxtXs6ZxMX5ZRw5+eNPLOCUIYE5Wz0cH07bI36wA gDpR7D4UROzVJCNhHh1dH5i8sawOmIVtLha6PrDnPlvznMhmJeCXpzcZ/6OcaKfjU2in +XSPUAHVB9mL7aHOacEySiX3tccE7RJPov7o4CbPQi9zV105wjarYR4VbHAUyz1Odt/G Xdth1Q19VcT0WMswY5ygc3/QQ8AIM3udO7BCkAyibJoKD1NzXzi9WhA0P8sCnPtCJC5p Uq7NkyvQo41DKkuIZfdowoPpjvAk+w8Gn6s69gj+KUmzpAEWnguklFqhDFTxB1bJD9fv 7J8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VQYAGOy4mHGCVmcTL61GMJ4UBsZ5/jjfANV8gUIZHI4=; fh=0W7KysxJ3waLSzO4ADwmB37FZvmkLNnmUnIhHXmDG5g=; b=nOG5IlBo5MQKGzlJMBccoeGObDt3QJFw3pIut4a02Jp/uMZV8cWJI11qmkgUOjN8Zl skQQoSIX1x4Ko1d7o3auQCMuN1NlqhTqGW303WON6uvWYOEQVBKJHv0WiE8GNQPeNLhf +PDKS76BcFBZkePRhP7S5j7RoxQQwv9pZzS9PFDgXrwJ1Qducq0QLK23Jo1r7mhDzR2J DOieEcGru7fW9UBECgDu2FMBIeTCUBPua7aI1K6oA7eadr8JEMubSGnD7H3Wx0v0NC2I c7ZIJ+zLl7gw9MU7/nD+LIoPiNm1CMOuHCZR2YtQL18tj31oFRkBMGyHdZmryykZ8WKn yAVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=HGVE1GFq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w11-20020a17090a8a0b00b00262ecc71b13si1613063pjn.109.2023.07.06.06.51.21; Thu, 06 Jul 2023 06:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=HGVE1GFq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231463AbjGFNdk (ORCPT + 99 others); Thu, 6 Jul 2023 09:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjGFNdj (ORCPT ); Thu, 6 Jul 2023 09:33:39 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40FDA102 for ; Thu, 6 Jul 2023 06:33:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1688650418; x=1720186418; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VQYAGOy4mHGCVmcTL61GMJ4UBsZ5/jjfANV8gUIZHI4=; b=HGVE1GFqb0EGzUFYP+c4zr8Mbj9+2v1js8CpSGoDxax0K7L4/MLnZE4P 2/IEpBkWpa014wNxCUJOlx5eQa80MWV2nkAveIGqwJR3jcNCzsjRdj4Xz WPvDbZMdJn0w++q5gZ44vXulQWM9PD+SaBxiIn+RDXbI9KGgJkfBfYiQ3 rpcyixpFAT3W6/TW4FumYRn01RYxF1CrNhZfN3sqblO6OVtWzB+oCpeM/ TGNgzLyToKeZ+2Vdj0cZcPS8JNcPlBZqBrC3SAKf9AO9PKrvyS9mHyL5i OzzXwDOkY6BHlzKQNusOdSGxD9h9odMueqCRkshgyzyxx950U+Ars1HpY Q==; X-IronPort-AV: E=Sophos;i="6.01,185,1684825200"; d="asc'?scan'208";a="219183784" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Jul 2023 06:33:37 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 6 Jul 2023 06:33:35 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 6 Jul 2023 06:33:32 -0700 Date: Thu, 6 Jul 2023 14:33:02 +0100 From: Conor Dooley To: Samuel Ortiz CC: Paul Walmsley , Palmer Dabbelt , Albert Ou , , , Andrew Jones , Heiko Stuebner , Anup Patel , , "Hongren (Zenithal) Zheng" , Guo Ren , Atish Patra , =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , Evan Green Subject: Re: [PATCH v2 3/3] RISC-V: Implement archrandom when Zkr is available Message-ID: <20230706-putdown-unedited-012eafe854f6@wendy> References: <20230628131442.3022772-1-sameo@rivosinc.com> <20230628131442.3022772-4-sameo@rivosinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jHRuTEvE7B4wrY25" Content-Disposition: inline In-Reply-To: <20230628131442.3022772-4-sameo@rivosinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jHRuTEvE7B4wrY25 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 28, 2023 at 03:14:35PM +0200, Samuel Ortiz wrote: > The Zkr extension is ratified and provides 16 bits of entropy seed when > reading the SEED CSR. >=20 > We can implement arch_get_random_seed_longs() by doing multiple csrrw to > that CSR and filling an unsigned long with valid entropy bits. >=20 > Signed-off-by: Samuel Ortiz Acked-by: Conor Dooley Cheers, Conor. --jHRuTEvE7B4wrY25 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZKbCjgAKCRB4tDGHoIJi 0rUUAQD2SibyQT5ig13MedvYPovD5MwTLc3X3FPiCRKhEyiGNgEAxh2SNdG5Av37 RK24M0lgtLEsw/YArvcqo8AUYAdAIA8= =Pwkn -----END PGP SIGNATURE----- --jHRuTEvE7B4wrY25--