Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4696607imm; Mon, 18 Jun 2018 21:08:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLO3+KHaidu/vxWOICuuNxvZcdebFiJ9gL5gjv7fG5ZxZLrz03opWBT5ShTnhMYtLAaNtPP X-Received: by 2002:a63:6e44:: with SMTP id j65-v6mr13616804pgc.14.1529381288437; Mon, 18 Jun 2018 21:08:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529381288; cv=none; d=google.com; s=arc-20160816; b=WlLLDf01UljwnpbXWeNAtUF+hN5JQqrguXeh7ITPfdb3QoCnUtybK+v9+zg5GbHVtQ JKXOiDH5YbAgepqeFXF3r5y8fb4eC/fHqq2GJTQKdpMeNKHx9gzFhe6D70tLnbIxMtjk LLmIAO8/tzMnoIxxHSslfiRxgDqXffjSkv2NNSKEQS0FnkPPyxoiez3WMV+QiGLAFLfA l1h4gXZyqcf51Ocl/sQeB7ViOXBTkddSWwBcrZSV+DjMds2FxHwKlgKDMLcbWeRA8h8j O3f0YHj/ytsWmsKwvO32Kj/XC7j/lsn3tTsBygOMasntz28MY3VlShi+y169o1P9DV3j GM7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=fWhnL+e0mIhCURG4q1//ya5qOnPJALtMjqjml/pXOXA=; b=flCzUUXUovTpqne8jt0+A8kxA3gB40R0qo/Gf4E7vMMpWN0RTVvBmbr2orX6GZ1x+I CCtvBrSwkkSJ0saymgC2S/lVVaK0hOKuBcQ5T4kAEeclLfq5dayaGN6ux2CuTP5U/vkF rbZH2kSXhaNcz+N35oyqAPzCBn4E+z6izJ9SeBsZIxcdA+8ohdn1BFjaq++E7RVsxbUn XJ/FEiDkZzjD+E2EH8PlY3nkqudUoIffV23zTxVIXXHC6D1PhQzWvhSjJyiKUdHfWdzE 2Jm6x0tKh16pFRgyOWQn2RCfOu6pE6JoRwbjgFC14lwJftCpzoZDJdXQ26w/7wx9tmTi vTHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xUX5cqVZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8-v6si17876264plb.381.2018.06.18.21.07.54; Mon, 18 Jun 2018 21:08:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xUX5cqVZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755547AbeFSEGk (ORCPT + 99 others); Tue, 19 Jun 2018 00:06:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:37898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750732AbeFSEGj (ORCPT ); Tue, 19 Jun 2018 00:06:39 -0400 Received: from localhost (unknown [106.200.222.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 30E7820693; Tue, 19 Jun 2018 04:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1529381198; bh=A7Cny9HzS5Z48ZxbgUFP8g+6OQmpN+1foCbQ1l+fPqk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xUX5cqVZphpeA3RZnGsV7D8oQtKr0M9BjKDIET26WTC8/e1jgitNcbhLl1r40fsmy mBJLHv3pi9i/I6X/qs7x+9saNSf1SdWQQUgDNzumbtlRb0sFxLFAsyCr4sisS/kiEG A6bFkGIuc3y2/dUX6gANF/9pUo4bSYMbneC9s8Wo= Date: Tue, 19 Jun 2018 09:36:30 +0530 From: Vinod To: Stephen Boyd Cc: Bjorn Andersson , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 3/3] hwrng: msm - Add support for prng v2 Message-ID: <20180619040630.GK25852@vkoul-mobl> References: <20180618141259.23141-1-vkoul@kernel.org> <20180618141259.23141-4-vkoul@kernel.org> <20180618182123.GT14924@minitux> <152935345439.16708.16472364970375601294@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152935345439.16708.16472364970375601294@swboyd.mtv.corp.google.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-06-18, 13:24, Stephen Boyd wrote: > Quoting Bjorn Andersson (2018-06-18 11:21:23) > > On Mon 18 Jun 07:12 PDT 2018, Vinod Koul wrote: > > > > > Qcom 8996 and later chips support prng v2 where we need to only > > > implement .read callback for hwrng. > > > > > > > The hardware still needs initialization, so I think you should expand > > this to mention that the initialization is moved to secure world and > > that's the reason why we only implement read. > > > > The question is what happens in projects with other security models. > > Can we still read the PRNG_CONFIG register to see if it's already been > configured or not and then bail out if it isn't configured? That would > be better as long as we the system doesn't blow up if non-secure mode > tries to read the config register. Unfortunately it did blow up for me when I tried it.. -- ~Vinod