Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1415564rwd; Sun, 14 May 2023 19:43:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ545UKq+EnO6eGHYgUtCRaLDoFiSXW8b2RYges8GEF9/qkNpU5imAhvW1oSmFF8u/8AmCJH X-Received: by 2002:a17:903:48e:b0:1aa:fe4f:9b99 with SMTP id jj14-20020a170903048e00b001aafe4f9b99mr32545886plb.19.1684118598569; Sun, 14 May 2023 19:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684118598; cv=none; d=google.com; s=arc-20160816; b=zhKSpWTE6DyhpSpQLZdRpNCnPyPgh/cNLo2RSwuKptTjG6gESFsmND8iJ/YYez1QkB JZPY+ZUc9864lva4YvdDuqKailYai+YoUKHWbuyqz31tSQA46wdH54KoYMOmm16fpGVN n+5FwvO3uxQxXc4WP/BWxru4UjII1CUQpMYut2gHgrVggVxGJabgPDKRjNPB8Z1t4JgW vxoJAYI1Z8fuheJ27GBFjdeRI5UgNOvb1Dq1/AXQRx79QZ0mRnHP+M6LtpRnD1GeEbWa CAgzBrR266TS3gtmPvcYv+M+CNvhkzsW7S130zlhzFqXMDlqoYhSQYv8NwCPrMT+okbh zqEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=L4ok9qqNkH3HmgDIDAbDFnjekaxGWxj9yWPrNGK8Cy0=; b=N0LY/r9dYxdeeiAm8wVck5iH6uEAarue/6kk9hvl4HKU7dunDJRVUnwtdOXlrpmTU9 RiZBMMQEzdPpyiEaQGxX/YfUveD0AkM1OVeyP5aiCRPhP5K68mUoTF3mxtns6QTUgwY8 ZhERFy1+Z6M1TR5Me4kae3FSvYSwyItzHfSm6kbId+p+L4U+pnsWwzqPVqGI8HTBY650 kV+zsdCw70+4t84eUbH2DYr6HIZH6exPTxSRMtaGckPsNf90UAVtbKfKgG3leU9DFjhE tpixyUegKYy6CPdoB3DrSN1A9NowV5zhNuIxfoKf0NGucXE6G/sHwad7Qx7oEQaEtKBH NX7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bvJA8fkU; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jf9-20020a170903268900b001a6547bfdadsi14272608plb.156.2023.05.14.19.43.04; Sun, 14 May 2023 19:43:18 -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=@kernel.org header.s=k20201202 header.b=bvJA8fkU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234828AbjEOCej (ORCPT + 99 others); Sun, 14 May 2023 22:34:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjEOCeh (ORCPT ); Sun, 14 May 2023 22:34:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E84B011B; Sun, 14 May 2023 19:34:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 73C1660F23; Mon, 15 May 2023 02:34:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21926C433EF; Mon, 15 May 2023 02:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684118075; bh=VCcecaqn4IPehbbTLLoz99REnFzzsmHGGoAyEPzYTdM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bvJA8fkUQyE0nQECJ054AoPoLdadm2n3LjqtKqTjW0ITm9UNE3e9v8vNu3G0RwOu/ Sz4JwFa2szH8Svq2/7q7A83F9HJA6j5CeLSOxj1+aFJnJpdKwCURJarh9E7XWCuQq2 ITIQP3gef4ESbC4o7Q9r3GJD6jlK8W5QUcN0KjFX8BCo52gN86Gqv42srk2pBCHbeX lMnr3rfCCKj13uan7ykzmyVrUOZWxYaZBUrFv00rMgPFuxpsXzEuWhn7sQQnPG+/bF wqM7lHcbdft25e9/aQrOgWBU/7+tGF2tKMMGHWfVezt4GXbRmJI/rCZWT7ynKuOR94 VFuM89EUIZTbA== Date: Sun, 14 May 2023 19:38:28 -0700 From: Bjorn Andersson To: Konrad Dybcio Cc: Bjorn Andersson , Andy Gross , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp: Flush RSC sleep & wake votes Message-ID: <20230515023828.jqrrqkit5ygovimp@ripper> References: <20230512150425.3171122-1-quic_bjorande@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Sat, May 13, 2023 at 11:09:07AM +0200, Konrad Dybcio wrote: > > > On 12.05.2023 17:04, Bjorn Andersson wrote: > > The rpmh driver will cache sleep and wake votes until the cluster > > power-domain is about to enter idle, to avoid unnecessary writes. So > > associate the apps_rsc with the cluster pd, so that it can be notified > > about this event. > > > > Without this, only AMC votes are being commited. > Ouch. > > Should we make this required: in bindings and add it to all > platforms? > I though this was an optimization and in the absence of this callback the driver would just write out wake and sleep sets as well. But per the current implementation (and perhaps some underlying cause?) it is indeed required, if you care about power consumption. > > > > Signed-off-by: Bjorn Andersson > > --- > Reviewed-by: Konrad Dybcio > Fixes: 152d1faf1e2f ("arm64: dts: qcom: add SC8280XP platform") > The Fixes sounds reasonable. Thanks, Bjorn > Konrad > > arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > > index 8fa9fbfe5d00..5c68f2182c2f 100644 > > --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi > > @@ -3982,6 +3982,7 @@ apps_rsc: rsc@18200000 { > > qcom,tcs-config = , , > > , ; > > label = "apps_rsc"; > > + power-domains = <&CLUSTER_PD>; > > > > apps_bcm_voter: bcm-voter { > > compatible = "qcom,bcm-voter";