Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp928285rwb; Wed, 26 Jul 2023 05:18:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlHzYq8pO5kU5YLdtspbUP0gEEbY3s/LDZtV/cGaUPY886XVc/6IPcgCGSL9Ox+hpnIBxVKw X-Received: by 2002:a2e:8303:0:b0:2b9:6029:775a with SMTP id a3-20020a2e8303000000b002b96029775amr1330954ljh.18.1690373884668; Wed, 26 Jul 2023 05:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690373884; cv=none; d=google.com; s=arc-20160816; b=p+cLMT4d8disCEjvFpi9cN9KGWs/qghb25u13vdFPFXzZBa/T2NYnDoGhm8xHIxgTE uhmYiz1Wi1OzF6X+zGIptuMhQnHEEWdjpb97BDeFEMTfagKK0JjI1n1TfTQs4YLBy8w6 3mRIhB1sVdYR+riyGqSNnJVBYNV7iMxnOoVhY6LJqFjIJs9uXdKMZQHAHjeziYZqtZpq +XanzL3RkU6q0MaW4Ok6BAHq/lh9aDe2WZA90ku5fTlK1oZJfhROV0c9Zv8+XMMcZszi NsV92ItX2W7vLrW7Rvtnn6Gb1Eba+fNJhBstVElBzVgEqquMna2FZo3/4X+tS2va8QJc t4yQ== 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=XrZDdY5HjNhB0A5DSPeigCBlnEFyCrNBq0d87sVDWrE=; fh=vf+UXeWNpnEZV8ZRBynLN49vCign+qe/3dmA7UNHCfc=; b=L9e96+L/HR1HJEiDrBrSOSI4Jf2ogfgqfiNuv7fohgyYq8o58kmcJa/lSrMRKbapAN WuSrVSqqlBGYlkODlimwjvRO0aqPiSH8lOQQlbRW8nKBcrNGSiMQ+OwZj17W5cxdC84W RSTlz0SRchprDA7GZbmnHDdPGZY2jpOLLkcN8TMvxELLPk3170XuJIvKcsUfFemxSTsR q82S0+JuqJj24m5Dzw75Ro+Kj9hA0S1aNtYCVFkpRTnCx7I7XLX+QfpiCfbxDX3z1gbA wpinpOiySfeO5Z6EvyuyRZjpFarICiD52bKoztw8m5LG5AKip8b1K5OBxOTDoxuGyzwX UtnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TT1mQ0zE; 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 z15-20020a170906240f00b00992bbdebdbesi9364449eja.785.2023.07.26.05.17.39; Wed, 26 Jul 2023 05:18:04 -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=TT1mQ0zE; 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 S233297AbjGZLVJ (ORCPT + 99 others); Wed, 26 Jul 2023 07:21:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232978AbjGZLVE (ORCPT ); Wed, 26 Jul 2023 07:21:04 -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 B005C26A6 for ; Wed, 26 Jul 2023 04:20:48 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-c5ffb6cda23so7209474276.0 for ; Wed, 26 Jul 2023 04:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690370448; x=1690975248; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XrZDdY5HjNhB0A5DSPeigCBlnEFyCrNBq0d87sVDWrE=; b=TT1mQ0zEisFdk3DJhNQdJDwNpe0mJo8JtUdgHsBCD79NNKAAGWvUb9tiCAh/o7o+WG c1MzFSA5woFqqEpeXisZnuwd25uQjR2B92Z04q0kL5iVdOEPcaJuCjQp3Xrh6rRD1ooK kgSrGdBSL794/xP7rtfPoBK6KzuwLDaJVKAiPPw0ljNaX+At0vleqf0dfrPrRb03pRlW TQ504X5BPhFchGCnScOrVM/8y40QlDh56+TQ4KyEvm5JIzbhIDcC5mAcCDlCqbRgpRPs DaqW57IlQtm1S9P1BKhHYHQvG2G7gVM0iQuSqtdZWSGTN90wiCUdmdFlgCGM+iNjjCXR fhyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690370448; x=1690975248; 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=XrZDdY5HjNhB0A5DSPeigCBlnEFyCrNBq0d87sVDWrE=; b=ieZxEfNne9kFO+yicvNRi7RzomBDyGPYWMMWxXTfUuLX5ULzAchwbw2uRSPrnKta+t 1P3sYg5ZfJ5ryYLAPssdSsaCeYLuY+gsFCWp/gIqQxwv75tcV3aKgBqLMstKXiJ8NrI7 SCjcFTPs+ZfBrBdrfMCpIRlFhMyIAg+MEvD1ai45ON3Pp8dT53r2Y7UePW1s66SXWOiL 7PKVjOsbAbjH3S078LW6wmF8BH/B8HPP3hNL+/ioJnMrfJhES4ceA7aBzCTsqCS6iipR 7cpEYtyl67KNRn8k1DkrBfr3Re120sd3HkXhuCABhRAOEQ3dJHA9laiWyTHBDSyXExTU GNIA== X-Gm-Message-State: ABy/qLbA0Lmgf70Gmat7jw+AX8lyQb7N13Qv79rt3DwKja9eCdjUTNpQ TGKFv1ppzAe9seeMTawTWOfBrJqXSevVr0LosEU2kg== X-Received: by 2002:a25:c58b:0:b0:d0d:2d82:7a27 with SMTP id v133-20020a25c58b000000b00d0d2d827a27mr1535893ybe.13.1690370447746; Wed, 26 Jul 2023 04:20:47 -0700 (PDT) MIME-Version: 1.0 References: <20230713141738.23970-1-ulf.hansson@linaro.org> <20230713141738.23970-10-ulf.hansson@linaro.org> <20230719152426.qwc5qqewrfjsarlz@bogus> <20230721143728.GB1092306-robh@kernel.org> In-Reply-To: <20230721143728.GB1092306-robh@kernel.org> From: Ulf Hansson Date: Wed, 26 Jul 2023 13:20:12 +0200 Message-ID: Subject: Re: [PATCH v2 09/11] cpufreq: scmi: Add support to parse domain-id using #power-domain-cells To: Rob Herring Cc: Sudeep Holla , 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=unavailable 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, 21 Jul 2023 at 16:37, Rob Herring wrote: > > 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"; > > That is completely backwards. Entries are named based on the consumer > side. The function of each clock or interrupt for example. Here your > entries are based on the provider which should be opaque to the > consumer. Okay, so you would rather prefer something along the lines of the below? power-domain-names = "power", "perf"; The "psci" name is already part of the current cpus DT binding (Documentation/devicetree/bindings/arm/cpus.yaml), so then it looks like that deserves an update too. Right? Kind regards Uffe