From patchwork Wed May 31 13:22:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 101482 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2888923vqr; Wed, 31 May 2023 06:42:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5UaQ4Eboy2T9+c+M9vXCjYf/9K8F+p73zeQbMAtoe8iYjPG5faSr0RTSGYILnL4x89GOVQ X-Received: by 2002:a05:6a21:7891:b0:10b:78d6:a2c8 with SMTP id bf17-20020a056a21789100b0010b78d6a2c8mr5231974pzc.15.1685540519872; Wed, 31 May 2023 06:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685540519; cv=none; d=google.com; s=arc-20160816; b=UnBG8thhjwUCpHC4eJuTwMdKpmQYLPhP8H0R8P4HZbkRE3cci5TMZCFPNG/qjiYTNL ZuJ6qXFUdPw/UfSWwCmm2qreBMIEoIqSRqRc3GsMz8+SX39P6mRtnfpnEGxbfcctC8dz r3/em1Ahj2eHWT+M5fPhaoI7K4ZVhe9bxE/87H+B5D6AUfDGOz2pkAAfEbDIoNAkB2xq e13WnybPCghKBmg2syeZj3Z1q4eLY9FwrhjDNFdiVgtePQTS1pA33p2wRpMPeNV1HqKW ZF3aGF+lc7vZ3RQtqX64sMnBlY6iN6S7guIax/zujVu62T12w6HacAArwIS9HYg59nzg YnKA== 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=tol9A9dtGHcljHA66FOclMfTsKdcHJMB2d8cTDTmgAo=; b=YruOiGolO6g1KyvLMxlEgNL6NI/q1ArPa0ODf7bF3kpLj4Ve/hGFa5EZdMvx24c6vC DOuXmSbysNwMKNeX8QmBSkkmcYsaJpB3d11l5BjxboFztOuqxkCcEwqEx+PWKHFUHQBV 7t3mjaZlGIIo7D8YEjlTJttArDu/Nr4iW2YKQwhFNRrRpHBd6FamxC9GCeUGZAWvzVRJ wwQz2hvK2uPau6BIgigrtMceaRME7tLiA9uumNWZdKryUOBnKsWCI8VAog6eapXdrEW1 TEvOj7wWTnqcc5k4gpXSPeR23V/5tZoaVmz/z0+C6HOXBJ5TH4rPa0hTFdfRYYHMq/gX Rv4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="e8Y3CLw/"; 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 x5-20020a170902ea8500b001b061de0954si861659plb.467.2023.05.31.06.41.44; Wed, 31 May 2023 06:41: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="e8Y3CLw/"; 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 S236417AbjEaNXR (ORCPT + 99 others); Wed, 31 May 2023 09:23:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236374AbjEaNXI (ORCPT ); Wed, 31 May 2023 09:23:08 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E85C188 for ; Wed, 31 May 2023 06:22:55 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4f3a873476bso6519816e87.1 for ; Wed, 31 May 2023 06:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685539374; x=1688131374; 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=tol9A9dtGHcljHA66FOclMfTsKdcHJMB2d8cTDTmgAo=; b=e8Y3CLw/f/V4tCjLk1sQ6W6ZugdpMnijFSP/xU/Zw4cfrLClvUO5rS1mwdooroa7HP aYZhKvFzszVsXp0/L0XXYUmeYzsSDa413Tjwq9pAcjFzZXw/0wmncxulUAvxbICTvO99 qMC7AG9eQm84UQOXechsyf0gDG28MU9tgLrrxlVqF6+1IpIaTxs3Be/n4cKpIHwi7BMm V4qPwqlWmoU+/IZ0YaIT5Tzba1mEFsxCWOyJmh6ZYsi91KEg6y3cSrQ7auLzCQK6bGgR 4lAFndm8NkPFAOejA7MbLy9bt3WJU1QPuJhhnrSJEHVFC3Lfez8pfD1VGveB0kK1wXIw xaFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685539374; x=1688131374; 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=tol9A9dtGHcljHA66FOclMfTsKdcHJMB2d8cTDTmgAo=; b=M2zJ+ys2xnAHfD5BDneot9K7Y1dgqp6Q1NddPi8GgDTWafu8AwDgoyi8T1g5uoS+DE ZBNJwNAjxs3ZVxpSHkXC4455db4oae2UsgOQ7Jqpi2Py+FvJHgYtlUtEICLcRgbFgdaz 0MG6UkNGX9jL/qRi2HLfDbSz8nOTQRAvr+C19v3bbZLTcOlbul8moq09ATGKGf6Drt/J ushmqptnhWb1eGzVZBoUubbPKdG9wVYzPiIKyGL6MlIqVDMD2ySsvVphnpS1tYm4LlDc QGcOup0DDXKZsOjHTe95Idw9sstfqttwhVgw7HqzJyhMr//uXtYk9tmjt3SpptntICE1 N6uA== X-Gm-Message-State: AC+VfDzh7hX5gGR+v0rjsxxqLv6hdphfGvEEAWVvQcganHzntCLRx3xH swwkau1lQwAa8rPOb+PzFyPE/g== X-Received: by 2002:a19:ac45:0:b0:4f3:b1e6:4b46 with SMTP id r5-20020a19ac45000000b004f3b1e64b46mr2632154lfc.12.1685539373825; Wed, 31 May 2023 06:22:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 06:22:53 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 15:22:40 +0200 Subject: [PATCH 6/8] arm64: dts: qcom: sdm845: Flush RSC sleep & wake votes MIME-Version: 1.0 Message-Id: <20230531-topic-rsc-v1-6-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=956; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Ji2UGqd5wvE0QH520QUaPwq9VzlZOXRjNLOcK3RP5/U=; b=7BHvx2rPgpUf4NGxNs3Ob3YsDzbMYUXZaXhT4iudfbPuf7mxO1f4JTGjJOz4Djv+l7lVa47md ups4U6P+9cuASntmk4hnty2tNaFVYB7hiRjRBwJqPR3fS/DrU543Qi8 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=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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767417335881650882?= X-GMAIL-MSGID: =?utf-8?q?1767417335881650882?= 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: c83545d95376 ("arm64: dts: sdm845: Add rpmh-rsc node") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 950305aad44d..707550ef4990 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -5138,6 +5138,7 @@ apps_rsc: rsc@179c0000 { , , ; + power-domains = <&CLUSTER_PD>; apps_bcm_voter: bcm-voter { compatible = "qcom,bcm-voter";