From patchwork Wed May 31 13:22:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 687355 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 49E4CC7EE2E for ; Wed, 31 May 2023 13:22:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236386AbjEaNWy (ORCPT ); Wed, 31 May 2023 09:22:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236375AbjEaNWv (ORCPT ); Wed, 31 May 2023 09:22:51 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF78124 for ; Wed, 31 May 2023 06:22:50 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f4b384c09fso6885299e87.3 for ; Wed, 31 May 2023 06:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685539368; x=1688131368; 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=gtyrqdTWQcpyKl/kqFYipYrPO4h9o2BturowbZwWg50=; b=PnygFpmsP4XDLrc1sbNSX+SaH/yPGxZFhlYEKvnyO7HwfGYw4+b522olTeCAwlBjJm WPNWVlO2DVoz6iA0qgVuvZHwMNSBi6+BGJjSB3DBmoet1m5SB6KJMtK0znvtKYR+22PT r0Ynusu/TrZNREo+MYwOAidMSusPA8mf5pOTQDBgD9z+rDlzdQCjZNyouKR4X3AB7EDt 0nHWeoVA7Cz8HY43hjiq1MyJ7+yzQXWZaRDQIrVX+tEtJir5MCbC58yii/+d7KNnLiE+ fy2knePgF6PKgzvqSBwPqkaTeeMtGVXGs7m3fRUiG5w2RVoKjE0KBPh7uhvgqTElvU0j ch2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685539368; x=1688131368; 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=gtyrqdTWQcpyKl/kqFYipYrPO4h9o2BturowbZwWg50=; b=mFuGVtxrXjOwDzJFiURyVLgvkkH2EFYHs22e7FUWzgbxDeKOM5R5CKmllP9R+GrSV3 X5GDEpBo1w6cVf+Wc0firMps4qq+T9iV7CYihardbVSEpNeqBV4SP7vXcvNn007Bx861 9TisL3XDCT/B2Dfu7agvSiW4nVXxEcn4NcMxSh69fvMYNfTblFgC8av5z6QU8qCNolRu PeDO2e3Po+2QI3N7ML9nxXL84HAe4aYYc3bO6iOSbIrvnmy8mss7jPUL2/nLgIvuFST5 vZU+rnf6CRc6tqrRFEmqsg11jmLBB0Ag/fnw1hK8lF7KHoH+VTWyH6DDD6wJ1domWzHS K6+w== X-Gm-Message-State: AC+VfDyE1aSUVHneixVijDplabDZt8fPHx/9AIiAibOUeJvSjoUYiIKp /4QZCIER5GM2orZvux8Gh9/eHg== X-Google-Smtp-Source: ACHHUZ4Mv2gd/xa2zr6hrKHRSrLA6yH4TWCYgO7H3a7ogK4GJ6qZeYKZYNQ3vVj0GKfot50DQtsO2Q== X-Received: by 2002:ac2:483a:0:b0:4f4:ca61:82bb with SMTP id 26-20020ac2483a000000b004f4ca6182bbmr2743707lft.45.1685539368528; Wed, 31 May 2023 06:22:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 06:22:48 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 15:22:37 +0200 Subject: [PATCH 3/8] arm64: dts: qcom: qdu1000: Flush RSC sleep & wake votes MIME-Version: 1.0 Message-Id: <20230531-topic-rsc-v1-3-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=1027; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=TObQ9wJAJgJwWqQ5Ixf0yflCFVNt1QkEEHiCMIA7XQ8=; b=sY2igrHYMkKIIn82pO1xm4mjQC+2D0hOpPwiNmbXxsM8LJiqZ3ofxrmnxykQRUEpkyRwZj/8O Ae+3IBDD4o0ASUc/CzU1GpUnHc9r7ESy37zSi5u7kWSZgIZPm/3Qxau X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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: 6bd20c54b589 ("arm64: dts: qcom: Add base QDU1000/QRU1000 DTSIs") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qdu1000.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi b/arch/arm64/boot/dts/qcom/qdu1000.dtsi index ddc3239478ae..4bc8c77a3538 100644 --- a/arch/arm64/boot/dts/qcom/qdu1000.dtsi +++ b/arch/arm64/boot/dts/qcom/qdu1000.dtsi @@ -1252,6 +1252,7 @@ apps_rsc: rsc@17a00000 { qcom,tcs-config = , , , ; label = "apps_rsc"; + power-domains = <&CLUSTER_PD>; apps_bcm_voter: bcm-voter { compatible = "qcom,bcm-voter";