Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4006935imw; Thu, 7 Jul 2022 11:03:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tUb12bTkMRr8Irb88Wb1AwQf6Nddrs/Id+/ZJiJogWItHG3gCc/y0dinEZNwqt21tJkRfD X-Received: by 2002:aa7:88cc:0:b0:51c:319e:772c with SMTP id k12-20020aa788cc000000b0051c319e772cmr53132959pff.41.1657217027478; Thu, 07 Jul 2022 11:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657217027; cv=none; d=google.com; s=arc-20160816; b=xwd45eqw7HZmDSc+j8kk/SfIhoxHbt/NSjvjnFGDshS74HzGFYcv006RKn5cPZhpMI aLJj7L+B0Bl2At1iVfT1rG0GI/iJ5Gy3+b1clbMKoTkxpBynCLgJqovuUjmh3bl1Q/bU HHjfrwMSaorxfftsB8ljmScdSZ0cIGw1PjqdbYcYNYwZ8KxMpzIa8Ipt9KYkZ5N31bVK z8/OiBr2uPro7t3ffT3DGWuHbaeyDGz8BlTpx8PalhSyhlvXeHBECqORUZ7yG7ESydab HFk4dN/e9p8mdk2GBHqMss/Jw8W5mstGOMndZXyOJPG6zVk5ENf+Cr04ZNovNJUcxzsk V5qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0YT4EV5cBfAPoVqhlohBFaPjrHZ4lvPAYsZOML+lEwk=; b=fKmixcOt5Hayua4mQuyvp5WzUogS35tX5z7j4kiYBa8YRB4Z4cdoGLUOPkAe5tw8ZM QwxkUP5I9VXCPn2aWD+Ci9Hvvy8beXhup7MnZfK/gP5Po44H9GZSEGayeEOzgZJxhGye Vo3OCJzFKw5ZIDNxxT62V4Fxofg1iETpvfJrwUqKySmD5obj307suap3thm4C1nw0L2W hwV19AX7K0dQRLNEgXgBhi8148j6bpFiNvpe6KbmwtYTEBM7XdeJSWvB0wklULNoZ2m4 m3l6yc2ml4OTBsf/TNjQGmL1+MHRZ45UXmvwUgNcIC3ghzs3XzaX8nxe+1zBBrt+Kj2q OuVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=IGMxW4tP; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg5-20020a17090326c500b0016bf48465e7si9794202plb.380.2022.07.07.11.03.35; Thu, 07 Jul 2022 11:03:47 -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=@ti.com header.s=ti-com-17Q1 header.b=IGMxW4tP; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235956AbiGGRSd (ORCPT + 99 others); Thu, 7 Jul 2022 13:18:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235803AbiGGRSb (ORCPT ); Thu, 7 Jul 2022 13:18:31 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BC7E200; Thu, 7 Jul 2022 10:18:28 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 267HHYF0046858; Thu, 7 Jul 2022 12:17:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1657214254; bh=0YT4EV5cBfAPoVqhlohBFaPjrHZ4lvPAYsZOML+lEwk=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=IGMxW4tPAGw7ngaSL1sq+JiJgEXkUbZCGnWuZHsMG47G9zANDKB9XQhidQJxXDnkW x54bFr6nt4WJQmoBnzx68pqiWLdVZ1rIwupWHPkbOaYR78l16SCJO9mJsMmaiUeWN7 CfdCC+xs+2txuhyW7XYCHprFkmZLgpUS9l3asdm8= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 267HHY3u059121 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 7 Jul 2022 12:17:34 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 7 Jul 2022 12:17:34 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 7 Jul 2022 12:17:34 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 267HHYHH007768; Thu, 7 Jul 2022 12:17:34 -0500 Date: Thu, 7 Jul 2022 12:17:34 -0500 From: Nishanth Menon To: Andrew Davis CC: Bryan Brattlof , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , , , Subject: Re: [PATCH v2 1/4] arm64: dts: ti: k3-am65-main: Disable RNG node Message-ID: <20220707171734.e22t5rx5ux7k5kcr@magnetize> References: <20220706190838.26074-1-afd@ti.com> <20220707144400.tk3wmpeijdhuxpzv@bryanbrattlof.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.1 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_NONE,SPF_PASS,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 On 10:01-20220707, Andrew Davis wrote: > On 7/7/22 9:44 AM, Bryan Brattlof wrote: > > Hi Andrew > > > > On July 6, 2022 thus sayeth Andrew Davis: > > > The hardware random number generator is used by OP-TEE and is access is > > > denied to other users with SoC level bus firewalls. Any access to this > > > device from Linux will result in firewall errors. Disable this node. > > > > > > Signed-off-by: Andrew Davis > > > --- > > > > > > Changes from v1: > > > - Added comment in dtsi file > > > > > > arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > > > index e749343accedd..9de5a8294acd6 100644 > > > --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > > > +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi > > > @@ -127,6 +127,7 @@ rng: rng@4e10000 { > > > reg = <0x0 0x4e10000 0x0 0x7d>; > > > interrupts = ; > > > clocks = <&k3_clks 136 1>; > > > + status = "disabled"; /* Used by OP-TEE */ > > > > Just curious about how we should document disabling nodes. I was > > assuming the reasoning should be described in the bindings? > > > > I would like to start disabling nodes by default in our dtsi files and > > enabling them in our top dts file, making it easier for others to use > > our device tree for a more focused purpose than our dev boards. I just > > didn't know where I should document why I disabled the nodes :) > > > > This got push-back last time this was suggested, I'll have to lookup > the history. IIRC we landed on the other way around, all things should > be described by default, then the specific board can enable/disable > what is not used as needed. See thread https://lore.kernel.org/linux-arm-kernel/YiizsYnKB0X9bDY2@atomide.com/ > > I was worried this topic would come up with this patch series and was > almost just going to delete the whole RNG node instead of disabling it > to avoid that. My reasoning for disabling here anyway is that this device > *cannot* be used by *any* board, it is not just a board level configuration > decision like disabling I2C nodes by default or similar that was proposed > last time we had the "nodes disabled by default" discussion. Hmm.. If that is the case, then why even have it in dts - is that because of cases where OPTEE is'nt the TEE and users may want to directly use it? OR is it because OPTEE can potentially use device tree itself and discover the rng location from dt? -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D