From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B6FCCD80D2 for ; Tue, 10 Oct 2023 13:31:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232072AbjJJNbF (ORCPT ); Tue, 10 Oct 2023 09:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231897AbjJJNbF (ORCPT ); Tue, 10 Oct 2023 09:31:05 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D09AB0 for ; Tue, 10 Oct 2023 06:31:03 -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 0D5941FB; Tue, 10 Oct 2023 06:31:44 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 53DA63F762; Tue, 10 Oct 2023 06:31:02 -0700 (PDT) Date: Tue, 10 Oct 2023 14:30:59 +0100 From: Sudeep Holla To: Peng Fan Cc: Ulf Hansson , Sudeep Holla , "cristian.marussi@arm.com" , "linux-pm@vger.kernel.org" , Ranjani Vaidyanathan , Glen G Wienecke Subject: Re: Question regarding scmi_perf_domain.c Message-ID: <20231010133059.57rs52qedrc5mxfr@bogus> References: <20231010105503.jwrmjahuvcjgwtk5@bogus> <20231010130054.ieylxocuapugajif@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Tue, Oct 10, 2023 at 01:15:26PM +0000, Peng Fan wrote: > > Thanks for the detailed explanation, so power-domains property could be > used both for power domain or performance domain. But if one > device has both power domain and performance domain. Only power-domain > property is not enough. I may understand wrong, let me look into the code. > I haven't tried this but something I could come up quick wit Juno DTS as reference: We can change something like this: scmi_dvfs: protocol@13 { reg = <0x13>; - #clock-cells = <1>; + #power-domain-cells = <1>; mbox-names = "tx", "rx"; mboxes = <&mailbox 1 0 &mailbox 1 1>; shmem = <&cpu_scp_hpri0 &cpu_scp_hpri1>; }; And then in the consumer node(taking GPU as it has both perf and power domains). The CPUs are simpler as don't have explicit power domains, some Qcom platforms do use that. Anyways I would change GPU node like this. Hope this clarifies things for you. &gpu { - clocks = <&scmi_dvfs 2>; - power-domains = <&scmi_devpd 9>; + power-domains = <&scmi_dvfs 2 &scmi_devpd 9>; + power-domain-names = "perf", "power"; status = "disabled"; }; -- Regards, Sudeep