Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6014704ybe; Tue, 10 Sep 2019 12:10:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFmN/VLdjWVN/3PLP9WGjhkwDhzSsGWLnUoH1vOBHcCV9h3XkatIBzw64sKfZE6H4OwdgW X-Received: by 2002:a17:906:3644:: with SMTP id r4mr4303605ejb.92.1568142629086; Tue, 10 Sep 2019 12:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568142629; cv=none; d=google.com; s=arc-20160816; b=H6IIWxJ3cV0MWOdEYstL5Shs+Qt10aSP6zAUu4Jcn0lrAb1C+x5ZJ0SRXEfKXPq/EN swbBU3XHBaBciBcohwYSK3nKskEvt98iLw3FDg7U+QJ1FRwtAE/r+hJHRvsj8wQZM75s bWGyERUMYJI7PyWqT43USLIKCEYYOct9wS6nrWMBufBDNfgyHW5MFh0IMrqG/XjaLt1f ymEV/lQ9jr763GaQao0pVTE+lsTg627CQUT1eWStJ6Zvi35IdUFXOvwqFMEjUEiGtAYg AENjvRsXSBPjmjno8yVw8dhjXc9DtT76rIEL0qvIlXJxZoAjU5WA/a3PyPUJDBksnhVf RtUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=coLUn/mFfKhtEGTZkfKU7iKSONi2SChdAx43tZsS4uk=; b=Eplg6UcM+YS0QkwUGHYdksd98rQ1jlI1QdIdA36IeZ12BniqBF8CzE2+E4GhmBPtEp zxGthOanhWuSfqZEoItr0llJGmHw/OaE9JC0SQdPAiAxp2Vl/m++wONH/zryTuZRts5i 3wRBsAzSOKpAm2JbZCPrfUn1Wv46he/MhrConvOZHMLehx43Qf7s9DeTfox9CniRg0gy PqjFWQOt2fLl7FklwmKuDq2yJ6uRVB47Q4vyqu3mwmR9FR/OyiIbPbVhEF9GhQy0Kzv2 wJFFOWoF8MRLHp7c/GIcFDeXZsCjR4C/MUxNOFWhSOhkikxOf4ox/tJ91QcD3SOhEH0Z SQgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=okO7qHCm; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z43si11606543edc.389.2019.09.10.12.10.05; Tue, 10 Sep 2019 12:10:29 -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=@gmail.com header.s=20161025 header.b=okO7qHCm; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394034AbfIJPsm (ORCPT + 99 others); Tue, 10 Sep 2019 11:48:42 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35013 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729802AbfIJPsl (ORCPT ); Tue, 10 Sep 2019 11:48:41 -0400 Received: by mail-io1-f65.google.com with SMTP id f4so37895271ion.2; Tue, 10 Sep 2019 08:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=coLUn/mFfKhtEGTZkfKU7iKSONi2SChdAx43tZsS4uk=; b=okO7qHCmIYGdIBDffowQ8Wck3DnmwENwiHbs8BFei3qdB7cleA0izNjAMyKE2F7+ef wtmYj5wqOoXNY0lHRjg92QCpCFjXB2/0JUrhu6PR8cBkoiE51XWVpfLfqECQ90lNNcO1 Q/WD65oXGV9FQBMNEOOEgnk+vaPsuJ7oq95iEELrpo3/BtsaKCYITkhhqxUVRCLvxCtg UxwoBknPo+HoYtYnbnyJfa5cbrMp+vNdrdjtZ/W6g2bBYgWxdtskZeJyZylvf0Rp+QvX x3b1Yuaow7UlwiWtHw5E7iczZuMN0tTZAxA+3+iR3M+lHhxQH5p08KYR9wqt3wDoyqn5 +t8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=coLUn/mFfKhtEGTZkfKU7iKSONi2SChdAx43tZsS4uk=; b=QObwHCamkCWnyo9jvI50Pw7J9x1ryfmbm+BoPG+8sYfNm6p3s8VCpivPHHQqaMMaAo CtDn5n6S8iE/whxsigve8O/TyudPa8qVMGaaAoFlIqPD+gwTmCWdQvYfj0+h86VYLZ9p I4aOwlLHU2qPAsDqNTkcR29cuIh6DZlQ8jREow5xS4+9pymKrX5fgq15Q616Aq102slI trAfhgTHk7W8uJETLqP1xNE23VH2f7BYoy9t41pnPq/Mwrd7vAFiYrn4y7yBdZoeSGer hBPluTlnEkh+nPPQGJjDa+AOwaA1/E6VnGiWlB4FThPsJ82lyHG08vKFoBnFF5b8VZYH CSKA== X-Gm-Message-State: APjAAAWQVA+JMOjOfww7MSyJqnq9+rMiMSTsFE5AtxNutG6YaPyptnbu KOJvw7iz9KN/x+t0UffWiNNt1b4I3ekIjoynBv4= X-Received: by 2002:a5e:de47:: with SMTP id e7mr899998ioq.127.1568130520830; Tue, 10 Sep 2019 08:48:40 -0700 (PDT) MIME-Version: 1.0 References: <20190828150037.2640-1-aford173@gmail.com> <20190905230443.GA52127@atomide.com> <20190909134033.s26eiurpat3iekse@pali> <20190909163543.GQ52127@atomide.com> In-Reply-To: <20190909163543.GQ52127@atomide.com> From: Adam Ford Date: Tue, 10 Sep 2019 10:48:29 -0500 Message-ID: Subject: Re: [RFC] ARM: omap3: Enable HWMODS for HW Random Number Generator To: Tony Lindgren Cc: =?UTF-8?Q?Pali_Roh=C3=A1r?= , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 9, 2019 at 11:35 AM Tony Lindgren wrote: > > * Pali Roh=C3=A1r [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 i= n 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 =3D "disabled" (as Tony alre= ady > > wrote), similarly like for aes. > > Yeah I'll post a proper patch after -rc1. FYI, By putting your node into omap34xx.dtsi and omap36xx.dtsi along with the following, I can get the RNG to work on an OMAP3530 and a DM3730. diff --git a/arch/arm/boot/dts/omap34xx-omap36xx-clocks.dtsi b/arch/arm/boot/dts/omap34xx-omap36xx-clocks.dtsi index 5e9d1afcd422..73f351e6d132 100644 --- a/arch/arm/boot/dts/omap34xx-omap36xx-clocks.dtsi +++ b/arch/arm/boot/dts/omap34xx-omap36xx-clocks.dtsi @@ -259,7 +259,7 @@ <&i2c1_ick>, <&uart2_ick>, <&uart1_ick>, <&gpt11_i= ck>, <&gpt10_ick>, <&mcbsp5_ick>, <&mcbsp1_ick>, <&omapctrl_ick>, <&aes2_ick>, <&sha12_ick>, <&icr_= ick>, - <&des2_ick>, <&mspro_ick>, <&mailboxes_ick>, + <&des2_ick>, <&mspro_ick>, <&mailboxes_ick>, <&rng_ick>, <&mspro_fck>; }; }; I tried doing the same for am3517, but it doesn't appear to work. In fact, the board hangs at boot with no splat, so I assume that some clock isn't running and causing a hang. Figure 4-50 in the AM3517 TRM shows the security_l4_iclk2, so I wonder if the HW mods for AES, SHA, etc are doing something to enable this clock. Those HWmods are disabled on AM3517. I tried turning on the hwmods for them before without success, but I'll try it again. adam > > Regards, > > Tony