Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10782676rwp; Fri, 21 Jul 2023 05:05:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlEqVxxVdzZ4oOj+ZpvXnzm8YAi/HWHpMNvdTi5uozgkR2WoOKDqNXMe6LbaxBwPuRDiMqgW X-Received: by 2002:a17:906:538b:b0:99b:627f:9c0d with SMTP id g11-20020a170906538b00b0099b627f9c0dmr1457638ejo.27.1689941099864; Fri, 21 Jul 2023 05:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689941099; cv=none; d=google.com; s=arc-20160816; b=erlRVxgGG0+klfjvlRHc3myS+p+16nyVN8Svu3JVd9W7yrNGoZGAjmRFFeuJYRZXYC 7qvkuooyFWPpNWKDmi03O/geLMzvc627vJC9bV+UZwIKZRd8u8eI64ji62brOi6VuU5x HN4a3AqvKNxMP/BkNG3b+ye7WnLsa8g5HJltV1ud7aC+s3ynr3z4IEnv6hBtUg6y6ENF NVGsgIrD7t9innl9aN+irtyL9PkswogUuvvB63tZ8lPGTpStm8zN3yx+1OKYPS6OBGlh s1xxQwsYswVo8IZc77qJtGpm7Y6qAutRmnR2XQ94/2KjZ0H+op7R0ZvPl1HCtf2S4gC+ TPCw== 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; bh=tU19rkbsEQCBnXx6DtHRkDS2oVBrsVgNO3gn8Ia84Cg=; fh=dV7QIJwPEXyZldq/35teVm/nYFGskbyR46jCG60t4m4=; b=rPP4SPuX8Eb6tvvd1cn94lajEUPQH5zXAnPNUI4a4MhrQeY1fumP2oxj9IcB+r8xdk v2/4ODSwoTZj4gZvsVmHSEEXgigFZxjbbP0dn/VO2EF6nAJV0kgca8eHLk3H8EfyTnQB G1pRCHmLm+gHylLJLS1wnsIc77Sfa+gNR+gP60Go9x7sfwDPl+DUgYLryaEhy8153N1c hiUOoJFo66Jup9pRaoIYEB7DzGO0ZgMBIUP/I2cP+nxFTlda1pG1UtrEJlFwfEvpgWpV 3YRBHE/K+x+nv/0x0OLAzpy/1seClV4HS9qJTTYJbhmHEqV2sBGVDzPddOI05uoo6m5s 4GHA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id md17-20020a170906ae9100b0098e3591d105si1977367ejb.405.2023.07.21.05.04.18; Fri, 21 Jul 2023 05:04:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbjGUL7t (ORCPT + 99 others); Fri, 21 Jul 2023 07:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjGUL7s (ORCPT ); Fri, 21 Jul 2023 07:59:48 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5DAB3171B; Fri, 21 Jul 2023 04:59:47 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7FB2C2F4; Fri, 21 Jul 2023 05:00:30 -0700 (PDT) Received: from bogus (unknown [10.57.96.100]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BD21C3F6C4; Fri, 21 Jul 2023 04:59:44 -0700 (PDT) Date: Fri, 21 Jul 2023 12:59:17 +0100 From: Sudeep Holla To: Ulf Hansson Cc: Cristian Marussi , Viresh Kumar , Nishanth Menon , Stephen Boyd , Nikunj Kela , Prasad Sodagudi , Alexandre Torgue , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 09/11] cpufreq: scmi: Add support to parse domain-id using #power-domain-cells Message-ID: <20230721115917.lescikl75kmeqkw4@bogus> References: <20230713141738.23970-1-ulf.hansson@linaro.org> <20230713141738.23970-10-ulf.hansson@linaro.org> <20230719152426.qwc5qqewrfjsarlz@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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 Fri, Jul 21, 2023 at 01:52:17PM +0200, Ulf Hansson wrote: > On Wed, 19 Jul 2023 at 17:24, Sudeep Holla wrote: > > > > On Thu, Jul 13, 2023 at 04:17:36PM +0200, Ulf Hansson wrote: > > > The performance domain-id can be described in DT using the power-domains > > > property or the clock property. The latter is already supported, so let's > > > add support for the power-domains too. > > > > > > > How is this supposed to work for the CPUs ? The CPU power domains are > > generally PSCI on most of the platforms and the one using OSI explicitly > > need to specify the details while ones using PC will not need to. Also they > > can never be performance domains too. So I am not sure if I am following this > > correctly. > > Your concerns are certainly correct, I completely forgot about this. > We need to specify what power-domain index belongs to what, by using > power-domain-names in DT. So a CPU node, that has both psci for power > and scmi for performance would then typically look like this: > > power-domains = <&CPU_PD0>, <&scmi_dvfs 4>; > power-domain-names = "psci", "scmi"; > > I will take care of this in the next version - and thanks a lot for > pointing this out! Yes something like this will work. Just curious will this impact the idle paths ? By that I mean will the presence of additional domains add more work or will they be skipped as early as possible with just one additional check ? -- Regards, Sudeep