public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
From: "Renjiang Han (QUIC)" <quic_renjiang@quicinc.com>
To: "bryan.odonoghue@linaro.org" <bryan.odonoghue@linaro.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Michael Turquette <mturquette@baylibre.com>,
	"Stephen Boyd" <sboyd@kernel.org>,
	Stanimir Varbanov <stanimir.k.varbanov@gmail.com>,
	"Vikash Garodia (QUIC)" <quic_vgarodia@quicinc.com>,
	"bryan.odonoghue@linaro.org" <bryan.odonoghue@linaro.org>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>
Cc: "linux-arm-msm@vger.kernel.org" <linux-arm-msm@vger.kernel.org>,
	"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"Taniya Das (QUIC)" <quic_tdas@quicinc.com>
Subject: RE: [PATCH 0/2] Use APIs in gdsc genpd to switch gdsc mode for venus v4 core
Date: Mon, 25 Nov 2024 03:49:53 +0000	[thread overview]
Message-ID: <2212eace0ed44c439da117fb05f2b1db@quicinc.com> (raw)
In-Reply-To: <f7c31279-8492-484c-94c4-893d98f53afb@linaro.org>

On Saturday, November 23, 2024 8:19 AM, Bryan O'Donoghue wrote:
> On 22/11/2024 10:31, Renjiang Han wrote:
> > The Venus driver requires vcodec GDSC to be ON in SW mode for clock 
> > operations and move it back to HW mode to gain power benefits. 
> > Earlier, as there is no interface to switch the GDSC mode from GenPD 
> > framework, the GDSC is moved to HW control mode as part of GDSC enable 
> > callback and venus driver is writing to its POWER_CONTROL register to 
> > keep the GDSC ON from SW whereever required. But the POWER_CONTROL 
> > register addresses are not constant and can vary across the variants.
> > 
> > Also as per the HW recommendation, the GDSC mode switching needs to be 
> > controlled from respective GDSC register and this is a uniform 
> > approach across all the targets. Hence use dev_pm_genpd_set_hwmode() 
> > API which controls GDSC mode switching using its respective GDSC register.
> > 
> > Signed-off-by: Renjiang Han <quic_renjiang@quicinc.com> >
> > ---
> > Renjiang Han (1):
> >        venus: pm_helpers: Use dev_pm_genpd_set_hwmode to switch GDSC 
> > mode on V4
> > 
> > Taniya Das (1):
> >        clk: qcom: videocc: Use HW_CTRL_TRIGGER flag for video GDSC's
> > 
> >   drivers/clk/qcom/videocc-sc7180.c              |  2 +-
> >   drivers/clk/qcom/videocc-sdm845.c              |  4 ++--
> >   drivers/media/platform/qcom/venus/pm_helpers.c | 10 +++++-----
> >   3 files changed, 8 insertions(+), 8 deletions(-)
> > ---
> > base-commit: 63b3ff03d91ae8f875fe8747c781a521f78cde17
> > change-id: 20241122-switch_gdsc_mode-b658ea233c2a
> > 
> > Best regards,

> What's your test strategy here ? What platforms have you tested this on ?

> What help do you need ?
Since the GDSC flag has been changed to HW_CTRL_TRIGGER, the v4 core needs to use
dev_pm_genpd_set_hwmode to switch the GDSC mode like v6. The video codec has
been verified on SC7180 and the result is OK. The same verification has been done on
the latest QCS615 and the result is also OK.
In addition, since the videocc of QCS615 uses the HW_CTRL_TRIGGER flag, QCS615 and
SC7180 both use the v4 core in venus. So the v4 core needs to use
dev_pm_genpd_set_hwmode to switch the GDSC mode like v6.

> ---
> bod

  reply	other threads:[~2024-11-25  3:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-22 10:31 [PATCH 0/2] Use APIs in gdsc genpd to switch gdsc mode for venus v4 core Renjiang Han
2024-11-22 10:31 ` [PATCH 1/2] clk: qcom: videocc: Use HW_CTRL_TRIGGER flag for video GDSC's Renjiang Han
2024-11-22 10:59   ` Dmitry Baryshkov
2024-11-22 16:55     ` Taniya Das
2024-11-23  0:05       ` Dmitry Baryshkov
2024-11-23  0:16         ` Bryan O'Donoghue
2024-11-25  5:31           ` Renjiang Han (QUIC)
2024-11-25 13:55             ` Dmitry Baryshkov
2024-11-25 15:14               ` Renjiang Han (QUIC)
2024-11-25 16:27                 ` Dmitry Baryshkov
2024-12-18 11:26                   ` Renjiang Han
2024-11-26  4:04         ` Taniya Das
2024-11-26  7:37           ` Dmitry Baryshkov
2024-11-22 10:31 ` [PATCH 2/2] venus: pm_helpers: Use dev_pm_genpd_set_hwmode to switch GDSC mode on V4 Renjiang Han
2024-11-22 12:50   ` Bryan O'Donoghue
2024-11-25  3:34     ` Renjiang Han (QUIC)
2024-11-23  0:18 ` [PATCH 0/2] Use APIs in gdsc genpd to switch gdsc mode for venus v4 core Bryan O'Donoghue
2024-11-25  3:49   ` Renjiang Han (QUIC) [this message]
2024-11-25  9:35     ` Bryan O'Donoghue
2024-11-25 10:13       ` Renjiang Han (QUIC)

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=2212eace0ed44c439da117fb05f2b1db@quicinc.com \
    --to=quic_renjiang@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=quic_tdas@quicinc.com \
    --cc=quic_vgarodia@quicinc.com \
    --cc=sboyd@kernel.org \
    --cc=stanimir.k.varbanov@gmail.com \
    /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