Linux clock framework development
 help / color / mirror / Atom feed
From: Vikash Garodia <quic_vgarodia@quicinc.com>
To: Renjiang Han <quic_renjiang@quicinc.com>,
	Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: Bryan O'Donoghue <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>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	<linux-arm-msm@vger.kernel.org>, <linux-clk@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <linux-media@vger.kernel.org>,
	Taniya Das <quic_tdas@quicinc.com>
Subject: Re: [PATCH v4 2/2] clk: qcom: videocc: Use HW_CTRL_TRIGGER flag for video GDSC's
Date: Thu, 29 May 2025 11:18:30 +0530	[thread overview]
Message-ID: <2d45f138-c16f-76f5-ea05-6153b1566d9f@quicinc.com> (raw)
In-Reply-To: <13b6a35a-7add-4d25-b386-f152bd5c3baf@quicinc.com>



On 5/29/2025 7:23 AM, Renjiang Han wrote:
> 
> On 5/29/2025 3:30 AM, Dmitry Baryshkov wrote:
>> On Mon, May 26, 2025 at 04:26:25PM +0800, Renjiang Han wrote:
>>> On 3/19/2025 6:11 AM, Bryan O'Donoghue wrote:
>>>> On 18/02/2025 10:33, Renjiang Han wrote:
>>>>> From: Taniya Das <quic_tdas@quicinc.com>
>>>>>
>>>>> The video driver will be using the newly introduced
>>>>> dev_pm_genpd_set_hwmode() API to switch the video GDSC to HW and SW
>>>>> control modes at runtime.
>>>>> Hence use HW_CTRL_TRIGGER flag instead of HW_CTRL for video GDSC's for
>>>>> Qualcomm SoC SC7180, SDM845, SM7150, SM8150 and SM8450.
>>>>>
>>>>> Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
>>>>> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
>>>>> Signed-off-by: Renjiang Han <quic_renjiang@quicinc.com>
>>>>> ---
>>>>>    drivers/clk/qcom/videocc-sc7180.c | 2 +-
>>>>>    drivers/clk/qcom/videocc-sdm845.c | 4 ++--
>>>>>    drivers/clk/qcom/videocc-sm7150.c | 4 ++--
>>>>>    drivers/clk/qcom/videocc-sm8150.c | 4 ++--
>>>>>    drivers/clk/qcom/videocc-sm8450.c | 4 ++--
>>>>>    5 files changed, 9 insertions(+), 9 deletions(-)
>>>>>
>>>>> diff --git a/drivers/clk/qcom/videocc-sc7180.c
>>>>> b/drivers/clk/qcom/videocc-sc7180.c
>>>>> index
>>>>> d7f84548039699ce6fdd7c0f6675c168d5eaf4c1..dd2441d6aa83bd7cff17deeb42f5d011c1e9b134
>>>>> 100644
>>>>> --- a/drivers/clk/qcom/videocc-sc7180.c
>>>>> +++ b/drivers/clk/qcom/videocc-sc7180.c
>>>>> @@ -166,7 +166,7 @@ static struct gdsc vcodec0_gdsc = {
>>>>>        .pd = {
>>>>>            .name = "vcodec0_gdsc",
>>>>>        },
>>>>> -    .flags = HW_CTRL,
>>>>> +    .flags = HW_CTRL_TRIGGER,
>>>>>        .pwrsts = PWRSTS_OFF_ON,
>>>>>    };
>>>>>    diff --git a/drivers/clk/qcom/videocc-sdm845.c
>>>>> b/drivers/clk/qcom/videocc-sdm845.c
>>>>> index
>>>>> f77a0777947773dc8902c92098acff71b9b8f10f..6dedc80a8b3e18eca82c08a5bcd7e1fdc374d4b5
>>>>> 100644
>>>>> --- a/drivers/clk/qcom/videocc-sdm845.c
>>>>> +++ b/drivers/clk/qcom/videocc-sdm845.c
>>>>> @@ -260,7 +260,7 @@ static struct gdsc vcodec0_gdsc = {
>>>>>        },
>>>>>        .cxcs = (unsigned int []){ 0x890, 0x930 },
>>>>>        .cxc_count = 2,
>>>>> -    .flags = HW_CTRL | POLL_CFG_GDSCR,
>>>>> +    .flags = HW_CTRL_TRIGGER | POLL_CFG_GDSCR,
>>>>>        .pwrsts = PWRSTS_OFF_ON,
>>>>>    };
>>>>>    @@ -271,7 +271,7 @@ static struct gdsc vcodec1_gdsc = {
>>>>>        },
>>>>>        .cxcs = (unsigned int []){ 0x8d0, 0x950 },
>>>>>        .cxc_count = 2,
>>>>> -    .flags = HW_CTRL | POLL_CFG_GDSCR,
>>>>> +    .flags = HW_CTRL_TRIGGER | POLL_CFG_GDSCR,
>>>>>        .pwrsts = PWRSTS_OFF_ON,
>>>>>    };
>>>>>    diff --git a/drivers/clk/qcom/videocc-sm7150.c
>>>>> b/drivers/clk/qcom/videocc-sm7150.c
>>>>> index
>>>>> 14ef7f5617537363673662adc3910ddba8ea6a4f..b6912560ef9b7a84e7fd1d9924f5aac6967da780
>>>>> 100644
>>>>> --- a/drivers/clk/qcom/videocc-sm7150.c
>>>>> +++ b/drivers/clk/qcom/videocc-sm7150.c
>>>>> @@ -271,7 +271,7 @@ static struct gdsc vcodec0_gdsc = {
>>>>>        },
>>>>>        .cxcs = (unsigned int []){ 0x890, 0x9ec },
>>>>>        .cxc_count = 2,
>>>>> -    .flags = HW_CTRL | POLL_CFG_GDSCR,
>>>>> +    .flags = HW_CTRL_TRIGGER | POLL_CFG_GDSCR,
>>>>>        .pwrsts = PWRSTS_OFF_ON,
>>>>>    };
>>>>>    @@ -282,7 +282,7 @@ static struct gdsc vcodec1_gdsc = {
>>>>>        },
>>>>>        .cxcs = (unsigned int []){ 0x8d0, 0xa0c },
>>>>>        .cxc_count = 2,
>>>>> -    .flags = HW_CTRL | POLL_CFG_GDSCR,
>>>>> +    .flags = HW_CTRL_TRIGGER | POLL_CFG_GDSCR,
>>>>>        .pwrsts = PWRSTS_OFF_ON,
>>>>>    };
>>>>>    diff --git a/drivers/clk/qcom/videocc-sm8150.c
>>>>> b/drivers/clk/qcom/videocc-sm8150.c
>>>>> index
>>>>> daab3237eec19b727d34512d3a2ba1d7bd2743d6..3024f6fc89c8b374f2ef13debc283998cb136f6b
>>>>> 100644
>>>>> --- a/drivers/clk/qcom/videocc-sm8150.c
>>>>> +++ b/drivers/clk/qcom/videocc-sm8150.c
>>>>> @@ -179,7 +179,7 @@ static struct gdsc vcodec0_gdsc = {
>>>>>        .pd = {
>>>>>            .name = "vcodec0_gdsc",
>>>>>        },
>>>>> -    .flags = HW_CTRL,
>>>>> +    .flags = HW_CTRL_TRIGGER,
>>>>>        .pwrsts = PWRSTS_OFF_ON,
>>>>>    };
>>>>>    @@ -188,7 +188,7 @@ static struct gdsc vcodec1_gdsc = {
>>>>>        .pd = {
>>>>>            .name = "vcodec1_gdsc",
>>>>>        },
>>>>> -    .flags = HW_CTRL,
>>>>> +    .flags = HW_CTRL_TRIGGER,
>>>>>        .pwrsts = PWRSTS_OFF_ON,
>>>>>    };
>>>>>    static struct clk_regmap *video_cc_sm8150_clocks[] = {
>>>>> diff --git a/drivers/clk/qcom/videocc-sm8450.c
>>>>> b/drivers/clk/qcom/videocc-sm8450.c
>>>>> index
>>>>> f26c7eccb62e7eb8dbd022e2f01fa496eb570b3f..4cefcbbc020f201f19c75c20229415e0bdea2963
>>>>> 100644
>>>>> --- a/drivers/clk/qcom/videocc-sm8450.c
>>>>> +++ b/drivers/clk/qcom/videocc-sm8450.c
>>>>> @@ -347,7 +347,7 @@ static struct gdsc video_cc_mvs0_gdsc = {
>>>>>        },
>>>>>        .pwrsts = PWRSTS_OFF_ON,
>>>>>        .parent = &video_cc_mvs0c_gdsc.pd,
>>>>> -    .flags = RETAIN_FF_ENABLE | HW_CTRL,
>>>>> +    .flags = HW_CTRL_TRIGGER | RETAIN_FF_ENABLE,
>>>>>    };
>>>>>      static struct gdsc video_cc_mvs1c_gdsc = {
>>>>> @@ -372,7 +372,7 @@ static struct gdsc video_cc_mvs1_gdsc = {
>>>>>        },
>>>>>        .pwrsts = PWRSTS_OFF_ON,
>>>>>        .parent = &video_cc_mvs1c_gdsc.pd,
>>>>> -    .flags = RETAIN_FF_ENABLE | HW_CTRL,
>>>>> +    .flags = HW_CTRL_TRIGGER | RETAIN_FF_ENABLE,
>>>>>    };
>>>>>      static struct clk_regmap *video_cc_sm8450_clocks[] = {
>>>>>
>>>> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
>>> Hi @Bjorn
>>>
>>> Could you help pick this into videocc?
>> This patch can not go if the venus patch hasn't been merged. Morover,
>> venus patch should directly preceed this one.
> yes, venus patch has been merged into kernel.
Better to drop the video driver patch which is merged and put the new version.
This would avoid such confusion.

Also add my RB tag
Reviewed-by: Vikash Garodia <quic_vgarodia@quicinc.com>

Regards,
Vikash

  reply	other threads:[~2025-05-29  5:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-18 10:33 [PATCH v4 0/2] Use APIs in gdsc genpd to switch gdsc mode for venus v4 core Renjiang Han
2025-02-18 10:33 ` [PATCH v4 1/2] venus: pm_helpers: add compatibility for dev_pm_genpd_set_hwmode on V4 Renjiang Han
2025-03-18  7:21   ` Vikash Garodia
2025-03-18 22:11   ` Bryan O'Donoghue
2025-05-28 19:27   ` Dmitry Baryshkov
2025-05-29  2:03     ` Renjiang Han
2025-02-18 10:33 ` [PATCH v4 2/2] clk: qcom: videocc: Use HW_CTRL_TRIGGER flag for video GDSC's Renjiang Han
2025-03-18 22:11   ` Bryan O'Donoghue
2025-05-26  8:26     ` Renjiang Han
2025-05-28 19:30       ` Dmitry Baryshkov
2025-05-29  1:53         ` Renjiang Han
2025-05-29  5:48           ` Vikash Garodia [this message]
2025-03-04 10:49 ` [PATCH v4 0/2] Use APIs in gdsc genpd to switch gdsc mode for venus v4 core Renjiang Han

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=2d45f138-c16f-76f5-ea05-6153b1566d9f@quicinc.com \
    --to=quic_vgarodia@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --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_renjiang@quicinc.com \
    --cc=quic_tdas@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