From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Konrad Dybcio <konrad.dybcio@linaro.org>,
Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Rob Clark <robdclark@gmail.com>, Sean Paul <sean@poorly.run>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
Cc: Stephen Boyd <swboyd@chromium.org>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org
Subject: Re: [RFC PATCH 0/3] drm/msm/a5xx: scale MX following the frequency changes
Date: Thu, 30 Mar 2023 14:15:25 +0300 [thread overview]
Message-ID: <b9b1ae11-d9cf-0139-41d0-5af4ff2c8e6b@linaro.org> (raw)
In-Reply-To: <34470797-493c-d99b-4d0c-0f9381c5b7c1@linaro.org>
On 30/03/2023 14:06, Konrad Dybcio wrote:
>
>
> On 30.03.2023 00:24, Dmitry Baryshkov wrote:
>> Konrad brought up the topic of scaling the MX domain according to the
>> OPP changes. Here is my RFC for this functionality. I post it as an RFC
>> for two reasons:
>>
>> 1) I'm not sure that we should scale MX if we are not scaling main
>> voltage following the CPR3
> It should be ok, however..
>>
> [...]
>
>> Dmitry Baryshkov (3):
>> dt-bindings: display/msm/gpu: allow specifying MX domain A5xx
>> drm/msm/a5xx: scale MX domain following the frequncy changes
> This is a stopgap solution, CPR is a child of MX.
Not so sure here. Vendor kernel scales voltages and MX levels
separately. Moreover, please correct me if I'm wrong here, the kernel
doesn't scale VDD_GFX directly. It programs GPMU's voltage table and
then GPMU handles voltage scaling according to performance levels being
set. MX is handled in parallel to switching GPMU's level.
I have implemented this voltage scaling locally, just need to run more
tests before posting (and unfortunately it depends either on CPR3+GFX or
on programming the voltages manually).
>
> Konrad
>> arm64: dts: qcom: specify power domains for the GPU
>>
>> .../devicetree/bindings/display/msm/gpu.yaml | 9 +++-
>> arch/arm64/boot/dts/qcom/msm8996.dtsi | 14 ++++-
>> drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 52 +++++++++++++++++++
>> drivers/gpu/drm/msm/adreno/a5xx_gpu.h | 3 ++
>> 4 files changed, 76 insertions(+), 2 deletions(-)
>>
--
With best wishes
Dmitry
next prev parent reply other threads:[~2023-03-30 11:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 22:24 [RFC PATCH 0/3] drm/msm/a5xx: scale MX following the frequency changes Dmitry Baryshkov
2023-03-29 22:24 ` [RFC PATCH 1/3] dt-bindings: display/msm/gpu: allow specifying MX domain A5xx Dmitry Baryshkov
2023-03-31 8:40 ` Krzysztof Kozlowski
2023-03-29 22:24 ` [RFC PATCH 2/3] drm/msm/a5xx: scale MX domain following the frequncy changes Dmitry Baryshkov
2023-03-29 22:25 ` [RFC PATCH 3/3] arm64: dts: qcom: specify power domains for the GPU Dmitry Baryshkov
2023-03-30 11:06 ` [RFC PATCH 0/3] drm/msm/a5xx: scale MX following the frequency changes Konrad Dybcio
2023-03-30 11:15 ` Dmitry Baryshkov [this message]
2023-03-30 11:16 ` Konrad Dybcio
2023-03-30 11:30 ` Dmitry Baryshkov
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=b9b1ae11-d9cf-0139-41d0-5af4ff2c8e6b@linaro.org \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=airlied@gmail.com \
--cc=andersson@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=freedreno@lists.freedesktop.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=quic_abhinavk@quicinc.com \
--cc=robdclark@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sean@poorly.run \
--cc=swboyd@chromium.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;
as well as URLs for NNTP newsgroup(s).