Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp395988imm; Thu, 30 Aug 2018 01:22:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaCRj1uvNvR12eWN3sK32e6uWLU6SW4WqJ/Y3uSFobHKs93qZn3Kcef8n8i05QpDCneab9k X-Received: by 2002:a17:902:e190:: with SMTP id cd16-v6mr9153882plb.305.1535617364144; Thu, 30 Aug 2018 01:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535617364; cv=none; d=google.com; s=arc-20160816; b=CQx2blZgjIkwwFpm6yH2PobAirWV0/UijUGk2Up8bHWnw+5dV0p3S1w3izjhEqURa8 0udUoPZsZwBVQtYDJmkS/BmbZcEbfPoNh1DBIRF2+em8GP/1h5qr0CumvBFti/x6b529 kxfcZ/oBBZl4vy+FmLuE7EEqAlw23suUXcKp27WPOTTb0TishjZE5aUfLbh9yaoMP9xV U/2Acx+yuZ/QBiSvOKKq/Mjno+yJDf4OFKzD5YqdOEpSy1CwXnRZOmxMssGyldbGpbtE zhM8ofZqEv27Tkoz3fZWEb+4bM3wpBjg0Bspp4Tb2xL7pQo6hsgT0L8d2hhxaa19oKCp xdCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=buceAgGoc3cZgE90hU7eJXpWFuY5dhAFc0lDVyy7SLI=; b=Bmzx02mAtTPNHo5+EIdOoKjgTC808MN2Rr1db1Jbj9R1WVptrSdTDgkM6gnB1eWreA vfcjUynJDcUArS+zV0nysHJWp4q9ejw0E2AfEIm3heasRwSjLxJG0XtI2XRp87w7GY7k yAsphl/VpK3k56EB0hk4vJT6m++6lkrPu4W7/PDEHNj0A539TcTb84OWp/i7oPaU8wtF /nYYarpt75+mPsYy2dz+H6RsjMIFvsT8XHOsii0XmGHcvhHYsWyOyElAlbK1NvZVWMNt ISP8QAup6KSaaCAI+kT77inDTuJ6105NujTQX7Axs5YTKJfBaCLIjAcwVRxWKcqK9Dt8 vH5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dDdt9ja5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g19-v6si5590842pgv.138.2018.08.30.01.22.27; Thu, 30 Aug 2018 01:22:44 -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=@linaro.org header.s=google header.b=dDdt9ja5; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727761AbeH3MWN (ORCPT + 99 others); Thu, 30 Aug 2018 08:22:13 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:39416 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727622AbeH3MWN (ORCPT ); Thu, 30 Aug 2018 08:22:13 -0400 Received: by mail-lf1-f65.google.com with SMTP id j201-v6so6498417lfg.6 for ; Thu, 30 Aug 2018 01:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=buceAgGoc3cZgE90hU7eJXpWFuY5dhAFc0lDVyy7SLI=; b=dDdt9ja536lhBlCtEpR2sCSeiqx3ehpeRAjwN27yNExCksWWCnuA08ENd7XGe9MTv/ HFB9MvRKoiM/i3frpOFTDRAhaFjAyLH6v3k0EMJmaR/PCFD0qxHSBQDxcUZmhRrcB7mU qk39pASotZBvgC5l6qZdBtvxHMMti02kEf8Hk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=buceAgGoc3cZgE90hU7eJXpWFuY5dhAFc0lDVyy7SLI=; b=NCgiODNCOlSTcNElgicRoaXjhO01UcWiwwZRzb1OvlSTn53qFTBoKnyOSRVYh91WOI W+FK8hAldpgUC+FFRzSAFtFB9SXE8TDiRPNsfFnPmCWIHB+wZSqmc4Gj1A6PIHbweBxC HfW3EtjGVn+kCbC6FQ1vPU6HS+gqIoaKulSdvLxglxoAMPLOjB4505EVBjL5aQgX5z+q FxS9A9JL5jfPr4cT/Zu3RIERY88517ZJ/zJ85mERsnKyQKwTiw75ABK8bFkzDMwbk9ZM iB9J9P0JwT8GFIUwtrabwR6W6iRIsNonO8QIf9xED8wX3LRtDtbKSK7czuCA5CL9FSmb sEeg== X-Gm-Message-State: APzg51DGT7OKAfUjPJZ5CJ4/bCFhaXTfs5HQfJaVNyP/LPM5C3rE1W4Q lBXiFG09BgdTfhKwXPAf45hJJg== X-Received: by 2002:a19:1819:: with SMTP id o25-v6mr6588039lfi.50.1535617273457; Thu, 30 Aug 2018 01:21:13 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id x14-v6sm1172398lff.7.2018.08.30.01.21.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Aug 2018 01:21:12 -0700 (PDT) Date: Thu, 30 Aug 2018 10:21:10 +0200 From: Niklas Cassel To: Rajendra Nayak Cc: viresh.kumar@linaro.org, sboyd@kernel.org, andy.gross@linaro.org, ulf.hansson@linaro.org, collinsd@codeaurora.org, mka@chromium.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/6] Add power domain driver for corners on msm8996/sdm845 Message-ID: <20180830082110.GA13528@centauri.lan> References: <20180627045234.27403-1-rnayak@codeaurora.org> <91ece266-025b-0b70-6563-5041b70f84b8@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <91ece266-025b-0b70-6563-5041b70f84b8@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 30, 2018 at 12:05:14PM +0530, Rajendra Nayak wrote: > > > 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? Hello Rajendra, FYI: these patches do no longer cleanly apply to v4.19-rc1, it's a trivial conflict, but most maintainers prefer for the patch author to rebase, not sure what Andy prefers. If it builds correctly with COMPILE_TEST, please consider adding that to your new Kconfig: depends on MFD_QCOM_RPM && QCOM_SMD_RPM || COMPILE_TEST Kind regards, Niklas > > > > > 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 > >