Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp875217rwd; Wed, 31 May 2023 06:40:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wC9i8KSRK48nnqsz3wXWsdd6TG0mKgIr0qrMY5/0Q6vVp4IPzf7WtKihOt3/3uSXwibg9 X-Received: by 2002:a17:90a:64c8:b0:256:658b:7746 with SMTP id i8-20020a17090a64c800b00256658b7746mr4608731pjm.0.1685540459107; Wed, 31 May 2023 06:40:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685540459; cv=none; d=google.com; s=arc-20160816; b=FmW0HOeZm7aB/+LTOdpuRGcnx00CJsLBYGQq06mTietLg/k82X2QOo90swEt+IWZ+d 6M6K9val6s5fdwGmbvSZ1ozxMG6gvM02L6WtwYjdB8M5LA4vTASMy1DzUJezDt2Wu8aM uEsjGFavpC1qukFKt7pOWbwHjyQP+/+NX2Jc0NoGOLEXI/Ts0CBi9/WRGK8zSzm5xe1Y cTI8aR3b7Fk4fmbFCsoW9WrIK8yfUH0PsgbpsnEOj0ThQou4nmBe9cx9pU2g5wqtuycz P2X0PqSS/um6Q1qZKXrpUTIsmy3EcSEj1swU1ZjTgrhGW1kmeqOOWXnmqtUZik3+/nlN mjZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Hb3cJs8S+b9i+3pqmaiIthRfWx6iQntlvpEpXJn9bLA=; b=wboe/0bav3p53qzqRC61c4QhijUS4y/8bUfRhLfe8Osu9/WQTayiPcQAbBxymipb4i s9u/4Ari09ODTkZtoi5vqphrx+ZH/Lr61BMYvYl1W3tK+NZfOK9cyqPZVZinm1AG83s1 jPBLCn9yABJVib6KX+y4gK+wsoBmz8txvokpBZ3ZcGCIlzvEcnFsZeCRWfw8hdqlen70 BuD24EhTEJMDUDbAy9TFTuGPQR+C2RzlOBGdCdudcTWoZz6NPoNOaxRDHpQQivqdHh2b 7zmjmi2W0dwoiGepIqHIdZvxOcPcL4o6QZBBiPWEj8AvNEC0fpRZKHPpgvbajlx5tVDR 8vyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tWm4kuPd; 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 t75-20020a63784e000000b0053efcd20010si826569pgc.423.2023.05.31.06.40.43; Wed, 31 May 2023 06:40:59 -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=tWm4kuPd; 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 S236468AbjEaNX0 (ORCPT + 99 others); Wed, 31 May 2023 09:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236235AbjEaNXJ (ORCPT ); Wed, 31 May 2023 09:23:09 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B60B91A2 for ; Wed, 31 May 2023 06:22:57 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f4f89f71b8so4614386e87.3 for ; Wed, 31 May 2023 06:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685539376; x=1688131376; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Hb3cJs8S+b9i+3pqmaiIthRfWx6iQntlvpEpXJn9bLA=; b=tWm4kuPdRIaPGwf7Vpgi5R+PsmQ5J49nOnsODqNeP9jWy3KRzIHWSeFkMDXthmi9fu UORpSqQedoaUGcM8iFyvOFwzqprX1pj1CVJP/fOJCPar2wn6bbg/rYtSFUerKJ45Cn+t liOeMYHHHlXnZUbBCTpbm+CmPTWr+yjAh8/nM909r2nwQLOiXGPJwQ66EczSbR9Pys1E /0ByOmRWSWqLhmtYaYBJe2CwMQ/Zs9YQ7kiDePuEuOpwibCHf4wGDgD14Mn40GdFw0XB zyHdJLre4s2U2FzGOfm+6k7OjOolzxtBSOaFV3OEVmWTl7txNKn2IEhuIby0F2OhW1+q VUtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685539376; x=1688131376; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hb3cJs8S+b9i+3pqmaiIthRfWx6iQntlvpEpXJn9bLA=; b=PH4n4uptsKxjd4arLWQqWPoWzy3NjJ0cNHXCROBnJ7XidxJ68F9nNFRFRQiuyTGXG6 HbHmuYpWG49bvKVc43DDz9FhIdxe14ANrfBYXrJX8RpJ7a60Ds23XBnp8CYV1OLeBHWs UC3+FriFznFAUKLaGGw+XmocT3lJ6iW0Wt2qughx5CSgSXXB1jnPIC+xBkpHBpDSyMe6 WM2N92RkS4svkA/yL9aGSeYHrP0V6qJHA/Q+DaggfNjz19KhZKR0pHHzIHHYC+t/MG3f PvcbstziQnTXL2B8I6bvDhcOfasa9BD4nmzhtbuLaoFpcjMudNdFkfgf3EqCiqFHjuFq 1PpA== X-Gm-Message-State: AC+VfDz5SijNkj/AFhTrjgmQ4SxgFxAXxfSiRQz0unpe0wCkF57lbmnS CRDYkrEl/H0mVgr0NCbmffDmZA== X-Received: by 2002:a19:740f:0:b0:4f1:444e:6c5a with SMTP id v15-20020a19740f000000b004f1444e6c5amr2793402lfe.8.1685539375755; Wed, 31 May 2023 06:22:55 -0700 (PDT) Received: from [192.168.1.101] (abyj77.neoplus.adsl.tpnet.pl. [83.9.29.77]) by smtp.gmail.com with ESMTPSA id w8-20020ac24428000000b004eb0c51780bsm720138lfl.29.2023.05.31.06.22.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 06:22:55 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 15:22:41 +0200 Subject: [PATCH 7/8] arm64: dts: qcom: sm6350: Flush RSC sleep & wake votes MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230531-topic-rsc-v1-7-b4a985f57b8b@linaro.org> References: <20230531-topic-rsc-v1-0-b4a985f57b8b@linaro.org> In-Reply-To: <20230531-topic-rsc-v1-0-b4a985f57b8b@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Melody Olvera , Vinod Koul , Richard Acayan , Lina Iyer , Douglas Anderson , Neil Armstrong , Abel Vesa , Sai Prakash Ranjan Cc: Marijn Suijten , Bartosz Golaszewski , Luca Weiss , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , Konrad Dybcio , Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1685539362; l=1004; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=469DtGv+StozkNQONl/RzrsYYq164VDguNLK8FCEzCQ=; b=4iaFll04ZJ6w8qa55AtksLRnhQ5nFnAq/HVuH0NMmlmCdHLKuch85b+tL3htVyOH8YalkXcpG K1DL5/wG9/+B1w/++Hjo918M+f6yHc2ZhnFIEKLpNiZCulmArWN35Ff X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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_NONE, 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 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. Fixes: 5f82b9cda61e ("arm64: dts: qcom: Add SM6350 device tree") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 9311bb6bddab..1cdad69e3c07 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -2055,6 +2055,7 @@ apps_rsc: rsc@18200000 { qcom,drv-id = <2>; qcom,tcs-config = , , , ; + power-domains = <&CLUSTER_PD>; rpmhcc: clock-controller { compatible = "qcom,sm6350-rpmh-clk"; -- 2.40.1