Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2F6EC64ED6 for ; Mon, 27 Feb 2023 04:23:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229700AbjB0EX5 (ORCPT ); Sun, 26 Feb 2023 23:23:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjB0EXy (ORCPT ); Sun, 26 Feb 2023 23:23:54 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 578FD1117D for ; Sun, 26 Feb 2023 20:23:53 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id z2so5394238plf.12 for ; Sun, 26 Feb 2023 20:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=oQlnkGbC1NS46yQPlx3GF1Mmqdcawxkv2CKfR4b4ofU=; b=mg1fXSBo+5tXyR+fr5RDmzVtL9b97oxbj5oafuYXmoB2NWHcjfwqPGQnQgJFKLLAFP wlNBx5XW1CMVKs2emjPvYnQufP30xPZaai43ebnaI9TFpiXphIfj3a/sWQrEpYM6xSWP b5+IZnQtLuWPwAeQiYJTMyROT0oumYVKmuqj0MX6jySWKC/UfMv1nLuDgdnp21VTI4u5 V1anyd0Fl8iar8KxoNm16mryRmT1juwCcALX7dLRt0uCmzJW/D32wNDyP5p0L7Sax9dn PuMah8m9LQDGIgsa2itbGniLQkaLNQx0EAAeTVe2+PFsRlZ5JttAkAsy/2P7sK9s0aHU AWpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oQlnkGbC1NS46yQPlx3GF1Mmqdcawxkv2CKfR4b4ofU=; b=xaqc7xGb/NyGP05lByAOHXlVKSyZ7+nByiJU1Gusc1rXOLLSVkrTES/IF7aFb5KMLa nTSd/EFSKuMMG22+6blfFK9cxxsx0U8/azh/Wj1vei3fe4XHPehFeWT7dtGhBEVSKErs aImvZTG2Y0iBl39dTt/oUJmydBhs+WHY/cB5sNx1bZAllVbihcvrZS+hS6WBsOYolw7R N3YOj7BHlAkTP5OND3U7pJE8Ujfl2oauyfMnSa/TGWQKstLAgKIAbd9+MWTqLxzPn8eU /iPmIb1rQlvjxphXDKK7M33W4VQhraeEn1jFl21XdnqNL7IAHTjhBMBG9E036zZ/3RNB XwBw== X-Gm-Message-State: AO0yUKUBMO6oAbEGQl7JvJ8rOifqMa0l/Mrkfc1JnnazDGer6bn7iBj/ i6vK+HOasmsumcEqI8fUX4is+w== X-Google-Smtp-Source: AK7set8Ac55n+05ov9iu10t1ydja691duzF5DrkR5xpmWOLtxk+uLB9pJDst3cyTTsYAl2tP393mZA== X-Received: by 2002:a05:6a20:549a:b0:c7:b65:cb3b with SMTP id i26-20020a056a20549a00b000c70b65cb3bmr7897574pzk.10.1677471832690; Sun, 26 Feb 2023 20:23:52 -0800 (PST) Received: from localhost ([122.172.83.155]) by smtp.gmail.com with ESMTPSA id q2-20020a656842000000b005026c125d47sm3074844pgt.21.2023.02.26.20.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 20:23:52 -0800 (PST) Date: Mon, 27 Feb 2023 09:53:49 +0530 From: Viresh Kumar To: Jun Nie Cc: cw00.choi@samsung.com, Nishanth Menon , "Rafael J. Wysocki" , Stephen Boyd , Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Manivannan Sadhasivam , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] OPP: Simplify set_required_opp handling Message-ID: <20230227042349.3p2ijo6s6yyqc267@vireshk-i7> References: <20230224021713.stpcykx2tjkjwyti@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24-02-23, 16:17, Jun Nie wrote: > For the opp lib, this is right direction. We still need to find a method to > pass devfreq device node to opp lib, just genpd_virt_devs for power domain. I am not really sure I understood it all. What is "device node" ? DT node or struct device ? What exactly do you need ? > But I am not clear below is the right way yet and this also involves wider > changes. Or the opp's owner, devfreq device can be referred via opp lib? > If so, we do not need to add devfreq-devs to cpu node at all. > > cpu1: cpu@101 { > compatible = "arm,cortex-a53"; > device_type = "cpu"; > power-domains = <&cpr>; > power-domain-names = "cpr"; > devfreq-devs = <&cci>; > devfreq-names = "cci"; Why do you need these ? > operating-points-v2 = <&cluster1_opp_table>; > }; > > opp-200000000 { > opp-hz = /bits/ 64 <200000000>; > required-opps = <&cpr_opp3>, <&cci_opp1>; This looks fine though. > }; -- viresh