Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3814852ybl; Mon, 3 Feb 2020 07:04:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxmoFLg2/1zk/mA/C4TwH4Kupf2+zSJhxbUWGAzkI5uRiAOjQFLZlch2PblCmMMSs1sqiMq X-Received: by 2002:a9d:f45:: with SMTP id 63mr18805119ott.0.1580742278993; Mon, 03 Feb 2020 07:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580742278; cv=none; d=google.com; s=arc-20160816; b=Y1cR9vk/l9BNJpK1qMX1K7KHQB2tFNjsnf1ASCYeduSItXz1aBx6OK9mGxaccLQ/bU Dd6qvRsuhUWfckBW/tn/mdbeHQV5s0ID9Gyy+2lMeW/XyvV2CIl8Bk6IiDc2oo4NUe1M 6jE/1mXvFgpoDwgUb4CYS1BSwqCoZgwFPSrrKugqiLMkie14iaN9r8/o+f7jto9etCEq ESjI+6SwZzj5Cuz6S0kJVzQ+sD47pVB4lPLyahuDv3VD/SIvWYuF1xWZ7Os9nXSAufXJ edCl9+QZndXlC6FrROjUd4dPo8MMP6Q/nzLcybtsJkmVvnuuUmAC6tAg4Xa2LrYkTGU3 3J5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=TI7++YyK03sKgcFbSkBWtvsKpSvZvojFEGq67S9YhVg=; b=RHXZnSVQAXeYn3Ht9hOo7UR7OJrGx9BPzDZ8g8Fgg7uAKRLbsQ9ZwWUHqOvK+r9OEI 9KYUIpGdBovcVLOglnw503kYLvjf8S/tFWCtWeYqyD74u8/OLO1GdF/yb94WdbpcbQE3 nRMdW3k/ryeZBImkCcRelPuz7ZFDJy2DF7wQU0C8nErcUhbzcxaA6Q7blU2k1dbOVRpL vulp+IdCzN2FNTe5MGOf4By/BnUPqnXiLYgpOIric2klCpC9e+UkELUdpUMsBPa1VIXB 8RU2KKdy2NH0C+z1aNvN3aLpTc3k8+vELrAxVwQQq5Sum+IuzJup+bxVjtPNszPxsRlm nJcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="J9vyR4D/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j14si9484223otp.319.2020.02.03.07.04.26; Mon, 03 Feb 2020 07:04:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="J9vyR4D/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727741AbgBCNgy (ORCPT + 99 others); Mon, 3 Feb 2020 08:36:54 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:59444 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbgBCNgy (ORCPT ); Mon, 3 Feb 2020 08:36:54 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1580737013; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=TI7++YyK03sKgcFbSkBWtvsKpSvZvojFEGq67S9YhVg=; b=J9vyR4D/yZoaxcNiStmAxGmQTNv42Kt9vw5TRtqrWRxT87EcLMknc2L87cCkmWZdvrOxqqj7 5hyq3NsFl0P/MkFov1mgnKWaA+HfbZWqeU9+jJurb4wbZOYsB0mIkAD67TPbqMYeEtUG0pBN pKCNXc6JcLGb+gVgOV7XzEDkJgw= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e3821f1.7f666f5e3c00-smtp-out-n03; Mon, 03 Feb 2020 13:36:49 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B81BFC447A0; Mon, 3 Feb 2020 13:36:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mkshah-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id AE292C433A2; Mon, 3 Feb 2020 13:36:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org AE292C433A2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mkshah@codeaurora.org From: Maulik Shah To: swboyd@chromium.org, agross@kernel.org, david.brown@linaro.org, sudeep.holla@arm.com, Lorenzo.Pieralisi@arm.com Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bjorn.andersson@linaro.org, evgreen@chromium.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, ulf.hansson@linaro.org, rjw@rjwysocki.net, Maulik Shah Subject: [PATCH v3 0/7] Add RSC power domain support Date: Mon, 3 Feb 2020 19:05:33 +0530 Message-Id: <1580736940-6985-1-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in v3: - Address Rob's comment on dt property value - Address Stephen's comments on rpmh-rsc driver change - Include sc7180 cpuidle low power mode changes from [1] - Include hierarchical domain idle states converter change from [2] Changes in v2: - Add Stephen's Reviewed-By to the first three patches - Addressed Stephen's comments on fourth patch - Include changes to connect rpmh domain to cpuidle and genpds Resource State Coordinator (RSC) is responsible for powering off/lowering the requirements from CPU subsystem for the associated hardware like buses, clocks, and regulators when all CPUs and cluster is powered down. RSC power domain uses last-man activities provided by genpd framework based on Ulf Hansoon's patch series[3], when the cluster of CPUs enter deepest idle states. As a part of domain poweroff, RSC can lower resource state requirements by flushing the cached sleep and wake state votes for resources. [1] https://patchwork.kernel.org/patch/11218965 [2] https://patchwork.kernel.org/patch/10941671 [3] https://patchwork.kernel.org/project/linux-arm-msm/list/?series=222355 Maulik Shah (6): drivers: qcom: rpmh: fix macro to accept NULL argument drivers: qcom: rpmh: remove rpmh_flush export dt-bindings: soc: qcom: Add RSC power domain specifier drivers: qcom: rpmh-rsc: Add RSC power domain support arm64: dts: qcom: sc7180: Add cpuidle low power states arm64: dts: qcom: sc7180: Convert to the hierarchical CPU topology layout Ulf Hansson (1): drivers: firmware: psci: Add hierarchical domain idle states converter .../devicetree/bindings/soc/qcom/rpmh-rsc.txt | 9 ++ arch/arm64/boot/dts/qcom/sc7180.dtsi | 133 ++++++++++++++++++++ drivers/cpuidle/cpuidle-psci-domain.c | 137 ++++++++++++++++++--- drivers/cpuidle/cpuidle-psci.c | 41 +++--- drivers/cpuidle/cpuidle-psci.h | 11 ++ drivers/soc/qcom/rpmh-internal.h | 3 + drivers/soc/qcom/rpmh-rsc.c | 81 ++++++++++++ drivers/soc/qcom/rpmh.c | 22 ++-- include/soc/qcom/rpmh.h | 5 - 9 files changed, 389 insertions(+), 53 deletions(-) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation