Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5916921ybg; Tue, 22 Oct 2019 10:13:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX/12t1O3F/V4eRl96kBghetgFdOQg/8aaaKIqqpM6lP3wy9o0nX7chMaLzSPGMZERW6dW X-Received: by 2002:a17:906:16d2:: with SMTP id t18mr27808372ejd.28.1571764396012; Tue, 22 Oct 2019 10:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571764396; cv=none; d=google.com; s=arc-20160816; b=h2gpLd5/WTAkBKEiqGFguvs6tdEqaDXHWb4FSkbrtmOF4w0WqfNeGV2h1w3gX50uZA aD6GHRJGmDy734cVQJDB0rCgBhFRQsmE1QR420UDyA5dTGi78dHuR9SVPqdogO3eUUbn 6/TPFhzEvbE888BQPdw94ouA170Rl7NthhoJh+ya/EHLKpa809ccAwv+p7Jx4twgx5Yr tWZjSTDKwfVOp5QC81htLx9wLCRm0ChfPGHtNid8fJbtuGYlUytr5NWmffIjjh0SMBph OJD8MmjVtn0hNrLD3Vwl5aE+efpbkxbUAh+9QEMArMrDbCftyYYmF0tz+fzfp8qgot8d 6GRA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mvDHZEroGd4svIEFV3r1rj2Zd1+i2wt1qJAi098QB7g=; b=yq4mGCmuPN5N35gb1gJ/Ytbnx1Bi0qJGF6oGyn2Qy2Hccw8qNhcBdd9b1AJuD96GEV OePASEqCo2mEasIquBZcHjxjSqWOSY+wJSMWNECB5wbk1raZ/FUNXTSMssD/Ly37aEyc GmJMDxmITomPnGnqyxqHyVWVFgMTOvuiSzzdNokC9qKAUF1UZJC8IUC933cMleFp9KGT dLp/myfN9bUOk20ZZOREu0lTnqRXKPEluSipy3mAFbDEM4hNaJusLvcE7/zS8M1fl40e 0fO/XRLmK0vQMUMJJm9pyagbe5TwRRbt1c9k3EfegmLEGJLCqKU3oP5WzA+ITSbkHax2 X5tw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6si11296059ejf.8.2019.10.22.10.12.49; Tue, 22 Oct 2019 10:13:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732597AbfJVQGs (ORCPT + 99 others); Tue, 22 Oct 2019 12:06:48 -0400 Received: from muru.com ([72.249.23.125]:38978 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727309AbfJVQGs (ORCPT ); Tue, 22 Oct 2019 12:06:48 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 4304680FA; Tue, 22 Oct 2019 16:07:21 +0000 (UTC) Date: Tue, 22 Oct 2019 09:06:43 -0700 From: Tony Lindgren To: Adam Ford Cc: Pali =?utf-8?B?Um9ow6Fy?= , Linux-OMAP , Tero Kristo , Aaro Koskinen , Adam Ford , =?utf-8?Q?Beno=C3=AEt?= Cousson , Rob Herring , Mark Rutland , Russell King , Paul Walmsley , devicetree , Linux Kernel Mailing List , arm-soc Subject: Re: [RFC] ARM: omap3: Enable HWMODS for HW Random Number Generator Message-ID: <20191022160643.GR5610@atomide.com> References: <20190828150037.2640-1-aford173@gmail.com> <20190905230443.GA52127@atomide.com> <20190909134033.s26eiurpat3iekse@pali> <20190909163543.GQ52127@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Adam Ford [191022 12:13]: > On Mon, Sep 9, 2019 at 11:35 AM Tony Lindgren wrote: > > > > * Pali Rohár [190909 13:41]: > > > On Monday 09 September 2019 08:37:09 Adam Ford wrote: > > > > I applied this on 5.3 and it is working. I assume the same is true in for-next. > > > > Hmm I noticed I stopped getting RNG data after several rmmod modprobe > > cycles, or several hd /dev/random reads. Anybody else seeing that? > > > > > > Do you want to submit a formal patch? I can mark it as 'tested-by' > > > > This really helps speed up the startup sequence on boards with sshd > > > > because it delays for nearly 80 seconds waiting for entropy without > > > > the hwrng. > > > > > > Hi! When applying a patch, could you please disable this rng for n900? > > > > > > In omap3-n900.dts for rng should be status = "disabled" (as Tony already > > > wrote), similarly like for aes. > > > > Yeah I'll post a proper patch after -rc1. > > Tony, > > I am just following up on this. Without the HWRNG there are some > tools and daemons like sshd which wait a long time at startup. The > patch you sent really helps speed up the startup time in these cases. > At least in my case, it shaves 80 seconds off by eliminating the > delays. > > Do you think you'll have time to post a more formal patch? If not, I > can do it. I just don't know which mailing list is the more > appropriate. I was able to verity your patch on a DM3730 and OMAP3530 Yeah sorry for the delays, I'll post it when I get a chance to work on that again. I need to first deal with the other pending patches for v5.5, and we've had quite a few fixes for v5.4. Regards, Tony