Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp342839imm; Wed, 29 Aug 2018 23:37:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYKSgZANg8nFg7P/hu8xU8h68USIWriRApuLNdVi6o/HTwTEPwbyJkkVIOzx8NicJaAWCvY X-Received: by 2002:a63:2043:: with SMTP id r3-v6mr8484793pgm.105.1535611063368; Wed, 29 Aug 2018 23:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535611063; cv=none; d=google.com; s=arc-20160816; b=lNqetYyE06ybn/skweEv4M/gEq90MRKYfHzu8N3mRboSbyZJgdzLZe7XoJeAC28Lpq hDbSvlFDR5AuJlS05xLmeNWfX0owyaYd9sB5BLd/pE1Nxb6qDEdUw1a6CV6N1+VRDaYJ JJydk+G4a/C/GG2ivGewGTTV1qHGKyaOP+1gqe1t6Mq4n4aFt9vmxX2M1hiYP/U4yINv RJOcXGiwg/M15KMxgeQ0kQVuFUmiHOBBfbw3mHLyA4XBpBzYaE6fkrcxqBsGhOnOXCtD E2xpkDxNXH3Q+PhEcc+Dmp/tvEmHWSrzoM7j7YMhjH17504FCEikexqvcRHXLD73tf4O 9Dxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=PmfvDQc7CMW6s+FbJ7tg5aZLNikenT31WmMhFcZbnAU=; b=LphhVXGv+5LVL88YBoNbuEL/oU1G5lVYxEfio6wKfQ/Y+pmJWwd1jtp+AFjlLB88UG 8EuEa1Ze3bbD7M7FIxZov1eYOQ1Fz311maTgQb1hPJ5F1pkdtFXk7Vu1pSxC5YQ/Azw0 2IbvnuLJgZvjPOtEwLnxiiaahIN4b58MiKfyZe5nV39phKWOVgezNZdjjxBiBtgmv3Ki MaFO53wMi9bVBkpMs1VSE091hzLanyAKtcVuGnkTIM4Idl+BKYGLKbz7xSAnduI+cvQg 0c3XcQ0ftQ9RnhV4BqvgR0Mg2kgU4RSEhBD7zwJ15QAVHVpMdaA3iFvmv+8nk75Aaoof sxxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=J3bu4Msy; dkim=pass header.i=@codeaurora.org header.s=default header.b=Qp5K92Ak; 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 d13-v6si5757950pll.337.2018.08.29.23.37.28; Wed, 29 Aug 2018 23:37:43 -0700 (PDT) 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=pass header.i=@codeaurora.org header.s=default header.b=J3bu4Msy; dkim=pass header.i=@codeaurora.org header.s=default header.b=Qp5K92Ak; 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 S1728430AbeH3Kf4 (ORCPT + 99 others); Thu, 30 Aug 2018 06:35:56 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43726 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727970AbeH3Kfz (ORCPT ); Thu, 30 Aug 2018 06:35:55 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 10E8C60600; Thu, 30 Aug 2018 06:35:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535610920; bh=J5ikX7DG97wn7WR92syvhnXLj1Oj6bms8knGYMFOsTU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=J3bu4Msybn0dBrML2sWDuJISU+fbNgD9BXXexrZrKMJcnOGxg17igUk9/agZyI/hL 2p6pB46tx7m1k4sE2Kcbm875coSdo98rbA5k56yqFT2jH6WwS+lCzdFIs5dpNT+Xx5 Fg8QM6Fb37LsG1n7qqTUMlQIFmoZBlb7GNBbCqi4= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.79.128.159] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 088FB60388; Thu, 30 Aug 2018 06:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535610919; bh=J5ikX7DG97wn7WR92syvhnXLj1Oj6bms8knGYMFOsTU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Qp5K92AknU3WnaI8GpLyzw7isq704fLEpM/TjVZ+IXuqlxiATnYFq6sD1cuQW/QdL t5a9lrkgB+oy/4hf72l1YcNnjEyclkpsMLzcEV8Iief0reCHt3qFhKL8NuJgHf2rS4 Iz9H+59P4BKf+4JY/NlZA93qAEOh3Z0jSfrTL9pY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 088FB60388 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rnayak@codeaurora.org Subject: Re: [PATCH v4 0/6] Add power domain driver for corners on msm8996/sdm845 To: viresh.kumar@linaro.org, sboyd@kernel.org, andy.gross@linaro.org, ulf.hansson@linaro.org, collinsd@codeaurora.org, mka@chromium.org Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180627045234.27403-1-rnayak@codeaurora.org> From: Rajendra Nayak Message-ID: <91ece266-025b-0b70-6563-5041b70f84b8@codeaurora.org> Date: Thu, 30 Aug 2018 12:05:14 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180627045234.27403-1-rnayak@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/27/2018 10:22 AM, Rajendra Nayak wrote: > Changes in v4: > * Included the patch to add qcom-opp bindings (dropped accidentally in v3) > * merged the patches to add bindings for rpm and rpmh, added consumer binding example > * Made the drivers built in, removed .remove > * Added better description in changelog for PATCH 6/6 > * Updated rpmhpd_aggregate_corner() based on Davids feedback > * rpmhpd_set_performance_state() returns max corner, in cases where its called > with an INT_MAX > * Dropped the patch to max vote on all corners at init, the patch did not > work anyway, and it shouldn't be needed now These patches have been out on the list for a while (8 weeks). I haven't seen any further comments from anyone, except on PATCH 2/6 by Rob. I requested Rob to provide his Ack if he is fine with the bindings. Can we plan to pull these in for 4.20? > > Changes in v3: > * Bindings split into seperate patches > * Bindings updated to remove duplicate OPP table phandles > * DT headers defining macros for Power domain indexes and OPP levels > * Optimisations to use rpmh_write_async() whereever applicable > * Fixed up handling of ACTIVE_ONLY/WAKE_ONLY/SLEEP voting for RPMh > * Fixed the vlvl to hlvl conversions in set_performance > * Other minor fixes based on review of v2 > * TODO: This series does not handle the case where all VDD_MX votes > should be higher than VDD_CX from APPs, as pointed out > by David Collins in v2. This needs support at genpd to propogate performance > state up the parents, if we model these as Parent/Child to handle the > interdependency. > > Changes in v2: > * added a power domain driver for sdm845 which supports communicating to RPMh > * dropped the changes to sdhc driver to move over to using OPP > as there is active discussion on using OPP as the interface vs > handling all of it in clock drivers > * Other minor binding updates based on review of v1 > > With performance state support for genpd/OPP merged, this is an effort > to model a power domain driver to communicate corner/level > values for qualcomm platforms to RPM (Remote Power Manager) and RPMh. > > Rajendra Nayak (6): > dt-bindings: opp: Introduce qcom-opp bindings > dt-bindings: power: Add qcom rpm power domain driver bindings > soc: qcom: rpmpd: Add a Power domain driver to model corners > soc: qcom: rpmpd: Add support for get/set performance state > arm64: dts: msm8996: Add rpmpd device node > soc: qcom: rpmhpd: Add RPMh Power domain driver > > .../devicetree/bindings/opp/qcom-opp.txt | 25 ++ > .../devicetree/bindings/power/qcom,rpmpd.txt | 146 +++++++ > arch/arm64/boot/dts/qcom/msm8996.dtsi | 34 ++ > drivers/soc/qcom/Kconfig | 18 + > drivers/soc/qcom/Makefile | 2 + > drivers/soc/qcom/rpmhpd.c | 406 ++++++++++++++++++ > drivers/soc/qcom/rpmpd.c | 340 +++++++++++++++ > include/dt-bindings/power/qcom-rpmpd.h | 39 ++ > 8 files changed, 1010 insertions(+) > create mode 100644 Documentation/devicetree/bindings/opp/qcom-opp.txt > create mode 100644 Documentation/devicetree/bindings/power/qcom,rpmpd.txt > create mode 100644 drivers/soc/qcom/rpmhpd.c > create mode 100644 drivers/soc/qcom/rpmpd.c > create mode 100644 include/dt-bindings/power/qcom-rpmpd.h >