Message ID | 20221018152837.619426-1-ulf.hansson@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2021607wrs; Tue, 18 Oct 2022 08:32:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6F4i0tddlrSiDe+f9BJWIOpC97kLmXO/LDyKs0lIcgEbV/Y5HYflpIaVcDohSxGKFJAB4E X-Received: by 2002:a17:906:8457:b0:78d:98e9:ad59 with SMTP id e23-20020a170906845700b0078d98e9ad59mr3005432ejy.29.1666107134795; Tue, 18 Oct 2022 08:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666107134; cv=none; d=google.com; s=arc-20160816; b=0exQ0Yzo1Q+5m7EDIZhMKoqKJSWJdrCET2dbLXNuSTK6FKLxVfE/M0W7Mj4MMwMnVO FYH8HxLQL+lxDssqFNYCtRoiP8czZdLYA8qc48WDWu2PwUymhkQugHNrUABtejq8eHKs e29ry/jGLhQoadlXpJOdNSAZJ/IKCUzAgXX4VO7TgEyyGu9pg2aosKVnIlaV/9CFWkXj aha69IegTKtuPNkbIjqaf+4LOlpOYQs5BA3+3dNAEw+bVpTgqfMacxDscNHWBQCMuRQJ gJI9OkFYQZF1l50j7ld1eP2dBSQz8gXQCxq0HRRgoBAxBIb+cmBrseCSEhPOfMY6WHqA 9czg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UIeALh8fZBeYzvBT8RoZsVBwMsxQV7EeSc9KIgaLlgw=; b=Dre+aBz29Q1yYNEbxQMQ0SR9yNsoY8unYf0b0I+Z5NZ3QWVMb2ZQIdWfBZrw+LWzNJ 1t1SexuKwGrTT3rpzfYCMErlUmERatIDyuqO6L2ETN9okFR3Xy5/K5pdIshPB1Cm42FE k2Ho+JP7zMC795BjEm/ABu9Nz5C1cjRoQnTv77/HZZ0I5zD5heKiphdhRE3mkRWW2RoW eEOs3TOKLGHNnLWaMn0S+7UTCADYNNBN0F43Lpurfo8rr+KRvw6ByU49mXBiMCvPl5Jm zhQJkVJ6aUJhIvxU7GaTpdD0Rz83UmAjVvsUkpgs0uaCNxQ+35/KVHy1JG9V8rBPufXr S7PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kpeH0bz9; 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 cu9-20020a170906e00900b007830f14fffesi11035394ejb.375.2022.10.18.08.31.49; Tue, 18 Oct 2022 08:32:14 -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=kpeH0bz9; 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 S230408AbiJRP3V (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Tue, 18 Oct 2022 11:29:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230347AbiJRP3B (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Oct 2022 11:29:01 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B609ABC60E for <linux-kernel@vger.kernel.org>; Tue, 18 Oct 2022 08:28:55 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id g7so18248115lfv.5 for <linux-kernel@vger.kernel.org>; Tue, 18 Oct 2022 08:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UIeALh8fZBeYzvBT8RoZsVBwMsxQV7EeSc9KIgaLlgw=; b=kpeH0bz9eRnfvvtktOE/T2E70VrhjVcvAeYSRRVAuMs3K+90aVYoqiuQ59jrW+LdFd i+UTvad4xLM5mVmwSn7MDZNhcJPxw3fbU8NExMK10+tKhX2dOvuE5CcR9brexP/Q1rpK IHuFiq5n+Qs0GVgMQn6VFHxwa4AyZ3vVrCphDa1It0LOL5ZbZSJe0HNIPXVF3d1N3m/o 1yLr9kAiA+pWpTmMBthXUADD1UFkfp6UbPG+Ll2CxZZ8qjhcrJR0i1SEnl983IXnr5Fr 7nVuFKGJuTotJ0b5JrQQhbc2rRZOM/K/hPgudVsiDUR2zZItUhhnkIgqLx69gXv8KIOG Be+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UIeALh8fZBeYzvBT8RoZsVBwMsxQV7EeSc9KIgaLlgw=; b=ONApOVkmeMjrwql3So3pDTMeydi+qyf/N8m/Z6zmLaySUmMlXS1wvg56smo8kW/QTx 6FPhOGCYJ4A2DwGDmj9A77eH2XcSv8JO7RpSOqXOFONl/t2XeHoFfEDUgQK9RjKxEypW q3adNeRZ4vV8a+sNgp8s+zZ9Cw+eNNlF2lmqC0t1Pl4XnDuvHRNr7w2QHatoojk9ecoP fIVVoWXkaadrUQu3hH9kIjP30DXMf2//TFVFnikLHWSFp0zA48NjJJ4eI54Q5nhvsfH5 u0dA5K07rGfEiJFXE8586/yT7MoOjjFBL91Ewlc5/LjLqKb40LQ0CQpzT9N7GuHGcpea 3Elg== X-Gm-Message-State: ACrzQf0nrBXG2I9HFlxm72yGwNo6Wqct1uQf88eLH2k/arjcNI8I7JzX xKz8rA8AP2BJRiatc9cJTcImNg== X-Received: by 2002:a19:f80c:0:b0:4a4:5923:5174 with SMTP id a12-20020a19f80c000000b004a459235174mr1250336lff.151.1666106933561; Tue, 18 Oct 2022 08:28:53 -0700 (PDT) Received: from uffe-XPS13.. (h-94-254-63-18.NA.cust.bahnhof.se. [94.254.63.18]) by smtp.gmail.com with ESMTPSA id a9-20020a05651c030900b0026ddd41aecasm1998617ljp.135.2022.10.18.08.28.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 08:28:52 -0700 (PDT) From: Ulf Hansson <ulf.hansson@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org> Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Maulik Shah <quic_mkshah@quicinc.com>, Rajendra Nayak <quic_rjendra@quicinc.com>, Sudeep Holla <sudeep.holla@arm.com>, Amit Pundir <amit.pundir@linaro.org>, Ulf Hansson <ulf.hansson@linaro.org>, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/6] soc: qcom: Add APSS RSC to the CPU cluster PM domain Date: Tue, 18 Oct 2022 17:28:31 +0200 Message-Id: <20221018152837.619426-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747039954833720425?= X-GMAIL-MSGID: =?utf-8?q?1747039954833720425?= |
Series |
soc: qcom: Add APSS RSC to the CPU cluster PM domain
|
|
Message
Ulf Hansson
Oct. 18, 2022, 3:28 p.m. UTC
Changes in v3: - Re-worked the genpd patch (patch4) and updated the commit-msg. - No other changes. The APSS RSC is a part of the CPU cluster PM domain and it's responsible for flushing 'sleep' and 'wake' votes to avoid wasting energy. In particular, this needs to be done when last CPU in the cluster enters a deeper idlestate. To make this work, this series makes the APSS RSC device to become attached to its corresponding CPU cluster PM domain, which are being managed by the cpuidle-psci-domain through genpd. More details are available in the commit messages for each patch. Assuming there is an agreement to apply this, I suggest Bjorn to funnel this via his qcom tree for v6.2. Note that, there is also a related error report [1], [2], that this series should be fixing. Although, as $subject series seems a bit too heavy for stable kernels there's another minor workarounds in pipe [2] for 6.1-rc back to v5.18. That said, we may then need to make a revert of [2] for v6.2, assuming it gets merged for v6.1-rc[n]. Kind regards Ulf Hansson [1] https://lore.kernel.org/linux-pm/07c29682-41d7-5624-b08a-35dd0c223d1e@linaro.org/ [2] https://lore.kernel.org/linux-arm-msm/20221018145348.4051809-1-amit.pundir@linaro.org/ Lina Iyer (1): soc: qcom: rpmh-rsc: Attach RSC to cluster PM domain Maulik Shah (5): dt-bindings: soc: qcom: Update devicetree binding document for rpmh-rsc arm64: dts: qcom: Add power-domains property for apps_rsc PM: domains: Store the next hrtimer wakeup in genpd soc: qcom: rpmh-rsc: Save base address of drv soc: qcom: rpmh-rsc: Write CONTROL_TCS with next timer wakeup .../bindings/soc/qcom/qcom,rpmh-rsc.yaml | 5 + arch/arm64/boot/dts/qcom/sm8150.dtsi | 1 + arch/arm64/boot/dts/qcom/sm8250.dtsi | 1 + arch/arm64/boot/dts/qcom/sm8350.dtsi | 1 + arch/arm64/boot/dts/qcom/sm8450.dtsi | 1 + drivers/base/power/domain.c | 26 ++++ drivers/base/power/domain_governor.c | 3 + drivers/soc/qcom/rpmh-internal.h | 9 +- drivers/soc/qcom/rpmh-rsc.c | 146 ++++++++++++++++-- drivers/soc/qcom/rpmh.c | 4 +- include/linux/pm_domain.h | 7 + 11 files changed, 188 insertions(+), 16 deletions(-)
Comments
On Tue, 18 Oct 2022 17:28:31 +0200, Ulf Hansson wrote: > Changes in v3: > - Re-worked the genpd patch (patch4) and updated the commit-msg. > - No other changes. > > The APSS RSC is a part of the CPU cluster PM domain and it's responsible for > flushing 'sleep' and 'wake' votes to avoid wasting energy. In particular, this > needs to be done when last CPU in the cluster enters a deeper idlestate. > > [...] Applied, thanks! [3/6] arm64: dts: qcom: Add power-domains property for apps_rsc commit: 2ffa0ca4d37a1fef0b423f32007067fbce8708a3 Best regards,