From patchwork Wed May 31 13:22:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 101468 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2878780vqr; Wed, 31 May 2023 06:26:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IfuZFulZ4E6JiqzFwECsZ1amfn+U6sHIIElHj3uD5arS5ESwsoyFa+eGmeQ6h8PBxqKyc X-Received: by 2002:a05:6a20:a108:b0:10c:6956:a23c with SMTP id q8-20020a056a20a10800b0010c6956a23cmr14076258pzk.25.1685539583809; Wed, 31 May 2023 06:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685539583; cv=none; d=google.com; s=arc-20160816; b=y+b/EK38Gi7sX+qGLMxnENMo8gX16a7guG5CoQ4AfeY9yWCM07hUR+L/h8H9bjyJ4H 7UqI32/QDSA0TnioXT47px5/372vrlo9S4IwpvLCSnaG6MKtq1Fyu67EzQW+sEjoxl3l pQM4UTxP9oP03qT2wnELWXD9QkwfJVn6/ccWCpZaEl8MZRDtJYTM7ReB5pSrA4h1AZSb 8Ld7AzLisigvNGG0WdR8KjvPQ78IPrm6jqxKuuLLc8zZi0smTuDXuEkssrWHHsWeirjz Ej5l8GPp74bLqoTxzIFFJA5GRgriEY9QjHVj55YURnxHNLN0gmAFusLW0NeCwbgZtvuV 7O6w== 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=1JKYiKf4WFoepDG7kmkdMIn6G2nwJhX9hDLD5w9hRh4=; b=0MMjnuDqsekrBITm0y6ZEIa/xUxnkhW++BZQYpOoCPMG69IsPweMBRqgla95aqQWQs z6dV2H9lTm6XNmOoM9MHzgWq1EUELruAakmz9RG9II+n3TlHeSTLGZhTlx5OxeUIlNqE 3Gc00N9XX9LPgR5GDne7d3gMFVLJAV4Kcaern5G7LeQXCyaIRZM6VWQe8Szge+igyqsF ZckAyhOGoyiMDxBFe32Q7caXwcQpBFoPOGionzFRgcD9KCT3ZsRmFDeo0dVpF/yZqAth sOUZWnzaeEwD5SoRyoJdbpyhWngdwQzptMj9TF+uZfdnFS/TJlEJVOorVotI2HxYWMdJ OoqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=COq5zbTT; 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.03; Wed, 31 May 2023 06:26:23 -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=COq5zbTT; 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 S236379AbjEaNWx (ORCPT + 99 others); Wed, 31 May 2023 09:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235961AbjEaNWt (ORCPT ); Wed, 31 May 2023 09:22:49 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC4B126 for ; Wed, 31 May 2023 06:22:47 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4f4b2bc1565so6556517e87.2 for ; Wed, 31 May 2023 06:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685539365; x=1688131365; 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=1JKYiKf4WFoepDG7kmkdMIn6G2nwJhX9hDLD5w9hRh4=; b=COq5zbTTMl/Il2oroAPsQu387YsO8bcsv3rUCk0E6TrpxJStBB0ewGqKobvxPlw2Av Jcno/cqIoWjjdVHNslUKDgU+s+iagQcLAuGbSb4YWhDApd32ZNz6oHO2VSo6wxs2QVql Wy1lcyHLPd3jcf+M2ojuAcvJwdrB1nEQRe7CEXjzsQWkzDZmjhBsGXtBslnYiGrc0VzA MtoJvKs1umoynbs9yZ2j1uZzb/T6/S+M2MfjTYFC8+GGHovMoJW+Nl6gWGBiOBa0A6XP +g/D7t+HAgxYX0+rCfLEBZcMXD2vryxerI9KMx4A7yDob4qkEHN5+SRhyJx9IF9dDU5S ED+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685539365; x=1688131365; 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=1JKYiKf4WFoepDG7kmkdMIn6G2nwJhX9hDLD5w9hRh4=; b=lGT/v4KK34+JRColdlUmivwRP0jqwhvNP18083sZlB4lZ7Y0W+kWCIB6v0xxsuc11D FYFqTkhqX62HP/911U/6ryzCLG5ZdsckjpZqqVXtUgDAMICBKbIqPmIZI7J2lvhCfOeN XZnGa0jNNk4HNbIvMAf5D8uyZV/Vwzf8cpprOKf9wzeLoMHrIFVkCp+OsH8ElvJQjkex QfH0ZLCLPyhLUXNLT8YcN0Rn7N5b6AQUV+lfRDLEZqEXXazDPjcWLDOARIUQ0/cbUkpR S1/qFrMpeDDibo9Stk/hjYatC0n186NRjAWOk5dUrwx70p+3K5UR7KJwxagoF8Rbcmty pF5A== X-Gm-Message-State: AC+VfDwDCQvNAvQomFAHTZee0DIJ8NKobXRlrBDjBgUoQbAfpZvveE4q JGIEetHhLhvhwmknn7qKf+GXyw== X-Received: by 2002:ac2:5303:0:b0:4f3:93d4:2bc7 with SMTP id c3-20020ac25303000000b004f393d42bc7mr2636780lfh.36.1685539365516; Wed, 31 May 2023 06:22:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 06:22:45 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 15:22:35 +0200 Subject: [PATCH 1/8] dt-bindings: soc: qcom,rpmh-rsc: Require power-domains MIME-Version: 1.0 Message-Id: <20230531-topic-rsc-v1-1-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=1288; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=WglQhLbldyvnWzPBrjju0jtd9AVV7mA5SfLScXjhzs8=; b=S52hqN1JXHaGwbGDFbUsOhaB5i4ksxo9xYZWuKR1BSbhWX2slaYLV4qP1zT02k/PnVEZV1iAB xuhK81Syaw3AUTe+hud2ETdH9/aRl7RIzmD7Qq0pqxdX9wRvE7BsZ9l 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?1767416354582366793?= X-GMAIL-MSGID: =?utf-8?q?1767416354582366793?= The Linux RPMh implementation refrains from sending some RPMh votes until the system is about to enter suspend (which is indicated by all CPU cores entering a low-power state). Lack of the power-domains property will make it such that these votes are never sent. Require the power-domains property as discussed in [1]. [1] https://lore.kernel.org/linux-arm-msm/20230512150425.3171122-1-quic_bjorande@quicinc.com/ Signed-off-by: Konrad Dybcio Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml index a4046ba60846..af632d0e0355 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml @@ -124,6 +124,7 @@ required: - qcom,tcs-offset - reg - reg-names + - power-domains additionalProperties: false @@ -179,6 +180,7 @@ examples: , , ; + power-domains = <&CLUSTER_PD>; }; - | From patchwork Wed May 31 13:22:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 101484 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2889208vqr; Wed, 31 May 2023 06:42:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4lFuPMl/u8QdisK8X9C4I1eCN5hp3WCE2xHM+8mGU7SDXaL/o5uIOkionlwo5u2mhdBteP X-Received: by 2002:a05:6a20:840f:b0:10c:29e5:941e with SMTP id c15-20020a056a20840f00b0010c29e5941emr7165948pzd.59.1685540551274; Wed, 31 May 2023 06:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685540551; cv=none; d=google.com; s=arc-20160816; b=WJTkJ7rNvvauV2oqZZWjIOnshRClY0vXX76oonCVZjeH3mHVr9MaoFEjzPYRMSsL+i e69TyL1MY86iwVNhqZjoL4Du8zcblrC2NR5kgA/5OvlxPR23yRGzTKV4/+uVzuzxUXLV SnlKmVKXDxYOtkMy0ODxCfeTFdZEop7EChmhUfWnIpVesa2UkNzhFMHzfexY+wAjFEuc oQzizCRKpCNc77z9I/yAPuOzvlc22nal3UFTi1Znr18mYY6yeqZoa6aANumZtAQVSJ2n 7DohAlDPg7cNwxs9vT1VtTRO5FtfzRXsuKimwYZKO2fZV9czzg8TcNm6xl24StdqVhMR B8rw== 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=nof0fcraUf7ziAMYvboreBBmHnbxyW58ozUlb23q/Is=; b=XeSPAFtqQzoUwWhXPPF+g0dPpN1eI6UyUIRfHjzyH1M2h5MRHLMKknMxioDm6cBULW Nid3Cr1pfSKsmzUIQvybgBZmnproOLfXfNDayeEvv7Vqh7nWUABGOmbgdEsd7NUxM1F1 MXUUOtW6o0T0fUeB3oPQbLbduq6leRvukVlVoACwtEN9QK43DalRyeyQGoa+8w4qNGO8 GfjR5Vi1lCfDjckXwHpPFVxxf8Ut+dn6kZKrMI3ludJfbo1F9nO1CKtW5HF+4qlHdoIA a5GfY18SOqhuaWoPgP6dqsT4WmYxifatLGQoJ2XvtvHVU14kcrvKvWasvZfwfwysk/4H OD2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QtNGn/b1"; 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 a63-20020a639042000000b005139edd3958si1054005pge.6.2023.05.31.06.42.15; Wed, 31 May 2023 06:42:31 -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="QtNGn/b1"; 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 S236375AbjEaNW5 (ORCPT + 99 others); Wed, 31 May 2023 09:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236374AbjEaNWv (ORCPT ); Wed, 31 May 2023 09:22:51 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C66C5A0 for ; Wed, 31 May 2023 06:22:48 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4f3b39cea1eso6578855e87.3 for ; Wed, 31 May 2023 06:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685539367; x=1688131367; 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=nof0fcraUf7ziAMYvboreBBmHnbxyW58ozUlb23q/Is=; b=QtNGn/b1WZTG6Icg8tsfvn5PP28xeApGsFniTvTRezvjFcp4V7tcg2dxND3KPbkbN6 Df76+qebEz6t4lD85BCjj8tfEqoZ2KrhYvoy4eQLRbwzsnV0BJk0JBg9D51DVMzPhXVs +UHB63JWhLyfTWW+JioQ00lD8tDNACa3AR1d2NOph2mbIgcJ6rcGWyY0zezfcj3ToQXw kE2ugUnqeb2QqfcbETQEdB34NHStmKJQSvsRe7hE5AaYfmsNVDD3ScBGkttjxc8hGUNs 41pSjULhhbaq/D848Ta11tlNaiWggd1B2VSPRMYu14ANfuGxQ16ysEYaDPqO6URfM+iD s5DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685539367; x=1688131367; 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=nof0fcraUf7ziAMYvboreBBmHnbxyW58ozUlb23q/Is=; b=h0Sl+oXiiyqKzFBCMyDlukOeHB8Ng3N1ItMKGxQYLU0lCrDjobX07D1nYMhmN12ZiV u/EBWiY7B88+Lf5WfeKeLOiJhvY7nuwY6V6BhhGz5ckwIMJsX1US9NKaFpvMztQkdX4v UP0RhC+nGTar2kGcqoGgW9jgsSmt1j3WPw8iWLhOWGMddZGm2I5cshtN8X9GNZdHMDDi oCGz6K/0sSsatZo/HPE99yVY+a/w63UGN9OwWPbts3Y0pN5MBbAL9tH8pd4kw7slWkYI g7CiG3FjhBLHlqHB5eVRvBInmssBYFzste6pLKPkHlhU61iXVrv1EPlk5ZsitUzIEvG/ MhhQ== X-Gm-Message-State: AC+VfDya1bPXBsteSvmWekDBa8UMrO6sJybDrtSfRCzwA61PIhlLErnh 2JxQrQpPF5SXqTlhbKmT5HVHlg== X-Received: by 2002:ac2:5238:0:b0:4f2:4419:932c with SMTP id i24-20020ac25238000000b004f24419932cmr2539922lfl.23.1685539367031; Wed, 31 May 2023 06:22:47 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 06:22:46 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 15:22:36 +0200 Subject: [PATCH 2/8] arm64: dts: qcom: sm6350: Add PSCI idle states MIME-Version: 1.0 Message-Id: <20230531-topic-rsc-v1-2-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=7351; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=qTMZv+oBuQzxfRAczHq2kgWkd1AVOwgX8ifCX4qtLiA=; b=9GbD5WdJT72ka28Wq714XVJZ4eaxAjvcCPTiOBSxW1SLvBUyVLxp7YDnaizIBfXzDA6v1dGfp XG8VGPt2E/KD/hFwq/TCGeo61bu/yRPK8o2ClNvaO8TUpj2RZhPTy9s 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?1767417369380919197?= X-GMAIL-MSGID: =?utf-8?q?1767417369380919197?= Add the PSCI idle states so that the CPU (among other things) can reach lower power states. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 141 +++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 46c29a190f1d..9311bb6bddab 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -56,6 +56,8 @@ CPU0: cpu@0 { interconnects = <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>, <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + power-domains = <&CPU_PD0>; + power-domain-names = "psci"; #cooling-cells = <2>; L2_0: l2-cache { compatible = "cache"; @@ -84,6 +86,8 @@ CPU1: cpu@100 { interconnects = <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>, <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + power-domains = <&CPU_PD1>; + power-domain-names = "psci"; #cooling-cells = <2>; L2_100: l2-cache { compatible = "cache"; @@ -107,6 +111,8 @@ CPU2: cpu@200 { interconnects = <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>, <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + power-domains = <&CPU_PD2>; + power-domain-names = "psci"; #cooling-cells = <2>; L2_200: l2-cache { compatible = "cache"; @@ -130,6 +136,8 @@ CPU3: cpu@300 { interconnects = <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>, <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + power-domains = <&CPU_PD3>; + power-domain-names = "psci"; #cooling-cells = <2>; L2_300: l2-cache { compatible = "cache"; @@ -153,6 +161,8 @@ CPU4: cpu@400 { interconnects = <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>, <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + power-domains = <&CPU_PD4>; + power-domain-names = "psci"; #cooling-cells = <2>; L2_400: l2-cache { compatible = "cache"; @@ -176,6 +186,8 @@ CPU5: cpu@500 { interconnects = <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>, <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + power-domains = <&CPU_PD5>; + power-domain-names = "psci"; #cooling-cells = <2>; L2_500: l2-cache { compatible = "cache"; @@ -199,6 +211,8 @@ CPU6: cpu@600 { interconnects = <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>, <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + power-domains = <&CPU_PD6>; + power-domain-names = "psci"; #cooling-cells = <2>; L2_600: l2-cache { compatible = "cache"; @@ -222,6 +236,8 @@ CPU7: cpu@700 { interconnects = <&gem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY &clk_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ACTIVE_ONLY>, <&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>; + power-domains = <&CPU_PD7>; + power-domain-names = "psci"; #cooling-cells = <2>; L2_700: l2-cache { compatible = "cache"; @@ -266,6 +282,76 @@ core7 { }; }; }; + + domain-idle-states { + CLUSTER_SLEEP_PC: cluster-sleep-0 { + compatible = "domain-idle-state"; + arm,psci-suspend-param = <0x41000044>; + entry-latency-us = <2752>; + exit-latency-us = <3048>; + min-residency-us = <6118>; + }; + + CLUSTER_SLEEP_CX_RET: cluster-sleep-1 { + compatible = "domain-idle-state"; + arm,psci-suspend-param = <0x41001244>; + entry-latency-us = <3638>; + exit-latency-us = <4562>; + min-residency-us = <8467>; + }; + + CLUSTER_AOSS_SLEEP: cluster-sleep-2 { + compatible = "domain-idle-state"; + arm,psci-suspend-param = <0x4100b244>; + entry-latency-us = <3263>; + exit-latency-us = <6562>; + min-residency-us = <9987>; + }; + }; + + cpu_idle_states: idle-states { + entry-method = "psci"; + + LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { + compatible = "arm,idle-state"; + idle-state-name = "little-power-collapse"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <549>; + exit-latency-us = <901>; + min-residency-us = <1774>; + local-timer-stop; + }; + + LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { + compatible = "arm,idle-state"; + idle-state-name = "little-rail-power-collapse"; + arm,psci-suspend-param = <0x40000004>; + entry-latency-us = <702>; + exit-latency-us = <915>; + min-residency-us = <4001>; + local-timer-stop; + }; + + BIG_CPU_SLEEP_0: cpu-sleep-1-0 { + compatible = "arm,idle-state"; + idle-state-name = "big-power-collapse"; + arm,psci-suspend-param = <0x40000003>; + entry-latency-us = <523>; + exit-latency-us = <1244>; + min-residency-us = <2207>; + local-timer-stop; + }; + + BIG_CPU_SLEEP_1: cpu-sleep-1-1 { + compatible = "arm,idle-state"; + idle-state-name = "big-rail-power-collapse"; + arm,psci-suspend-param = <0x40000004>; + entry-latency-us = <526>; + exit-latency-us = <1854>; + min-residency-us = <5555>; + local-timer-stop; + }; + }; }; firmware { @@ -395,6 +481,61 @@ pmu { psci { compatible = "arm,psci-1.0"; method = "smc"; + + CPU_PD0: power-domain-cpu0 { + #power-domain-cells = <0>; + power-domains = <&CLUSTER_PD>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; + }; + + CPU_PD1: power-domain-cpu1 { + #power-domain-cells = <0>; + power-domains = <&CLUSTER_PD>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; + }; + + CPU_PD2: power-domain-cpu2 { + #power-domain-cells = <0>; + power-domains = <&CLUSTER_PD>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; + }; + + CPU_PD3: power-domain-cpu3 { + #power-domain-cells = <0>; + power-domains = <&CLUSTER_PD>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; + }; + + CPU_PD4: power-domain-cpu4 { + #power-domain-cells = <0>; + power-domains = <&CLUSTER_PD>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; + }; + + CPU_PD5: power-domain-cpu5 { + #power-domain-cells = <0>; + power-domains = <&CLUSTER_PD>; + domain-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; + }; + + CPU_PD6: power-domain-cpu6 { + #power-domain-cells = <0>; + power-domains = <&CLUSTER_PD>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; + }; + + CPU_PD7: power-domain-cpu7 { + #power-domain-cells = <0>; + power-domains = <&CLUSTER_PD>; + domain-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; + }; + + CLUSTER_PD: power-domain-cpu-cluster0 { + #power-domain-cells = <0>; + domain-idle-states = <&CLUSTER_SLEEP_PC + &CLUSTER_SLEEP_CX_RET + &CLUSTER_AOSS_SLEEP>; + }; }; reserved_memory: reserved-memory { 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"; From patchwork Wed May 31 13:22:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 101481 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2888578vqr; Wed, 31 May 2023 06:41:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6y4V1esf7iIW0h3v5b2GG9V/4RNPUGNtqtHElzEOY9Gg1Lk9qCS87NhRJr7sEzY2BqPklz X-Received: by 2002:a17:90b:e86:b0:250:7347:39d9 with SMTP id fv6-20020a17090b0e8600b00250734739d9mr4784083pjb.37.1685540487064; Wed, 31 May 2023 06:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685540487; cv=none; d=google.com; s=arc-20160816; b=bXQmYtGvL31a8OPbBKKuwga804DJonIIQu+lQYpC/InuYTiILVRfN7FgkF4TVynreP Z/vkQBMa02dqPVNIhrXYR4h0CQNACEuEbWMsKY3I/oKsq+MpL77AnCtpBEK9n0GonIyq VhkKqR5MtkU0oRf9bGO6TbXy6iKs9ALEFQmKywxOJcCSAO+2ncDaNQp7QaVejePBMR3X kx0RulqNdpJt0Dp0rJ5dcbupJXQ8RZenLjS57AJVzxdfdItoplaQDz4TS18iM2kEjJUW TSXZXUGkMFluQ28rOcqRhP/j8uNTcokq4VWB16gDoUq50l08IzUKPG35GXeK/25wHCw1 sAVg== 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=Ofn+y+PGmsgVQL53Qyo7xRQqsOY2ldRcLbPHWF8Ex50=; b=IFqTjYOBC7a2M9srryql+50xNqRWWW50y0h/xDHTO/PuSYQBHNRfyufEW5l4E1kj97 1OcxXh9y48D0tHUlLnCX5ci0QDWbJvK08eqCSbH80cx3jXnrjlOspluR7YzQlE/BSFwL K11Ja+ak9bvT2fTmnsqGIsg5rfDBHX59m+uKHuyqLYeL7TJUm4SDIa9TU5Sx85UmJPmv /Qyc7WsIEpWvoOruMEB1wdxdQ2u3ymtdrj5hFvRviHWrnFYe7B00xpPSVUA9nyOHJjXU J4IaJ0AmZc4MKjCfJZdnx2LKwpujY/2DE8KY3toWgazIJWgePXhZ2EFJzDvGTiqt61lz 9cSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ar0oLQdw; 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 u27-20020a63b55b000000b0053fb5df556dsi1037705pgo.439.2023.05.31.06.41.11; Wed, 31 May 2023 06:41:27 -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=ar0oLQdw; 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 S236416AbjEaNXJ (ORCPT + 99 others); Wed, 31 May 2023 09:23:09 -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 S236384AbjEaNWx (ORCPT ); Wed, 31 May 2023 09:22:53 -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 2CFC112B for ; Wed, 31 May 2023 06:22:52 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f3edc05aa5so6629207e87.3 for ; Wed, 31 May 2023 06:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685539370; x=1688131370; 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=Ofn+y+PGmsgVQL53Qyo7xRQqsOY2ldRcLbPHWF8Ex50=; b=ar0oLQdwCyoTg4+4Vm94VPv4TNwrDHD+dDpoMUqRwn9fFLxJBiDvsDMTSc+fw1/IjF Pcgok4c/qqCJjExCjFyeRfj/nzhTg6kP8HLsVZdl6tafKZpQ5fpk5HXwwGjyZNme6qRs dvQb+l011lHg1Ztk+agtcn0KGWDUMxAVc1NshZBi9/CtYx/ZZtAAB4zTVp4uttvdDAGl wgBnZziyrpK5rYmiTSe+8XvPDhZGqAD4tQLj7z/IohF/0K0xoa2Y187rgNrR77Mj6vBJ 25TBxXT3LjhkWgrqf9X+Rwjnn/ZfFjYWSTlczQBgXk4MdERqrV5fdMjoZK7TTPJQJ28p FZ/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685539370; x=1688131370; 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=Ofn+y+PGmsgVQL53Qyo7xRQqsOY2ldRcLbPHWF8Ex50=; b=Hz9WNEjU5PG3ToNBV2Lzh3dxXrsGkykNJBAk6JplY3Q0P2aSRRYbL/QlJ7Bcrbb3oz B/04kQuODBrC+zkpwepRiujXESPMmickpwhbNW3letalg3u1qISuUeoq68fAc+eoWh+i 1ASahvKjoqdh0CV2z7vCjF59JOwopciB4XSd+OHQtP1bUHh3LRXV0wEMC2+QJNUPvXbA gRPGLHojehih+v5iEl38BO7IQUTGVLZrbhHWLLRtE5ethatyR5zJThOLW2bxbx1I4n96 rnkXuSmCD7XqIRzVnUh23F5galW6Q1WvLnvzx0yeMEOBGCOqeTxwv2XsW7UFfFrw6sAi dS9A== X-Gm-Message-State: AC+VfDxpfD+THv+P0nc29f6ysg2a/241TO51HZek1/mcFYJVfUPaTDxG ki4LFoa6F19Og17V7/gyh8wdjg== X-Received: by 2002:a05:6512:41b:b0:4f3:a812:5ae with SMTP id u27-20020a056512041b00b004f3a81205aemr2601995lfk.37.1685539370547; Wed, 31 May 2023 06:22:50 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 06:22:49 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 15:22:38 +0200 Subject: [PATCH 4/8] arm64: dts: qcom: sc8180x: Flush RSC sleep & wake votes MIME-Version: 1.0 Message-Id: <20230531-topic-rsc-v1-4-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=971; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=cKOapMBIii+fL2wQU7lC3ue35ogY5raQDF5oY+5d6gw=; b=Q+osHJ0Dqpj6i+/TSyJc4+DBCPPXg5metQbQTebGzUk2lqRBcOQyi8USKRHKdlq+j4gEQhgdR SHePggS83qYD+dUfe9fvU4uvSt41aCOOXwmBhE1R0KOjYW0ePJB5nc3 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?1767417301562130428?= X-GMAIL-MSGID: =?utf-8?q?1767417301562130428?= 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: 8575f197b077 ("arm64: dts: qcom: Introduce the SC8180x platform") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index e8613a00fcab..573c542b1ce8 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3495,6 +3495,7 @@ apps_rsc: rsc@18200000 { , ; label = "apps_rsc"; + power-domains = <&CLUSTER_PD>; apps_bcm_voter: bcm-voter { compatible = "qcom,bcm-voter"; From patchwork Wed May 31 13:22:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 101473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2882811vqr; Wed, 31 May 2023 06:32:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dMQARulBYrMUVblf4QP9wLi23xC8Xm2kHFwasfytC9rv9DiCAzTIVy7DUGMa8nyTdor28 X-Received: by 2002:a05:6a20:918a:b0:10b:7400:cef7 with SMTP id v10-20020a056a20918a00b0010b7400cef7mr7029165pzd.17.1685539939481; Wed, 31 May 2023 06:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685539939; cv=none; d=google.com; s=arc-20160816; b=uMCSQ4ma8JjpsfR6aw9Jk8oxSfIIgadpzJ/yWolzm3WWxHQcT0+FATkG7jeKaj817N EVtxpYsaActbzFgIONcf7HsoU5/8HLae3ZOIqCMg8QCggbavSqio8b7obV/D4Ptqk2QV j6Gt6TbA7dVTygTYYzOOyYxzMM+MjsvInf3Zt8IB9UKbChNJ58ggEAEAQd1j4clY2SZK G96mm7zaSKJeZwg1Kvd9MSCEdvc1Ize9vrX9L8+QeGETr98aeojZRU7C7fFyb1zna4l/ D/HLwBWa3Q1niTQKWXtADxm3De/F2Xqu0nBYprln5T17K9qUWfM2N/ksQsc4gFlbR/sg jQBg== 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=1ryW+K+LYqR1W2qwoXZKDnRUejfqdymBTRf0P14sODU=; b=Vrd8d6kLhdoQim5ieMEmZRPhuvReNYlDhU3uyqdmPo3j531Q1Eq9vgxmddy0oekLxV yQ7IcNhJBl0eogOp6IUjsCmI7LKQ/plP8R7vhvLwvbUFLfC3DvZ4mNMtN6CcY6spW3w1 55PpcC43RYjChI00d5rXXguAY4NXEzE6kzyu8g9baSbpvrQSQ+qLXI8ujFOJFjXseWfc akvNsATguJM62yuRBybaCM45A60O69JD6ix14RZUBOYj/97FRkvskpaA5oSqlt2gykRX tfquA4WxZMBM8PVQIheKzvGW6seo89Dmfs+sVBdKXyshyM6AkvMKaSyVGjF4mWdaGPBD o54Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MZSHZWn0; 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 w13-20020a637b0d000000b0051b4f4a2032si974361pgc.599.2023.05.31.06.32.05; Wed, 31 May 2023 06:32:19 -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=MZSHZWn0; 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 S236439AbjEaNXN (ORCPT + 99 others); Wed, 31 May 2023 09:23:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236383AbjEaNXH (ORCPT ); Wed, 31 May 2023 09:23:07 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87707139 for ; Wed, 31 May 2023 06:22:53 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4f4f8b94c06so4821400e87.1 for ; Wed, 31 May 2023 06:22:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685539372; x=1688131372; 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=1ryW+K+LYqR1W2qwoXZKDnRUejfqdymBTRf0P14sODU=; b=MZSHZWn0nM7S+f+7zoryLntPic2ZiFW629mjOTJvAB1sQ50phNT+ydKRrnKw/pwi2C Rrh3RC1AWpSAomgAZ5BxH6Oe4SIskZfTxtzSXSIeyUGjGPnEAfUXdUvCt8Mi7AdQeHSd Io7WE5qQOPkbLZFddQRNluk1Z1R6+mdwbWMu4+MV6Fw8PHQNKThILDSh7h4nlG1YhJMk kjG4bDixbCIyTREPfYzrYoE5DCItNSa5HTyovWdjdPsp/O91TYH8R/SdoRVKcC+I3UzJ buvbxcv0IM9iZEccCrsFY+Lqz1LgyWq0dT+cSvP0kzC/ZZSPTkYctKsAEGPWbjl8zF09 /3Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685539372; x=1688131372; 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=1ryW+K+LYqR1W2qwoXZKDnRUejfqdymBTRf0P14sODU=; b=YTadtmYDOWyIjTQS6UwBUJzSxLvFa+sWhlJImQwCFJ6SMpuwaRzyBSdfNIk+1+DwDc tQbmE2i6BJu5VeRA+kNNgoBIX1kt+/TZDJ6knuNDPXsblI6E9+ofaNtfH+Q34FUUbYf4 O1HapOVrJKX1gbEHWSQH1wVFMvAiDVj2qbBhaycdtDkxSx9C5LossGdWZAINstjDfdiq ABZhjOkW+Tff51KWBhQ3OInzbT0Sr7MCGjNnQaPm+jwg48n2tuQFnTKCd3sXQWUgiPww IwyTYGpULKW69gYdejcQLF8jMVAiZJrVyup4ZLJg7GgdKEL/zA2Mve+pKc2splK5KxyN vsag== X-Gm-Message-State: AC+VfDzKqjN7eNwTl95RtDSnnXPVqxPLhvTpU8mlmlKqZiD9gOBWKz4M A9y5hrB5qwkgEQtwbIqOMc+xYw== X-Received: by 2002:ac2:46d0:0:b0:4f1:866d:9b01 with SMTP id p16-20020ac246d0000000b004f1866d9b01mr2692340lfo.3.1685539372048; Wed, 31 May 2023 06:22:52 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 06:22:51 -0700 (PDT) From: Konrad Dybcio Date: Wed, 31 May 2023 15:22:39 +0200 Subject: [PATCH 5/8] arm64: dts: qcom: sdm670: Flush RSC sleep & wake votes MIME-Version: 1.0 Message-Id: <20230531-topic-rsc-v1-5-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=973; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=28KiIyU64Vcz64CBovN5yeE9vk16BjibiZQ9uV6zjFQ=; b=4NyvQdlZdQFvEUvndCC8eaIlcFTob2ugKlmbPnnPwXQ7XTJYmFWvPKt7gwTm2VjF1HeFnS+oD CVSUA1GN6F2DtVuZdYaZ/Vv5jelIlEWCukGP3S3rSAuL2cqpj792ETk 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?1767416727587138856?= X-GMAIL-MSGID: =?utf-8?q?1767416727587138856?= 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: 07c8ded6e373 ("arm64: dts: qcom: add sdm670 and pixel 3a device trees") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm670.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi index b61e13db89bd..a1c207c0266d 100644 --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi @@ -1282,6 +1282,7 @@ apps_rsc: rsc@179c0000 { , , ; + power-domains = <&CLUSTER_PD>; apps_bcm_voter: bcm-voter { compatible = "qcom,bcm-voter"; 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"; From patchwork Wed May 31 13:22:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 101470 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2878912vqr; Wed, 31 May 2023 06:26:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ocLO8oUOLZq5ul4qtLEGnrMrS58vwk4n/P3V844aUarpzCiAQMxqYyJMCHYA6ZHRHYnzW X-Received: by 2002:a17:90a:f691:b0:253:2c7f:e9ad with SMTP id cl17-20020a17090af69100b002532c7fe9admr4140163pjb.27.1685539596287; 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=nTPDmxIRWA4Vkhdl2sxwH2sHZ5K/tfjOQ/Jj8IoBicysCmVfr++SL+ydi4Y+wZEHp+ 1eVSN6/vXQ/lcxhRHHCYoc+Q2qMxnkvoipRW7ZH47+yuNOUujxpeBdib6yMZ5788nSw2 N0bnGZN2Xkj6rUizZfR2WJ/OQUUnF0c70cHp4g14ZcBSg8slDKFnre0ut7Q8AGWzQ2DB quoKBJ/Xo7riZbD7uSfgLJcG0b5v1wuWKWxpk83Wh3TfP/OXrNmnCl/6dHy0NVe5TLYY LQWHObnrCkWFR3hlBWuJ5KO2tOGknxZ3/PYVuhNoIhJ4pD29u9jN7eMKaZ8hZn6swmxY S5lg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ix1-20020a170902f80100b001a99b965c47si872257plb.411.2023.05.31.06.26.09; 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=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 S236470AbjEaNX1 (ORCPT + 99 others); Wed, 31 May 2023 09:23:27 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767416367586840865?= X-GMAIL-MSGID: =?utf-8?q?1767416367586840865?= 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"; 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";