Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1983958imm; Wed, 16 May 2018 06:12:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpXlGKtpKblipbs3jV2/297H40+0DiiPk4ivGdxtKMaN20OT0YHyId+nl2xWlV5H1SdnBym X-Received: by 2002:a62:d605:: with SMTP id r5-v6mr967826pfg.8.1526476370488; Wed, 16 May 2018 06:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526476370; cv=none; d=google.com; s=arc-20160816; b=jZUZ/cVAF+e7uCv4kCxTFTajVZxDxljm3XOmYmA+gg5MflaICUn7QxeoANsm0GE8G8 rab/tG+kg3OnAxkjmNO5YGQRStgrBbzIE+Lud3QKVMpPiCf2xXy8Zh8TW9h9aW6Jwk+8 fgskcv+Kdt52JUla5YjmBtY3B2vH+oyvWrhp+KkuJiED8kPUDZhARmiEhUQ7S5lbh/Hf 1aOHfwFksT7X3l5qd5ulu86TSJS8PvlENNE8c8YzH7sObRi457VhYi9o4OWcNDUgF6rU IBQXH+MLVXi0oQUu7zodug1p5dvS+cbc2yR2xBK69Me4wOYh+6yFY9zrTd/+j7BFvMUg TouQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=3OnmsEy9kutGb77Lixy7+q0PSXFMzejc9J+jSez+8Yg=; b=bZdwrmnfWm/6W8WdHxVI0k3uem4MiWo4mZK/InI6ZpTbDeagvbuP/bxmrN8REvNNZM KgtPiQcwwH18jwqQsHRmOutvMeq098NwdqYsyM+znPl7345KtyailDiWqzFn3qzjqAtW B7WC1lx45ceV+hDLPjUP4guv6cO+wue8hdEJWifMXq/V9KPG8TicPhPkrgYSH3r7b6E/ QrOGH9Tk/yqmlbbR7gh45H0Y/3i+BCCQiNumtnyE3ns9sUl340nEDdOupc9U41MYQdIs VJ+WLP2h373ZjDWOtHuFTks1PQtHX2F1JkfYFtPsw2PXwa/Uu+4zTH2lh18sq4cQb/rv X1xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=J+CZnBvM; dkim=fail header.i=@linaro.org header.s=google header.b=N5ySGhvH; 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=fail (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 127-v6si2632738pfe.49.2018.05.16.06.12.36; Wed, 16 May 2018 06:12:50 -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=fail header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=J+CZnBvM; dkim=fail header.i=@linaro.org header.s=google header.b=N5ySGhvH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752566AbeEPNMA (ORCPT + 99 others); Wed, 16 May 2018 09:12:00 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:35232 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752205AbeEPNLy (ORCPT ); Wed, 16 May 2018 09:11:54 -0400 Received: by mail-ot0-f193.google.com with SMTP id h8-v6so820298otb.2 for ; Wed, 16 May 2018 06:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=3OnmsEy9kutGb77Lixy7+q0PSXFMzejc9J+jSez+8Yg=; b=J+CZnBvMuvznHvvSFTgE1NcFyxLQo/nFxQKZbjjOL+q//rtgSdn2r37wRlVLGEOKb8 fPGqZHY5oQZoNU8OGpm2myGY3zcn03hApPoL971gu4mOy72KgqtTWygIdGEW3YKznXrM HvnfG8Lntpb8K8OIqxF1uHSk47qiGa6zwu9Uf5tLS2IZZFqLBmcplPskFeLQj5ZL3WJU YV0MMjWhRCcGT3Jm7FQpF8ClVNN7Nx5KyEETIhtTXEYSjay+l5HDUgowWRZYahpIex3k hTc2SkDrDUCoy1KV5zA8U/0UyIV6/hZ0pJ7JGe7DSMaaq318vxAwvuW2kKwfhjr1Dbwd UADQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=3OnmsEy9kutGb77Lixy7+q0PSXFMzejc9J+jSez+8Yg=; b=N5ySGhvHYHjzGH2ga3tjp1CyrA4wTqaZMtE3KATy/vv+JbV5ChrfVPqfrFbYJ+oZ2X zF/Msu+EzfeJhlgdz1S+6wTToQ5hTAI4Fz0KJi51xDZt2KiDuf3f8pBzhBWqMOh+a9FN dbJj1+gLXL80yTuTSVCkNr8wuhEzRQGdjhej8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=3OnmsEy9kutGb77Lixy7+q0PSXFMzejc9J+jSez+8Yg=; b=jtgVvoImbQlRfc7F4oobERmiS0HOajDSBob/VMbVHJJPCYR5QeHBE7p7VDOppBSy7u cxLXMEsEUVst3qKpKBuapXWjpuOF/mTfPW/i5wntwVpWvG7iTr5zJqSEq56QlqF5l6QO Y+fDlGNENLtsaAMoXknP98dfobNPKhE14d2KsyWrXp/busfF10sYxdt4+46FVuQxQfSe W7dQWPy3GcLYr8B1Wb3SYZfdEfXeINbbBBSuDUPVnLRL35sx+/3qSGQHj1n6WR1p2CD4 AavQ8XDl0s0qTsEe/yBk8JXbQ+N0Km6Kbz3WFH19DI8D4EHjuHHaBqYt4aZn4sRtHw4l 6Pxg== X-Gm-Message-State: ALKqPwc2oVZGTNR2JalqgcpbhbsCBFC2gcuWYCOyYCNFMcn7y/jQHDOx As+JsIdXJmzXvZTOrMaaPYpaaFqYM19tbh9d//cSkw== X-Received: by 2002:a9d:2c7:: with SMTP id 65-v6mr674204otl.71.1526476313323; Wed, 16 May 2018 06:11:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.196.133 with HTTP; Wed, 16 May 2018 06:11:52 -0700 (PDT) In-Reply-To: <1526375616-16904-1-git-send-email-ilialin@codeaurora.org> References: <1526375616-16904-1-git-send-email-ilialin@codeaurora.org> From: Amit Kucheria Date: Wed, 16 May 2018 16:11:52 +0300 X-Google-Sender-Auth: qErOgxdUe_NAl82mY9jNw8mUV-k Message-ID: Subject: Re: [PATCH v7 00/14] CPU scaling support for msm8996 To: Ilia Lin Cc: Michael Turquette , sboyd@kernel.org, Rob Herring , Mark Rutland , Viresh Kumar , nm@ti.com, lgirdwood@gmail.com, broonie@kernel.org, Andy Gross , David Brown , catalin.marinas@arm.com, will.deacon@arm.com, "Rafael J. Wysocki" , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, LKML , Linux PM list , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, lakml , Rajendra Nayak , nicolas.dechesne@linaro.org, celster@codeaurora.org, tfinkel@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 15, 2018 at 12:13 PM, Ilia Lin wrote: > [v7] > * Addressed comments from Viresh about resourses deallocation > and DT compatible Hi Ilia, Thanks for working on this series. Here a few comments regarding the series as a whole. - The series could use a better cover letter describing how the various patches are grouped. e.g. 1-7 are clock related and probably will get merged through the clk maintainers tree. The regulator bits might get merged through the regulator maintainer tree and so forth. If there are any dependencies, please outline those as well so maintainers can decide how best to merge this. - Please describe what features this series adds - just frequency scaling or more. Please describe in more detail what the dependency on the SAW regulator changes is. - Please get rid of the GPL boiler plate since you already have the SPDX tags. See comments on patch 1 for what I'm referring to. - You also mention that ACD is not implemented in the earlier patches and then there is a patch that seems to add ACD related features (7/14). A few other comments follow across the individual patches. Regards, Amit > [v6] > * Addressed comments from Viresh about: > ** Comments style > ** Kconfig bool instead of tristate > ** DT and documentation style > ** Resourses deallocation on an error > ** Typos > > [v5] > * Rebased > * Addressed comments from Bjorn about SPDX style, > functions and parameters naming > * Addressed comments from Viresh DT properties and style, comments style, > resourses deallocation, documentation placement > * Addressed comments from Sricharan about unnessesary include > * Addressed comments from Nicolas > * Addressed comments from Rob about the commit messages and acks > * Addressed comments from Mark > > [v4] > * Adressed all comments from Stephen > * Added CPU regulator support > * Added qcom-cpufreq-kryo driver > > [v3] > * Rebased on top of the latest PLL driver changes > * Addressed comment from Rob Herring for bindings > > [v2] > * Addressed comments from Rob Herring for bindings > * Addressed comments from Mark Rutland for memory barrier > * Addressed comments from Julien Thierry for clock reenabling condition > * Tuned the HW configuration for clock frequencies below 600MHz > > Clocks: > This series adds support for the CPU clocks on msm8996 devices. > The driver uses the existing PLL drivers and is required to control > the CPU frequency scaling on the MSM8996. > > Regulators: > Added SAW regulator support to the SPMI regulator driver. The SAW regulators > will be controlled through special CPU registers instead of direct > SPMI accesses. > > Cpufreq: > The qcom-cpufreq-kryo driver is aimed to support different SOC versions. > The driver reads eFuse information and chooses the required OPP subset > by passing the OPP supported-hw parameter. > > A previous post of RFC can be found here: > https://patchwork.kernel.org/patch/10398455/ > > Ilia Lin (11): > soc: qcom: Separate kryo l2 accessors from PMU driver > clk: qcom: Add CPU clock driver for msm8996 > clk: qcom: Add DT bindings for CPU clock driver for msm8996 > clk: qcom: Add ACD path to CPU clock driver for msm8996 > dt: qcom: Add opp and thermal to the msm8996 > regulator: qcom_spmi: Add support for SAW > dt-bindings: qcom_spmi: Add support for SAW documentation > dt: qcom: Add SAW regulator for 8x96 CPUs > cpufreq: Add Kryo CPU scaling driver > dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu > dt: qcom: Add qcom-cpufreq-kryo driver configuration > > Rajendra Nayak (3): > clk: qcom: Make clk_alpha_pll_configure available to modules > clk: qcom: cpu-8996: Add support to switch to alternate PLL > clk: qcom: cpu-8996: Add support to switch below 600Mhz > > .../devicetree/bindings/clock/qcom,kryocc.txt | 17 + > .../devicetree/bindings/opp/kryo-cpufreq.txt | 680 +++++++++++++++++++++ > .../bindings/regulator/qcom,spmi-regulator.txt | 45 ++ > arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 2 +- > arch/arm64/boot/dts/qcom/msm8996.dtsi | 651 +++++++++++++++++++- > drivers/clk/clk-fixed-factor.c | 2 +- > drivers/clk/qcom/Kconfig | 9 + > drivers/clk/qcom/Makefile | 1 + > drivers/clk/qcom/clk-alpha-pll.c | 1 + > drivers/clk/qcom/clk-alpha-pll.h | 6 + > drivers/clk/qcom/clk-cpu-8996.c | 519 ++++++++++++++++ > drivers/cpufreq/Kconfig.arm | 11 + > drivers/cpufreq/Makefile | 1 + > drivers/cpufreq/cpufreq-dt-platdev.c | 3 + > drivers/cpufreq/qcom-cpufreq-kryo.c | 150 +++++ > drivers/perf/Kconfig | 1 + > drivers/perf/qcom_l2_pmu.c | 90 +-- > drivers/regulator/qcom_spmi-regulator.c | 133 +++- > drivers/soc/qcom/Kconfig | 3 + > drivers/soc/qcom/Makefile | 1 + > drivers/soc/qcom/kryo-l2-accessors.c | 65 ++ > include/soc/qcom/kryo-l2-accessors.h | 21 + > 22 files changed, 2332 insertions(+), 80 deletions(-) > create mode 100644 Documentation/devicetree/bindings/clock/qcom,kryocc.txt > create mode 100644 Documentation/devicetree/bindings/opp/kryo-cpufreq.txt > create mode 100644 drivers/clk/qcom/clk-cpu-8996.c > create mode 100644 drivers/cpufreq/qcom-cpufreq-kryo.c > create mode 100644 drivers/soc/qcom/kryo-l2-accessors.c > create mode 100644 include/soc/qcom/kryo-l2-accessors.h > > -- > 1.9.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html