Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1786647imn; Sun, 31 Jul 2022 23:11:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1viDGuc6R7oPVIViJH1M5AaG0FGIq04Ew9t0BuHAQjPZyM+FDSlHJI3TMdkEkugV4Z2mRbl X-Received: by 2002:a05:6402:15a:b0:431:71b9:86f3 with SMTP id s26-20020a056402015a00b0043171b986f3mr14252713edu.249.1659334306886; Sun, 31 Jul 2022 23:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659334306; cv=none; d=google.com; s=arc-20160816; b=TMWNw8cqumaHmO3+elErJ3avFmpsxzBrowLNriyoef+lPxgr92/4F7U9PtZHkh4WZH wF8AW5QDQzFlc9d2n8oDuJRrTHtAog7MLzHS27wiIS60APcPQeVT9uJrR4zaov7BY3/9 y/cgFj04URb+gs/I8OttjmQu/xS4hf3kozUPHfZrFp77fjztLyfs/UnOcb1x0oYs2LKY SUCHF9dngOTw7jzi3eZtLAsUsrBJug2Naf49q9EDxkSRNG3M9k6ZUsiaKGfv0adMZb4C NO0sk0sF8anYsa+ql7I7LJdVi5QNhAQo8CMPyaJ1Zz9qer9MyAsDwGsyElmA4eoHCRIe lRxQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Sf5Z71WrTDegTRiuIcmq4xFUB/DCSZQba6gKIKesIN4=; b=u4Pxr184pS/pj1k/jLAw5R/BaS2uz9Ik9aPq6oKDE2nb0QnFdMHPu+J2c0Nq3Lu4fM fXaVS8fqKNNoN32gENURIC7bpKBsVqQrMjHyy9EfSoUlTbGLt0tW5wtk9gFYMFeAGiEy RTeQwjG0ZMNYOm1EQ7DtwzFYcHFqe5vFhXymhyQGtZIHLSLQP5HlIc050t3dFKjjBOW7 YQNp4/hQYgT5ZVcX9OULxpgPlw0UD+2kIBEBWVbFJlkxfaJoaJjlB3vxOOw2F/e5i1NG bB0yWy/R8Nxg5cxxXHGK37QpinBxdCiSa0FnM4evbPEvUArpU29ea0EHJm5JMMlkhawj en/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uv/bntGh"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a170906974b00b0073075569d05si3719816ejy.878.2022.07.31.23.11.21; Sun, 31 Jul 2022 23:11:46 -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=@kernel.org header.s=k20201202 header.b="uv/bntGh"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239654AbiHAFnO (ORCPT + 99 others); Mon, 1 Aug 2022 01:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231483AbiHAFnN (ORCPT ); Mon, 1 Aug 2022 01:43:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8425F13DEB; Sun, 31 Jul 2022 22:43:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D16D860C93; Mon, 1 Aug 2022 05:43:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A91FDC433C1; Mon, 1 Aug 2022 05:43:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659332589; bh=GsGF8A4Me4IQT0F9GvKCQUBEMKLVc7qayH0CzaMRxE8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uv/bntGh5sgvS9Mm030zD5YjMm0KSOsVTmJ2zCMMkP0eDlk3DDFibIkO5TgLEOWS+ HOry+Jf1cRNvOngT2lMtgyHdm7k//Wez9OQQFk1AdAYoz475TMAZ3A4mA7uHYeafxI RQD5OpTuZ9YybIWaOektt0IJnta/E+ZnhB/1ESWgWblwkWvfLA1vOsRtjrwlcp7aJg I8Rtr5vGKxfiPhGpyMW6LUohqyVK5weFKF7QYNOeOt7vxcQ1fBv58pC8v3FoZHq1M5 80mtBsjQe9oLTvoT5gw2ZRsLyc03R/8DoMhvAyo5HJ9v798VaaYJyN/2bnVv9YxskM rGzp29fXLaP5Q== Date: Mon, 1 Aug 2022 11:12:55 +0530 From: Manivannan Sadhasivam To: Viresh Kumar Cc: Manivannan Sadhasivam , Bjorn Andersson , Andy Gross , Krzysztof Kozlowski , "Rafael J. Wysocki" , Rob Herring , Vincent Guittot , Johan Hovold , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [RFC PATCH 0/4] cpufreq: qcom-hw: Move clocks to CPU node Message-ID: <20220801054255.GA12039@thinkpad> References: <20220715160933.GD12197@workstation> <20220718015742.uwskqo55qd67jx2w@vireshk-i7> <20220801023756.76jswkbwivuntqof@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220801023756.76jswkbwivuntqof@vireshk-i7> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Mon, Aug 01, 2022 at 08:07:56AM +0530, Viresh Kumar wrote: > On 18-07-22, 07:27, Viresh Kumar wrote: > > The OPP tables, which are part of the CPU nodes, mentions clock rates. > > Are these values for the cxo/gpll clocks or the clock that reaches the > > CPUs? I believe the latter. The DT is not really complete if the CPU > > node mentions the frequency, but not the source clock. It works for > > you because you don't want to do clk_set_rate() in this case, but then > > it leaves other frameworks, like OPP, confused and rightly so. > > > > Normally, there is always a difference in what the OPP table contains > > as frequency value and what the hardware programs, mostly it is small > > though. It shouldn't prevent us from having the hierarchy clearly > > defined in the DT. > > > > Based on your description, I think it would be better to make > > cpufreq-hw a clock provider and CPUs the consumer of it. It would then > > allow the OPP core to not carry the hack to make it all work. > > Bjorn / Mani, > > Can we please get this sorted out ? I don't want to carry an unnecessary hack in > the OPP core for this. > I'm waiting for inputs from Bjorn. @Bjorn: What do you think of the proposal to add qcom-cpufreq-hw as the clk provider for CPUs? Thanks, Mani > -- > viresh -- மணிவண்ணன் சதாசிவம்