Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5958541rdb; Thu, 14 Dec 2023 04:51:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHX+75cDyKPsc1uPJzy+VeeOGc56i5iD1Es8E+uqUHAXJJpWN3uEdXavunxgmJgRy+mwCYx X-Received: by 2002:a05:6a00:cc5:b0:6ce:2ec0:636c with SMTP id b5-20020a056a000cc500b006ce2ec0636cmr5368509pfv.17.1702558313113; Thu, 14 Dec 2023 04:51:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702558313; cv=none; d=google.com; s=arc-20160816; b=I+rvKMyMcdhbusLpenIBtgm1VAX9yFBrVHucUh9pMad76t6Njtt1Hlg3qsuKcAc/Gp mktEdirPdNsm7t9olw8uEj39vQLd9F5gNL9/8RYhTpD+81zB1ci3L4JPgtMJPtjK+f/5 lh2MQJq9Z6M9TVtWDpmDxXfus5Qq7xQC1N1fzcSHmimw1R4qqGd5mAjUX0Sym839gMhw uSn3heMiqKhonxYlFDN3q9wc1jEnAkCVG4aaWKiBYOtLDrT0xByA+L5juPdPyrXAnpH4 BCc6ZcXHszidYPbQLecJYdVeSRxmUeMGCqgogVFgmEM+iOy6pR1YQxVPJhtyBLUPGM2d hh0Q== 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=/9jtNyDDhoXaq6g2ujsv+iw1ZZiTAQQuZfO9t1kVU6w=; fh=NHnKga+GKsKnLdbEBFQnFVU22A77XIYBbLcKYnriIMQ=; b=o6nJ5TL1sjQDabbrT7sOhf6V9l5iWaNy7JAyI1fUCmev5e873WulGCheBaHCCJC5zz v2Ifw9e+JNqcJp8Q2lgTLsHfWXy+GiNST20EyRx+45QXQPINPtp293eZATp4qURHK4mT xybw7UZ00pwuzz8fofhxoCG5aASwjWQDcejqIz+FClRF2J0FG22tG6JXohxjNnCU4jtm B6ATZxBZxkNZ0ya6iGNMXMc/epC35hRq2ul7vmIjCi96WOiFMNGOF0GL5lQw/joPNCMy xiySr5raYcbgQ4KZ4DKT1eKXaSYmDGZqKyz7aJh5jcYcEDkQKelEjXKzOoFvCTb9bfyJ ghqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Xsc4kUvH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h16-20020a056a00219000b006ceda12a350si10958132pfi.227.2023.12.14.04.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 04:51:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Xsc4kUvH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 59DAB822E55C; Thu, 14 Dec 2023 04:51:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573146AbjLNMve (ORCPT + 99 others); Thu, 14 Dec 2023 07:51:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573131AbjLNMvc (ORCPT ); Thu, 14 Dec 2023 07:51:32 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BFB7113; Thu, 14 Dec 2023 04:51:38 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3BECpVch033275; Thu, 14 Dec 2023 06:51:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1702558291; bh=/9jtNyDDhoXaq6g2ujsv+iw1ZZiTAQQuZfO9t1kVU6w=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=Xsc4kUvHW7ogRvhZTpGMqPGZZNt/rdOu2gRjGflGmaQ7ZiXldTdFEp2vgKeimEgK2 T33YHrvr/vGgZQtIKOydUqJzJI+vx27ncfxw1ta0uTFDUS5N3TdWc8WFdUXO/9WcNH YUUjDTyb07+vs3qfsLULo3znK6xl9cP7jK8B/RqI= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3BECpUWS032389 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Dec 2023 06:51:30 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 14 Dec 2023 06:51:30 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 14 Dec 2023 06:51:30 -0600 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3BECpUD9103783; Thu, 14 Dec 2023 06:51:30 -0600 Date: Thu, 14 Dec 2023 06:51:30 -0600 From: Nishanth Menon To: Neha Malcom Francis CC: , , , , , , , , Subject: Re: [PATCH] arm64: dts: ti: k3-j721e: Add support for DFS in J721E A72 Message-ID: <20231214125130.zqtq6ioj4c533wha@elbow> References: <20231214075637.176586-1-n-francis@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20231214075637.176586-1-n-francis@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 14 Dec 2023 04:51:49 -0800 (PST) On 13:26-20231214, Neha Malcom Francis wrote: > Add 2G, 1.5G, 1G, 750M, 500M and 250M as the supported frequencies for > A72. This enables support for Dynamic Frequency Scaling (DFS). > Just curious, since I picked up the PMIC support... can we do dvfs? if not, please indicate that in the commit message. > Signed-off-by: Neha Malcom Francis > --- > Boot logs: > https://gist.github.com/nehamalcom/e3c3d0446f0467e7fd28706f7ffaeea8 > > J721E SoC has three different speed grade devices (see [1], 7.5 > Operating Performance Points) which as of today are indiscernible in > software, users of a different speed grade device must manually change > the DTS to ensure their maximum speed frequency is supported. > > [1] https://www.ti.com/lit/gpn/tda4vm This is critical info in the commit message and in documentation of source. I am also concerned if the table should be separated out as a dtsi and included at board.dts level to prevent downstream users going crazy.. Are you absolutely sure this has no detection logic that can be implemented? Almost all TI K3 SoCs seem to have a standard scheme to detect the speed grades till date. /me wonders what the heck happened here.. > > arch/arm64/boot/dts/ti/k3-j721e.dtsi | 35 ++++++++++++++++++++++++++++ > 1 file changed, 35 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi > index a200810df54a..fe92879f5812 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi > @@ -48,6 +48,9 @@ cpu0: cpu@0 { > d-cache-line-size = <64>; > d-cache-sets = <256>; > next-level-cache = <&L2_0>; > + clocks = <&k3_clks 202 2>; > + clock-names = "cpu"; > + operating-points-v2 = <&cpu0_opp_table>; > }; > > cpu1: cpu@1 { > @@ -62,9 +65,41 @@ cpu1: cpu@1 { > d-cache-line-size = <64>; > d-cache-sets = <256>; > next-level-cache = <&L2_0>; > + clocks = <&k3_clks 203 0>; > + clock-names = "cpu"; > + operating-points-v2 = <&cpu0_opp_table>; > }; > }; > > + cpu0_opp_table: opp-table { > + compatible = "operating-points-v2"; Don't you need opp-shared ? > + > + opp6-2000000000 { > + opp-hz = /bits/ 64 <2000000000>; > + }; > + > + opp5-1500000000 { > + opp-hz = /bits/ 64 <1500000000>; > + }; > + > + opp4-1000000000 { > + opp-hz = /bits/ 64 <1000000000>; > + }; > + > + opp3-750000000 { > + opp-hz = /bits/ 64 <750000000>; > + }; > + > + opp2-500000000 { > + opp-hz = /bits/ 64 <500000000>; > + }; > + > + opp1-250000000 { > + opp-hz = /bits/ 64 <250000000>; Could you add clock-latency-ns ? > + }; > + > + }; > + > L2_0: l2-cache0 { > compatible = "cache"; > cache-level = <2>; > -- > 2.34.1 > -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D