Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10781461rwp; Fri, 21 Jul 2023 05:04:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlGWaXpErXbx/F4z86wJIvnUNo6emxGxGooyA5CzDO9QZyY2+rT9MUrfjFjxscH1HO0gZfh/ X-Received: by 2002:a17:906:31d6:b0:997:d4ee:1b53 with SMTP id f22-20020a17090631d600b00997d4ee1b53mr1510696ejf.48.1689941052929; Fri, 21 Jul 2023 05:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689941052; cv=none; d=google.com; s=arc-20160816; b=NSm2MDZDqSk/vpaJKvR/EETJnmtzb/J+d52zQwxtgDccNTJxDsZADPDr62DEfu5704 Ieh/OZa9EiLa1GtHpYdlA2kjq7//T6U/emn/bjIMMfX/QcAtMoDWNaKTqODsAOJD2LMo kq2TZCldQ3D+dnbx2OgDYQLMXN5PFbTHOvirdxt2Dn8H4P7snQJf5PMv14QEJNlqh2M8 6HderKIiytqxDgaWMJcHJkXLzefLStISO6QNsvPNRuZLSlTs5fuYr4gS6Ssuh3ZPsRFC xpBk8mAnEbiVAQ4PNKD/7dU/oqyyr7PRr1KCo/Nez51U6m0zivyFCap+49ETLIi3rSkC yTKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/fxuqcvjNlrKwMc4wwhYKznxhsZSVT5gN9Y+RioTAqk=; fh=gp3+2IhevXoxU654OfPwB16Yo5lAyzz8ZaMXY4FxOPs=; b=kumIn8wiEw6xzrKWn6uSEzJ3ZXvpw5Jut6F/maV+nzoRZNT6VB000cDFm1Wrml7bwE X5B8koBcEDP02W0R3QSwt/DoF7ACnAWo34U4xcOPNkVtc/tdhheDt64eXqkqlMDS5o1h 6pfzKTbbQhJBPiTF6+Z+hoT6KHAikoXCnDyy3QgMZDUyEvIa+AKGKQyKBTtu6lQxxfV+ ckr/5O3uuQBTDxoGQPdqE2XdZtlS9ki8Z6qOe9s21QKELTBa1/ZCWIRfWSqMW8VWEhfy fyiJcEKopG1SdTg0pcNX0FQNOwaIW96POExe1MODPfUiQj92068UH/PYNwQtgRA1dKS4 9o2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TQf3yhOw; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x21-20020a170906149500b0098e4aef078esi2063713ejc.778.2023.07.21.05.03.46; Fri, 21 Jul 2023 05:04:12 -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=@linaro.org header.s=google header.b=TQf3yhOw; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229551AbjGULw5 (ORCPT + 99 others); Fri, 21 Jul 2023 07:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230136AbjGULwz (ORCPT ); Fri, 21 Jul 2023 07:52:55 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EE872130 for ; Fri, 21 Jul 2023 04:52:54 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-cc7863e7b82so1721001276.0 for ; Fri, 21 Jul 2023 04:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689940373; x=1690545173; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/fxuqcvjNlrKwMc4wwhYKznxhsZSVT5gN9Y+RioTAqk=; b=TQf3yhOwJAeHFWlt32JBzHWQnLL7uGsHRp/NFuL9RV1IWslYKWQzvKC+Pgv32QAUQ/ 6WywXBGQvWLLFkpLOE/b1g6TmiJcz9lxvobsasNcQSDA5zy/JFVZh+e0DVBEvwOEd6ei NoXSBSPeCIYUnyZr1T20mjcI1Z1acprCKzVZXGNYbixWl6TsZJs2eHql5pUZyIWHEpDn eSkM+8fAF0kylgHrqRqCNjYUuFW4CbLPxoI2oLj/jg5bOL+mVRXk9huJlLF2TBEfscTD ZUp4QLoxlIwXl0td94qpnsqnZ7wz+VEzmyCHgW6szkBoS+tS16+YJ81zl9sdPfZ5d3QH cdRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689940373; x=1690545173; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/fxuqcvjNlrKwMc4wwhYKznxhsZSVT5gN9Y+RioTAqk=; b=OKyROO4ZzZ5oM5vT8xaCb89Kd4W2iVEfbvAEL4MVExzbylQPFU84L9p89EHG1DKEXM cS4SDiThpZpRag8Yv+z1Opw+E0v1BE0wAwpwguxLP75WeWevLdVfkl+UZm5/wOYDBitr aNx1545yFdcP2Uje34ATRcK+qQ7eD6tUlAksBqgrPMxBcoXBiFtVf0DEn0YJaiW9yAeW rHphF1Skz6CEkQ6SZ+t6ZUN1vdd4c2bN/iljarG7fC+b4mws98IO1J0BV+7C919i0kqw f0Su5s2Du0IfL558gLsOS0ZfoyYkAR/7nG4RnhtGiILQBuF0X7oiXmK00sqzHNjTKKLM QGiw== X-Gm-Message-State: ABy/qLZYnWIfhsqhNuvJuSt3gNle2ygOw1Bwz7gF4lB/11CalEwwYnLB YTkduDuI30JPvX9eOTdZCd+/cUXXkvkqOIY3xExJjw== X-Received: by 2002:a25:8485:0:b0:c69:54aa:d441 with SMTP id v5-20020a258485000000b00c6954aad441mr1467980ybk.34.1689940373619; Fri, 21 Jul 2023 04:52:53 -0700 (PDT) MIME-Version: 1.0 References: <20230713141738.23970-1-ulf.hansson@linaro.org> <20230713141738.23970-10-ulf.hansson@linaro.org> <20230719152426.qwc5qqewrfjsarlz@bogus> In-Reply-To: <20230719152426.qwc5qqewrfjsarlz@bogus> From: Ulf Hansson Date: Fri, 21 Jul 2023 13:52:17 +0200 Message-ID: Subject: Re: [PATCH v2 09/11] cpufreq: scmi: Add support to parse domain-id using #power-domain-cells To: Sudeep Holla 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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! Kind regards Uffe