Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1260886rwd; Tue, 16 May 2023 14:27:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4UE49C32ni1HWF24MQQCU3azoJIarGx43nCqOdmRlOSRx85b2K81WuF1P+fQZsaqLAu3Rv X-Received: by 2002:a17:902:f80d:b0:1ae:4ddd:9961 with SMTP id ix13-20020a170902f80d00b001ae4ddd9961mr791811plb.20.1684272460534; Tue, 16 May 2023 14:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684272460; cv=none; d=google.com; s=arc-20160816; b=TOXVClo7DNax1tcoH1Dga+E4pRh6XYcTt7/O4+sFLSrl3UTBvM8QeR4E8Ju2wxYI1s SKUUbJrtXR3HOaoXZB9wX567p3B1hLibi3SzndJIJ7jK1x2YNDPomLxuF6iaZlGbW0ss 3glR4TlC1k4YDmnmQhYrEbxx3u5CgH72ZN4ZYVe/qf2ljmgBUfCLRSergtx5DYYpRRNQ 420j7wLcaQV5dCvLrsB1Aqk3aYci5D6t4lZq0LhPs45vgkeaxD3fX4y6n8/mae0D0WGo 5Tf499o8+nrWR7e1Xz8dtcA5J+lJaqxMwzY87ush5i50WXIywx93rm/qGe7V+gCvNnqV MS8w== 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=ttVoZ1MTEot2EPQSmKoMu+nXb5zpPDeIHDthXMvspNo=; b=vbPYks3xRApaan+f9qUmPcsYd902lmE5sHuc3qF9biwBRNEdWKQ71QSEhVRE6q6Zsf BS2riPwdwlUKfkSmalNWQAqqrXTVd+2FXlTWd427wETSfJoc0xqaxUEF/lFrnNTv/5YN zPE/vQCxEO3LouuKCcDY1z+BD76dKP83NLUFvEjBOJrVq/t4iwDRcGW1q/aQNYd7tVPh nMvucGOKGh3Q0nM3lmFe9Uu05t42EE0ZvGtTAJzubgkwIcow4yB3o7STmGBQ4fbHfx4f zSzEDRBSCNHdU1HfRiHv0/JO8Z73iZ3imQrAmkj0IKKsNdbozv6I/uYb6rJw/8hGDfU7 vQEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FBcQfqeJ; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13-20020a170902b48d00b001a52db202c7si17980239plr.382.2023.05.16.14.27.25; Tue, 16 May 2023 14:27:40 -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=@quicinc.com header.s=qcppdkim1 header.b=FBcQfqeJ; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229939AbjEPVBv (ORCPT + 99 others); Tue, 16 May 2023 17:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbjEPVBu (ORCPT ); Tue, 16 May 2023 17:01:50 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66D4630E0; Tue, 16 May 2023 14:01:49 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34GKpQGe012395; Tue, 16 May 2023 21:01:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=ttVoZ1MTEot2EPQSmKoMu+nXb5zpPDeIHDthXMvspNo=; b=FBcQfqeJBsI+MboplIbzkrfIBX1AejVskGWwzf7r17VRKGdeQYNIudS8mz1Bec/Ff0+r 0HkSv/hjOp6NZhw0VmiEPxS99y2FCFJp+QS/92z7OWCjga4MRWCiFczRyCDysfySYnM+ IPJF346rK4fRRn/YcnsK8F+LXkObl7FiqDOrRfxAnZ+YLVhHIU2G6KLu8pMI4uHoTKd3 dGOc3dSXxx0KNGbreL2Hcs4Xr8JbolaO8/hJMy27tJbd/jKFzxyATg9hGjLv/q0uudFY x926siKwiy1i5NIXSYVETKCx3qqzaOtxczOZWOdH9bk3otpwCyufxdDGIpqa5yqmD6I+ HA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qmcc60mvq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 21:01:45 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 34GL1jo5019058 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 21:01:45 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 16 May 2023 14:01:44 -0700 Date: Tue, 16 May 2023 14:01:43 -0700 From: Bjorn Andersson To: Konrad Dybcio CC: Bjorn Andersson , Andy Gross , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp: Flush RSC sleep & wake votes Message-ID: <20230516210143.GB606695@hu-bjorande-lv.qualcomm.com> References: <20230512150425.3171122-1-quic_bjorande@quicinc.com> <20230515023828.jqrrqkit5ygovimp@ripper> <1ecd0cba-296e-b036-f59e-f679c771ae9f@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1ecd0cba-296e-b036-f59e-f679c771ae9f@linaro.org> X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: FFoqmScspeWgJR1o5ov0jG0IZPJyt6jr X-Proofpoint-ORIG-GUID: FFoqmScspeWgJR1o5ov0jG0IZPJyt6jr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-16_12,2023-05-16_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 phishscore=0 suspectscore=0 mlxscore=0 bulkscore=0 adultscore=0 mlxlogscore=999 malwarescore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305160178 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Mon, May 15, 2023 at 11:34:45AM +0200, Konrad Dybcio wrote: > > > On 15.05.2023 04:38, Bjorn Andersson wrote: > > 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. > Hm.. since it's not strictly required for operation, would something > like this be fitting?: > I don't think it's required for operation, but the current implementation does require it. So I think we should either require it in the binding to mimic the implementation, or the implementation should handle either case (only with a performance impact) > oneOf: > - required: > [...] > - power-domains > > - required: > [...] > deprecated: true > > (if it even works this way) I don't think it's worth supporting the combinations. Regards, Bjorn > > Konrad > > > >>> > >>> 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";