From patchwork Wed May 31 13:22:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 101471 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2879194vqr; Wed, 31 May 2023 06:27:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6SSWtyHUdZ6a5ngU+wGbjnbLRNIn41cjBo6DDcgXuajzfNmhSzeEVj0Z269BWXd8DUX6Kh X-Received: by 2002:a05:6a20:8e2a:b0:10f:bb1:ca50 with SMTP id y42-20020a056a208e2a00b0010f0bb1ca50mr5325006pzj.10.1685539625717; Wed, 31 May 2023 06:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685539625; cv=none; d=google.com; s=arc-20160816; b=C3QlugtHfoJsqaHYyJR9LIEGOpJT4awbbuwSj8J37B4XLEoHxiMj0yz+Moo7x1styv InaN2E1qrkTZUYYuz4ZJPdcf0Rkt8r7E5edYnXdlbI5u9DV+wXeqJuWgGWl3Q8HVJWYY 0X4dvj5NR02QgOIs+SrhZbn3HbpwhYIzUdYKpqRE/mpj0gbZIWayrHtE4IGCYlMPtLfq wgXGPMGXcUU/HuGGojKWww4jzaqyX2Ukwln2eBkNn9g0i9Y+kaz54UJoXZo0tyFYtrEj M9nYpDXsjyf/AYWonzSPQFPfiIHQc7VVs+iUpYLe6ncig2k9yOnjo48xmlKoEcBmA0q1 6gaQ== 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=xFK+Ou6t+IM+Z0lJFsVgxMPKX7db6qU21GRYqBnVGs8=; b=jdKiEsjSHcKUk3PY7Sh4vDIHd5BWndgBgY1+d5SE9rR1EcOov8FWrjEjou5e1LVNvu hu5guu1XsQZb+JRqdIeKpoO6SEKOrAjIoQcI/wYg+JuK91dxw4fZAc32h/iX2KsNz2Yp OOuoAcjbQEV2BxQCsmhJjEpG//IGR7iKqoz1L31Zf2SVWGfhhfg8NruKVAO/wI3j+OuJ H+s8p97xVddRVQh7ya16zyyCQJsGOi7+ywrbIYH5PLzGTe9r6rjEPpVAUsXHPT1+cA3w ZQzd4DRsLhcDNFgE7LU8Y8XR4FbKGBzcr10XuwDRvrVhugK+5ZoH9L2Suey4UhnUS7vS 0CTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xheckUJT; 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 l17-20020a637011000000b0053076a4da8asi881911pgc.770.2023.05.31.06.26.51; Wed, 31 May 2023 06:27:05 -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=xheckUJT; 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 S236406AbjEaNXc (ORCPT + 99 others); Wed, 31 May 2023 09:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236423AbjEaNXK (ORCPT ); Wed, 31 May 2023 09:23:10 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F39A61AE for ; Wed, 31 May 2023 06:22:58 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-4f4db9987f8so1181605e87.1 for ; Wed, 31 May 2023 06:22:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685539377; x=1688131377; 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=xFK+Ou6t+IM+Z0lJFsVgxMPKX7db6qU21GRYqBnVGs8=; b=xheckUJTFHHmw4+nyIEBDwWhPOuL3vNKlQo5u212RJIkGqB0ZD30MnU7ZHr5rC/T4u MrR4IesMXrVF2zTudxQF/tx/VlT3exAyrfdtPMtHmFleB2shWS5Z1IHFzUDcy+Okd8fm ud/KpK48LlzoZWJY3QwpGOa7VhapJvoik6tUP1WAmT5bbv8gLgsIDzgekdghaBBg9TcR l901P//oMpyKUdJ1dwtjVYMRJVFMfBhhP0P335oOalSNIQcaolStpPTFoTM+Q+lanTWp qLeuRVO10oKbCP/2izLOCoMb/Os8AHwyB2V6duXywxrqzTsl+W4iDd0uDDhqYcmlZFEV qVvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685539377; x=1688131377; 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=xFK+Ou6t+IM+Z0lJFsVgxMPKX7db6qU21GRYqBnVGs8=; b=HFZrmsNKvncDyRblsh4rjkxy94CljqniztwDIcI5Iiaa2otwSMga+ncopTUc+stc/b 7+ql5YfWHUhiJlzsYIOWnkAONZF7BYbfJbEl8qCGAmqxFoXLsWsQpTPJPn5BSy+YiYAv A7XtGK6wXbQuNCZUGW864uXS8tIsEgsDAombFUcW5h8pdpfWixKrBSWzlL7EsaaW8usN 1gblpP5ZvRlqz49wGzoX6ldFo/Jot/gCsBLLMEA8Gok74Zp9eqbzgzFzxMco4WIsFXEa VNnJLODS3LiGQVzMGBnqNdnRO82Exs4r9G0QvTQ/8SVIIlHzb4A859g481EzPYhMD/yt 7Szg== X-Gm-Message-State: AC+VfDyq0+fQ562zZQPMGdtLZ2aiVB94DHrSLBXZG9RMH9/98oC4hTNj NSraYyOXwKswDcMgbGNzu15rWg== X-Received: by 2002:ac2:5df6:0:b0:4f3:b242:aa98 with SMTP id z22-20020ac25df6000000b004f3b242aa98mr1822980lfq.30.1685539377267; Wed, 31 May 2023 06:22:57 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 06:22:56 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 15:22:42 +0200 Subject: [PATCH 8/8] arm64: dts: qcom: sm8550: Flush RSC sleep & wake votes MIME-Version: 1.0 Message-Id: <20230531-topic-rsc-v1-8-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=1011; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=3LQbT1pkRcM60cyga6zU0z4GuxAMPjHrb5uo6UzkAYI=; b=Qt8SrZzczur1fTmSMEih1/4sXuG2wBrLyUhegwmgObDm6zu6aVcZgfgo883vtVdYv7Eq/MOZp vxQB0wJ3fvZA06kosIaS1r3hX01+7SKs0Mhnoc7nvCKPAnImrnb99XD 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?1767416398350458650?= X-GMAIL-MSGID: =?utf-8?q?1767416398350458650?= 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: ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 75cd374943eb..6a06373a3779 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -3621,6 +3621,7 @@ apps_rsc: rsc@17a00000 { qcom,drv-id = <2>; qcom,tcs-config = , , , ; + power-domains = <&CLUSTER_PD>; apps_bcm_voter: bcm-voter { compatible = "qcom,bcm-voter";