Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1167636rwl; Thu, 10 Aug 2023 07:24:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH78x8NwMyPA8zz81Pmkx6PG+iQ8ButLKqDi+FG+3UsGUw2Ua8SdcyxLtPywceg/E3rnmdd X-Received: by 2002:a17:902:b287:b0:1bc:7441:d81a with SMTP id u7-20020a170902b28700b001bc7441d81amr2153738plr.6.1691677470236; Thu, 10 Aug 2023 07:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691677470; cv=none; d=google.com; s=arc-20160816; b=ZaftMvEr2+UXj5zeY8eHKi4gyBUgv24TBLOxNX8NXDLL9sbuboPxWZ3J1QviQKc16w bZCsLM+XUUyuRi+9MCPa5hs1iaRDdo+7YmTHyz99eb9CF4TygJFzMBE/Ovav1J8WFZsQ VJctdmaligr+83c88hIu1Onnrsgb0Y2yCPiMvH7l7+BQxc0k8ydqe/9Gv6i054jmgYHe m1qiWu8Tp2VBRo6znkE0ZtYgHTNEjLRQT6c/ppRBWhG6tbpkV6eUoN5fF43WO+/VGw6h 4Z5DoOWjRaa+4yEB20dyqEVRmYxpc6qrstS6T5FLxk6XFM8waaCzu+tuZB7Tj7XmWkej PcwA== 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=uYZTDKeU4rsKqk+u8ek7UbQLVm8hR2nUi3uxOCTh2hk=; fh=Cn/iS/4piDio9K1/dSP0LbNJxVYoZz3QreY7hedFkj8=; b=nkKDPwgqRSEUo+BIxBqujL7MHC9AnSkkFvjSmcqP7ohIOrHWUF0+aS4vONWrH//GtN SFQdNebfO3Bho3GOYBMZ7QjJ/lRDNZNw4T9Wkp47D3Kf+pacMYAOiuL5aSD/WNITUG9C fORCQXmboBZ7krX7jvkj/V2RP5V/+N/qTLD99iFYFkO9uwMbdif601JzuzAY6yTEOjaj CGtUYRutgKEZdC/sR3akr4kAf7cep6uzqM1x9+bYy+ICKvIeQqw8VEv5X6aGvFHt74Z5 slV34+iBBTgU2l6S2IK+c0nS8IF99/9na7gSovuelV61zZ4xeRHXb0RZ5vz3gEvyqu6v FwoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kX7GRbrD; 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 le6-20020a170902fb0600b001bc5a4f56fcsi1475177plb.554.2023.08.10.07.24.16; Thu, 10 Aug 2023 07:24:30 -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=kX7GRbrD; 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 S235479AbjHJMxw (ORCPT + 99 others); Thu, 10 Aug 2023 08:53:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233199AbjHJMxv (ORCPT ); Thu, 10 Aug 2023 08:53:51 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BB6F2698; Thu, 10 Aug 2023 05:53:49 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37ACrRub048755; Thu, 10 Aug 2023 07:53:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691672007; bh=uYZTDKeU4rsKqk+u8ek7UbQLVm8hR2nUi3uxOCTh2hk=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=kX7GRbrD+5zRm5zUc3Yi0QiZgUVjtXylr+atGu4O2uN0uj3Y03YFgAjKg7gRdPUjN Tp1PbcqNQ62lHkts5PN9B4Qjwijow8KO59kkhAS9kC22YNE9lkngf7CHxuISNH3vLG KVv/cWTCTAtDandZVhcX6zrAx9yNjonEjgLpWyAs= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37ACrRC3129971 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Aug 2023 07:53:27 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 10 Aug 2023 07:53:27 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) 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, 10 Aug 2023 07:53:27 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 37ACrR3l130327; Thu, 10 Aug 2023 07:53:27 -0500 Date: Thu, 10 Aug 2023 07:53:27 -0500 From: Nishanth Menon To: "Kumar, Udit" CC: Apurva Nandan , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rafael J Wysocki , Daniel Lezcano , Amit Kucheria , Zhang Rui , , , , , Keerthy J Subject: Re: [PATCH 2/3] arm64: dts: ti: k3-j7200: Add the supported frequencies for A72 Message-ID: <20230810125327.pq2fxda7dpv2qf7t@seizing> References: <20230809173905.1844132-1-a-nandan@ti.com> <20230809173905.1844132-3-a-nandan@ti.com> <20230809190943.unpcbrinyn5ppei7@hydrated> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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 17:23-20230810, Kumar, Udit wrote: [..] > > > + opp1-750000000 { > > > + opp-hz = /bits/ 64 <750000000>; > > > }; > > > }; > > > -- > > > 2.34.1 > > > > > Are you sure this is correct to enable all OPPs without efuse bit checks? > > > > https://www.ti.com/lit/ds/symlink/dra821u-q1.pdf > > 7.5 Operating Performance Points > > DRA821xC operates only upto 750MHz > > DRA821xE at 1GHz > > DRA821xL upto 1.5GHz and > > DRA821xT upto 2GHz > > Looks, top SKUs is considered here . > > After detecting which SKU we are running (I hope TRM should have this > information- through efuse or some other register) > > I think, we can follow two approaches. Both of these are wrong approaches. > > 1) have OPP table for each SKU and select based SKUs type or This proliferates cpu dtsi to make it hard to manage > > 2) Do run time fixup by u-boot based upon SKU type This wont work: a) in u-boot's falcon boot mode and puts unrelated responsibility to bootloader (u-boot is not the only bootloader in the party here). b) Further, the reason for doing the opp detection in the kernel is due to the severity of consequence of attempting to run a lower rated chip at higher frequency - PoH (Power on Hours) or physical damage can result. c) Finally, in a virtualized environment: TISCI will get DM (Device Manager) to arbitrate between the each of the VM's request, but if the VM's are'nt self sufficient, we will have DM making wrong choices resulting in (b) condition again. This is the reason why drivers/cpufreq/ti-cpufreq.c exists and all SoCs that have OPPs from TI is handled in the kernel itself. -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D