Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3643658rwp; Sat, 15 Jul 2023 06:50:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlH9LondfHCEjUWwsvIWPPygLSy6VDfesX+Xa+VT7r8Lpcw0i+h2v49OoyofZtzn9TbbQJZG X-Received: by 2002:a05:6a20:3c8f:b0:133:6696:1db with SMTP id b15-20020a056a203c8f00b00133669601dbmr7709043pzj.29.1689429048211; Sat, 15 Jul 2023 06:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689429048; cv=none; d=google.com; s=arc-20160816; b=lObtfN3p1S8tIUOtOI8XHiwOf7OCbNzHqI/1A1poOeer+nTxGh765TmULxR7RadnHT buTI5aAYLHqveGnp3lOaWzoaMEXoeYNvdk3oHhb+vkNUuf+tkxUkIuDLZzbcYK4axvgp 60pHQ2zIWUNUTbDvaOTjs8FWhSp0TGjFhApZ0g7/YwFJiwJSGKwPgJPveO3MqSH4ulxE l1PJcjKVa2xynD+nf4SSt0+59uA1B5pRPDM8sy2C6hxvk/knS9AJGNsnxNqQpAwuofwF IB7F2C8M7bSHiTHHxpu/E0ICF8BEYdxogH30RnDge/GT7+JshxTfCBAuJs+zUo2R2RDv Q9PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=dpJ+fMs1IOI6v0cEM4uyI8KOLiMJF74uY2KcNd4wMZA=; fh=2Gv3c9R7YoaKh3S9zAi7uqKHZDVUuLE5rEQEospD/aE=; b=FWEhzF1s7m2bvxqVFG/TEbGJR0CyijuFG3dP6Fedf+rJ5xLbZYlrxR2kg41yBXSwta +goUpWRTtEhoga4E8SeGxEUbJ9cLogxOyw74cskW+/k/8OuHFH0HjIH93i+p/GJeo+R8 8LgH/lmiPdxSjJIehxowrkx8se1fYaTAJFCQgpYfeVtGQ7mO+JRg+pKxTSx4MXmyZHnP gwZMh5IydFJ2ZjJjK5GiHodAs7SK6D1JpJ+5IuOfRXyR3MbhJISQ/598qUsDEnc7FHp6 7wsDm/NWdweFwJ/1xsaDQvVUUunKmYxQQyoiMfsSB+v3FhBCcAjMyAKN2Rc2HGhE4M4V ZKhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XRMoaDrV; 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 fh26-20020a056a00391a00b00682c8951d45si8828529pfb.271.2023.07.15.06.50.34; Sat, 15 Jul 2023 06:50:48 -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=XRMoaDrV; 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 S229473AbjGOMgU (ORCPT + 99 others); Sat, 15 Jul 2023 08:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjGOMgS (ORCPT ); Sat, 15 Jul 2023 08:36:18 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8782835BD for ; Sat, 15 Jul 2023 05:36:17 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-579e212668fso41030877b3.1 for ; Sat, 15 Jul 2023 05:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689424575; x=1692016575; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dpJ+fMs1IOI6v0cEM4uyI8KOLiMJF74uY2KcNd4wMZA=; b=XRMoaDrV9xzJt4GcRI1SJzWMqAqfQA7QdP2W1NH2uC3lt3rejwhCKHSgpCRazRFdh7 mcXHP9x0UHQvwQJ2KjkqJ12ycfiTd9KUvfFGtDiEeqGTAzso0TyOCdJEe815KubpJZUi GlPWyDx82A66bpwH2qgE5RuFkAizPrWoOSDkNcoad4hKENo86O9rw6xEcPKqE6aQRK+F jXVGAT4HqggzQSS1YWQ6KNqN3Zr1pm4W6oqLX5kjDjjskgIjW1NTLjk9uvPBuXyMCQX6 zzGQoS9nmP57tFybZKXMH3ueVehgWX7mN5+kaJucRdKNp8qIdOKFc0zKimegh6MUQIcQ uoGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689424575; x=1692016575; h=content-transfer-encoding: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=dpJ+fMs1IOI6v0cEM4uyI8KOLiMJF74uY2KcNd4wMZA=; b=CZjWcO9pi9xiJynqS0eIh6rkorQU0RtcrW7x07kUDN7To1HaXo7lytTdhps0FFyYc5 Sw3hpbIRypgvWfsIAK3ajOWJoRnuCeuqMeU6TSjX358iOvqMQ/Xa84Q5I4M37ok+Qx6/ DeegV905t+XOVxYoN0R7zfDYJCrCAW8ELdJs5vGaPNnq6Kur0HjHuzcWUod4G5NBlpod wTjNpzJzJFLY2XSSnh0zY0YEU9mI9ewSd3puo2ma7zrDM5v/GFJZy0JkC4lC9gW5Kvnv bqTFqvd98qwrj0FHCkHFGIw64CvyBmQnL9zIeCBPazsTBIcXg+FedJKaHliZryauMy7i VvOg== X-Gm-Message-State: ABy/qLYAyqOPExLmBx0exCvRnCd2XjtGJ2aJ25CR8xtGytK3tTJEJA7a EjMtcpjRfFah26QPFCvr2vWsRsEc57zGqgU0n71Siw== X-Received: by 2002:a0d:e649:0:b0:57a:15c0:2f5b with SMTP id p70-20020a0de649000000b0057a15c02f5bmr6283853ywe.8.1689424575647; Sat, 15 Jul 2023 05:36:15 -0700 (PDT) MIME-Version: 1.0 References: <20230607124628.157465-1-ulf.hansson@linaro.org> <20230607124628.157465-10-ulf.hansson@linaro.org> <20230614230044.GA3019052-robh@kernel.org> In-Reply-To: From: Ulf Hansson Date: Sat, 15 Jul 2023 14:35:38 +0200 Message-ID: Subject: Re: [PATCH 09/16] dt-bindings: firmware: arm,scmi: Extend bindings for protocol@13 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, Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_BLOCKED, 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, 14 Jul 2023 at 19:15, Rob Herring wrote: > > On Thu, Jun 15, 2023 at 3:11=E2=80=AFAM Ulf Hansson wrote: > > > > On Thu, 15 Jun 2023 at 01:00, Rob Herring wrote: > > > > > > On Wed, Jun 07, 2023 at 02:46:21PM +0200, Ulf Hansson wrote: > > > > The protocol@13 node is describing the performance scaling option f= or the > > > > ARM SCMI interface, as a clock provider. This is unnecessary limiti= ng, as > > > > performance scaling is in many cases not limited to switching a clo= ck's > > > > frequency. > > > > > > > > Therefore, let's extend the binding so the interface can be modelle= d as a > > > > generic "performance domain" too. The common way to describe this, = is to > > > > use the "power-domain" bindings, so let's use that. > > > > > > What's wrong with the performance-domain binding? > > > > In my opinion I think the performance-domain binding is superfluous. > > We already have plenty of power-domains that do performance scaling > > too - and they stick with the power-domain binding, as it's > > sufficient. > > IMO, power-domains should be for power islands which can be power > gated. I know they are abused though. Of course, when things are > hidden in firmware, you don't really know. A power-domain could be > just a clock or a clock could be multiple physical clocks. I would also like to point out that it's perfectly possible that a power-domain can be a combination of a "power-island" and a performance-domain. In fact we have those cases already (Qcom, Tegra). > > > That said, I would rather follow the defacto standard that has been > > used for many years in the kernel. Do you have a preference that we > > should stick to? > > If power-domains are sufficient, then why do we have > performance-domains? We need clear rules for when to use what. Well, I think we invented the performance-domains bindings, especially with CPUs in mind. So far, that's the only use-case too (Mediatek, Apple). Even if I think the power-domains bindings would have worked fine for these cases too, maybe we should limit the performance-domains binding to be used for CPUs? Anyway, for the more generic use-case, I think the power-domains DT binding is better to stick with (it's what we have used for many years by now), as it provides us with the flexibility of hooking up an opp-table to the power-domain, allowing us to make the domain "performance-capable" too. Kind regards Uffe