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: 101469 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2878908vqr; Wed, 31 May 2023 06:26:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4NHUgEwDXhS93C4G2f5tVO8F9S20KYgusnUdNntFkZO0YgdZ+VQkwuIssR0oqsYCiiqHIV X-Received: by 2002:a05:6a21:100f:b0:10b:8024:d253 with SMTP id nk15-20020a056a21100f00b0010b8024d253mr3876550pzb.26.1685539596169; Wed, 31 May 2023 06:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685539596; cv=none; d=google.com; s=arc-20160816; b=mjBDCzE1kesAz48zs4U8CUEzcQP87oQpx1u5mZtEqFMmZUFsWoAUQI1G8IYI3PJ7v1 ReffmqK0qQR5sXFFt/J9hN3eBpqvpwbdf/tjNXwW/ZjuuubUT02tHSvRd+ZktORZLcvb fEgv4Uru7xDHNK0w4FPqbqvO3J3lQbCAcBFZirQNkGhSqVOgzLSfKYkRdTTaaRRjIz9e h5oGOCeH8fPc1BEcqStE+s5WLpcNHh/pt6O0gcEl189MMHhubdxtQQss66RQQiGJdo+a /8bHFtm28cFOJGXUF5EPVVF6SiqM95ryQnQdS3s+WrTpPeBOYTjxY/DDZltC0DlRDXEn /spg== 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=gtyrqdTWQcpyKl/kqFYipYrPO4h9o2BturowbZwWg50=; b=YGF6mJFcdtVjyPhkwwsUNy5JNl3haIupiEprsrDITjDO7yMmicLmm+mf/LKgO5cEJz +ab77Cc6fn0yvsN+iRJTMLFVLXDgink1J82LlvRrXExrcPNlcwKAcbX3KI07YgA75XLB fP4XL0fRtunQKYHxwx6MDtF4D+KBjntQ92zotRdQe3bPuzv+gUjg4Un371GgheZYgNUn vQgLpv0DTR4kdK3BR/NHgCA3oaudlei4HIseR7zRm2u4Yaf1L6xgt5PxNUETD7gC80Cv x6St5yCPlpuM/sVsIPTvSYqXkMLDfk0IWmOOmX0WVG7hZYBHZ3agsKxiKVH0sP+/AkV3 pjCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PnygFpms; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bs129-20020a632887000000b00534878ba944si993541pgb.336.2023.05.31.06.26.11; Wed, 31 May 2023 06:26:36 -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=PnygFpms; 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 S236382AbjEaNW7 (ORCPT + 99 others); Wed, 31 May 2023 09:22:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234980AbjEaNWv (ORCPT ); Wed, 31 May 2023 09:22:51 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FD82123 for ; Wed, 31 May 2023 06:22:50 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4f50a8f6dd7so3127225e87.2 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=N1nvNlivx5n4WgRmzWa78iM5O7ZxHlPHj8Htse1EOEoC/RKO16SJdilfAnPBMobmG9 LfQs5sOxnAcgBb2armg5CeCwHvZtk+2KSFo5Z/GxaB32JIX96hdyFxOoyL74vEzjVuKY jMbLwlsP/mrU+2CM8y2hxQKsTT6/0xor9OwseLxr3r/KT9aQvFEZqIwTkAMA/fCLI7Qe QyVRjstdng8Mbl+Esp7t9igB80YYkBGpzs/R8psacuFtt7CVeg68/us+H0Jm5g8Ud5Ou 4HAycCIYCWIqcRK5WCwpu7bfR3uEmpk4Ho95weSjScyBNH+oxJlqbJvqr0tqMutAhLTe LFDw== X-Gm-Message-State: AC+VfDzH0YwM2FLAiXfcpSLcIvd2ycyGgmVCWotELgeYKMkIptIpfdWB q1HlL+tDZfDtF0pzHqzHufCx2w== 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= 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767416367655986101?= X-GMAIL-MSGID: =?utf-8?q?1767416367655986101?= 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";