Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1174048pxj; Fri, 18 Jun 2021 00:55:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH23Tw8m8uJ039g8R+GDKb5rLgyPvNr7HxxIkTIqxSeXsiA3OxtwWW9JCh4V9bHx7OzHO5 X-Received: by 2002:a05:6638:2255:: with SMTP id m21mr2103930jas.81.1624002936882; Fri, 18 Jun 2021 00:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624002936; cv=none; d=google.com; s=arc-20160816; b=RPCBwAP5mMzUYiB6YKq1Tp3oxmpynyt+uOQRNQIKCZ2/zrPfUNIeJ2Bm7174VHBAOj 514Pm3/AOrh+4OmkohgUemYwJRMWJEtuwoAChjpV3EkW8G28BjpReDPe2Q7lx+ay3waW tXYufj7LABFKnhkKqQ7Ezu4VsJNL5N/B67TdjUJfcHEeZqX4G7x6jgkyHca4d22XftO4 O1K5w5BSbPfQW7EpWmGFOhxIFtmds0DOSX/60henmfIVB6Xd+0K9ygoyDxHzMYhpX5pJ Z4NQyOsSlL74CQAzVVD5U4w69v3qbjgN/KX9QCETeEq8UbDvGvU+5wVTAeur9umK3BPl HgMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=diQVGTKWxVl8pROsUPH7uMBRC5qSN2k/dc63nuVFOtY=; b=P/xRNGJ8CZpP+EM1p6Zumc7DjS/Z5Fyn1ta42BUkcK0sVADnmirlM1V91xQWpq6kJT ELkKG81+id+duICKtyettPpJj9eihyJ9LGxvDP2QYC9fykw4PCrJeJcadcDRndSQ8F1u /1aNKtoxOFdL0AeD+Fe0hVjjd4c8KUshDbwSxpq810exw0okweWpYe5TZT6/QeGoekGY 8alaFSPhnptBihMWbmLRoB7i1sDgeOj7OPtvI8dKmWaju4tJBhPDXhnmzaqi0U2suO/E zG+QVwnPSMKBtO4sHaivGSHXq3+Xa48kiZS5fsfoi+CjUUIlBVB42ciJWlTuItCHg2Y6 lGkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=tiokWvHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si7999170iot.94.2021.06.18.00.55.24; Fri, 18 Jun 2021 00:55:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=tiokWvHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232503AbhFRGEO (ORCPT + 99 others); Fri, 18 Jun 2021 02:04:14 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:46965 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232250AbhFRGEN (ORCPT ); Fri, 18 Jun 2021 02:04:13 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1623996125; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=diQVGTKWxVl8pROsUPH7uMBRC5qSN2k/dc63nuVFOtY=; b=tiokWvHcvuJOOUP0eCLbxaLoRPE2URQFZA1gdXKK5m5HaDtAWl0u0I4fIv/No4MWYWEy1SFF l7E+gJjgDBAq/pmTQpGNJgAo5eJncUshZMZih4finQH9+f/LS6ti5WkyZhvr09K7tZgIMWMk rV6M1NMSETI69YFF3E6FL6o14QM= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-west-2.postgun.com with SMTP id 60cc36dced59bf69cc4629ad (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 18 Jun 2021 06:02:04 GMT Sender: rnayak=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 64608C43460; Fri, 18 Jun 2021 06:02:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.50.13.151] (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak) by smtp.codeaurora.org (Postfix) with ESMTPSA id BBBFFC433F1; Fri, 18 Jun 2021 06:02:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BBBFFC433F1 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=rnayak@codeaurora.org Subject: Re: [PATCH v2 1/3] dt-bindings: power: Introduce 'assigned-performance-states' property To: Ulf Hansson Cc: Rob Herring , Bjorn Andersson , Viresh Kumar , Linux PM , DTML , Linux Kernel Mailing List , linux-arm-msm , Stephen Boyd , Roja Rani Yarubandi References: <1622095949-2014-1-git-send-email-rnayak@codeaurora.org> <1622095949-2014-2-git-send-email-rnayak@codeaurora.org> From: Rajendra Nayak Message-ID: <4245f8c0-bafb-3c80-ff4b-8db4855f1432@codeaurora.org> Date: Fri, 18 Jun 2021 11:31:58 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/15/2021 8:35 PM, Ulf Hansson wrote: > On Thu, 27 May 2021 at 08:13, Rajendra Nayak wrote: >> >> While most devices within power-domains which support performance states, >> scale the performance state dynamically, some devices might want to >> set a static/default performance state while the device is active. >> These devices typically would also run off a fixed clock and not support >> dynamically scaling the device's performance, also known as DVFS techniques. >> Add a property 'assigned-performance-states' which client devices can >> use to set this default performance state on their power-domains. >> >> Signed-off-by: Rajendra Nayak > > Rajendra, I think this is ready to be re-spinned on top of the latest > changes for genpd that Rafael recently queued [1]. Thanks Ulf, yes, I plan to re-spin these based on the recent discussions, re-using the existing required-opps bindings soon. > If you would prefer me to do it, then please let me know. Otherwise I > will be awaiting a new version from you. > > Kind regards > Uffe > > [1] > https://lore.kernel.org/linux-pm/CAJZ5v0i0FD-F7tN=AJNEY5HVVTCNuciLT4hCqdoS5bgF5WdmaA@mail.gmail.com/ > >> --- >> .../devicetree/bindings/power/power-domain.yaml | 50 ++++++++++++++++++++++ >> 1 file changed, 50 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/power/power-domain.yaml b/Documentation/devicetree/bindings/power/power-domain.yaml >> index aed51e9..88cebf2 100644 >> --- a/Documentation/devicetree/bindings/power/power-domain.yaml >> +++ b/Documentation/devicetree/bindings/power/power-domain.yaml >> @@ -66,6 +66,19 @@ properties: >> by the given provider should be subdomains of the domain specified >> by this binding. >> >> + assigned-performance-states: >> + $ref: /schemas/types.yaml#/definitions/uint32-array >> + description: >> + Some devices might need to configure their power domains in a default >> + performance state while the device is active. These devices typically >> + would also run off a fixed clock and not support dynamically scaling the >> + device's performance, also known as DVFS techniques. The list of performance >> + state values should correspond to the list of power domains specified as part >> + of the power-domains property. Each cell corresponds to one power-domain. >> + A value of 0 can be used for power-domains with no performance state >> + requirement. In case the power-domains have OPP tables associated, the values >> + here would typically match with one of the entries in the OPP table. >> + >> required: >> - "#power-domain-cells" >> >> @@ -131,3 +144,40 @@ examples: >> min-residency-us = <7000>; >> }; >> }; >> + >> + - | >> + parent4: power-controller@12340000 { >> + compatible = "foo,power-controller"; >> + reg = <0x12340000 0x1000>; >> + #power-domain-cells = <0>; >> + }; >> + >> + parent5: power-controller@43210000 { >> + compatible = "foo,power-controller"; >> + reg = <0x43210000 0x1000>; >> + #power-domain-cells = <0>; >> + operating-points-v2 = <&power_opp_table>; >> + >> + power_opp_table: opp-table { >> + compatible = "operating-points-v2"; >> + >> + power_opp_low: opp1 { >> + opp-level = <16>; >> + }; >> + >> + rpmpd_opp_ret: opp2 { >> + opp-level = <64>; >> + }; >> + >> + rpmpd_opp_svs: opp3 { >> + opp-level = <256>; >> + }; >> + }; >> + }; >> + >> + child4: consumer@12341000 { >> + compatible = "foo,consumer"; >> + reg = <0x12341000 0x1000>; >> + power-domains = <&parent4>, <&parent5>; >> + assigned-performance-states = <0>, <256>; >> + }; >> -- >> QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member >> of Code Aurora Forum, hosted by The Linux Foundation >> -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation