Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: AngeloGioacchino Del Regno  <angelogioacchino.delregno@collabora.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Konrad Dybcio <konrad.dybcio@linaro.org>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Viresh Kumar <vireshk@kernel.org>, Nishanth Menon <nm@ti.com>,
	Stephen Boyd <sboyd@kernel.org>, Niklas Cassel <nks@flawful.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>,
	Robert Marko <robimarko@gmail.com>,
	linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-pm@vger.kernel.org,
	AngeloGioacchino Del Regno 
	<angelogioacchino.delregno@somainline.org>
Subject: Re: [PATCH v10 5/6] soc: qcom: Add support for Core Power Reduction v3, v4 and Hardened
Date: Tue, 28 Feb 2023 09:19:24 +0100	[thread overview]
Message-ID: <5e7f9d22-b918-bdfc-931c-0e679c1e946d@collabora.com> (raw)
In-Reply-To: <CAA8EJpprXe3k6Kecg6v-QHT-qP=QjimFZFpLWjPqky3M=J+x+A@mail.gmail.com>

Il 27/02/23 14:20, Dmitry Baryshkov ha scritto:
> On Mon, 27 Feb 2023 at 15:06, AngeloGioacchino Del Regno
> <angelogioacchino.delregno@collabora.com> wrote:
>>
>> Il 27/02/23 13:01, Dmitry Baryshkov ha scritto:
>>>
>>> I took a glance at the 'cpufreq: qcom-hw: Implement CPRh aware OSM programming'
>>> patch, it doesn't seem to use the header (maybe I checked the older version of the
>>> patch). As for me, this is another signal that cpr_ext_data should come together
>>> with the LUT programming rather than with the CPRh itself.
>>>
>>>> Konrad, perhaps you can send the cpufreq-hw commits in a separate series, in
>>>> which cover letter you mention a dependency on this one?
>>>> That would *clearly* show the full picture to reviewers.
>>>
>>> Yes, that would be great. A small note regarding those patches. I see that you
>>> patched the qcom-cpufreq-hw.c. This way first the driver programs the LUT, then it
>>> reads it back to setup the OPPs. Would it be easier to split OSM-not-programmed
>>> driver?
>>>
>>
>> When I engineered that solution, I kept the cpufreq-hw reading *again* the values
>> from OSM to keep the driver *fully* compatible with the bootloader-programmed OSM
>> flow, which makes one thing (in my opinion) perfectly clear: that programming
>> sequence is exactly the same as what happens "under the hood" on SDM845 (and later)
>> but performed here-instead-of-there (linux instead of bootloader), with the actual
>> scaling driver being 100% the same between the two flows in the end.
>>
>> Having two drivers as you suggested would indeed achieve the same, but wouldn't be
>> any easier... if you do that, you'd have to *somehow* make sure that the
>> programming driver does its job before the cpufreq driver tries to read the OSM
>> status, adding one more link to an already long chain.
>>
>> Besides, I remember that this question got asked a while ago on the mailing lists
>> and there was a short discussion about it:
>>
>> https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2555580.html
> 
> Ack, I see. Maybe splitting LUT programming to a separate source file
> would emphasise the fact that it is only required for some (older)

Maybe. I'm not sure it's worth adding a new helper file, but I don't really have
any strong arguments against...

Konrad, your call.

Cheers!
Angelo

> SoCs. Other than that, I have no additional comments for that series.
> 

  reply	other threads:[~2023-02-28  8:19 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-17 11:08 [PATCH v10 0/6] Add support for Core Power Reduction v3, v4 and Hardened Konrad Dybcio
2023-02-17 11:08 ` [PATCH v10 1/6] MAINTAINERS: Add entry for Qualcomm CPRv3/v4/Hardened driver Konrad Dybcio
2023-02-17 11:08 ` [PATCH v10 2/6] dt-bindings: opp: v2-qcom-level: Document CPR3 open/closed loop volt adjustment Konrad Dybcio
2023-02-17 23:13   ` Rob Herring
2023-02-18  0:26     ` Konrad Dybcio
2023-02-20 11:27       ` AngeloGioacchino Del Regno
2023-02-20 13:10         ` Konrad Dybcio
2023-02-17 11:08 ` [PATCH v10 3/6] dt-bindings: soc: qcom: cpr3: Add bindings for CPR3 driver Konrad Dybcio
2023-02-17 13:47   ` Rob Herring
2023-02-17 14:09     ` Konrad Dybcio
2023-02-20 22:01   ` Rob Herring
2023-02-17 11:08 ` [PATCH v10 4/6] soc: qcom: cpr: Move common functions to new file Konrad Dybcio
2023-02-27  3:09   ` Dmitry Baryshkov
2023-06-03  8:49     ` Konrad Dybcio
2023-02-17 11:08 ` [PATCH v10 5/6] soc: qcom: Add support for Core Power Reduction v3, v4 and Hardened Konrad Dybcio
     [not found]   ` <153ef3e0-9978-d201-44ad-3a5e55eeef4f@linaro.org>
2023-02-27  9:13     ` AngeloGioacchino Del Regno
2023-02-27 12:01       ` Dmitry Baryshkov
2023-02-27 13:06         ` AngeloGioacchino Del Regno
2023-02-27 13:20           ` Dmitry Baryshkov
2023-02-28  8:19             ` AngeloGioacchino Del Regno [this message]
2023-02-28 13:01               ` Konrad Dybcio
2023-02-17 11:08 ` [PATCH v10 6/6] arm64: dts: qcom: msm8998: Configure CPRh Konrad Dybcio
2023-02-17 14:29   ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5e7f9d22-b918-bdfc-931c-0e679c1e946d@collabora.com \
    --to=angelogioacchino.delregno@collabora.com \
    --cc=agross@kernel.org \
    --cc=andersson@kernel.org \
    --cc=angelogioacchino.delregno@somainline.org \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=nks@flawful.org \
    --cc=nm@ti.com \
    --cc=robh+dt@kernel.org \
    --cc=robimarko@gmail.com \
    --cc=sboyd@kernel.org \
    --cc=vireshk@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox