mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Atanas Filipov <atanas.filipov@oss.qualcomm.com>
To: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Cc: "Gjorgji Rosikopulos (Consultant)"
	<gjorgji.rosikopulos@oss.qualcomm.com>,
	linux-media@vger.kernel.org, bod@kernel.org, mchehab@kernel.org,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	andersson@kernel.org, konradybcio@kernel.org,
	loic.poulain@oss.qualcomm.com, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 3/3] arm64: dts: qcom: sm8250: Add JPEG encoder node
Date: Thu, 5 Nov 2026 11:42:06 +0200	[thread overview]
Message-ID: <e0b6fae0-0880-4008-acdf-b4f64b3a5d43@oss.qualcomm.com> (raw)
In-Reply-To: <tshclix3kzs4iwgfxjrj46o6vebelntyikhthqwfpoi6muyckr@lhaix6uban63>

On 11/2/2026 12:31 PM, Dmitry Baryshkov wrote:
> On Mon, Nov 02, 2026 at 11:28:28AM +0200, Atanas Filipov wrote:
>> On Fri, Aug 21, 2026 at 12:36:26AM +0300, Dmitry Baryshkov wrote:
>>> This will be true if:
>>> - MMCX is a parent of the TITAN_TOP_GDSC (in Linux kernel)
>>> - the driver casts the vote on the TITAN_TOP_GDSC using the opp tables.
>>
>> Both hold for v7:
>>
>>   - camcc-sm8250 attaches MMCX and registers TITAN_TOP_GDSC as its
>>     subdomain, so a performance state set on TITAN_TOP_GDSC reaches
>>     MMCX unchanged.
>>   - v7 adds required-opps to every JPEG OPP entry (min_svs to turbo),
>>     so dev_pm_opp_set_rate() votes the MMCX level through the single
>>     TITAN_TOP_GDSC power domain.
>>
>>> Checking the 4.19 kernel. cam_cc_jpeg_clk_src casts votes on the vdd_mm
>>> (MMCX) power domain, while its parents (pll0, pll2) cast votes on
>>> vdd_mx (MX) power domain. Note, that frequencies used by those clocks do
>>> not match, so we need separate entries at each of the corners.
>>
>> Agreed that the PLLs need MX. Upstream nothing votes MX for them
>> today: the camcc-sm8250 binding and DT describe MMCX only, and the
>> rpmhpd MMCX domain on SM8250 has no MX parent. On SM8450 and later
>> the camcc node carries MXC next to MMCX.
>>
>> Since MX feeds the camcc PLLs, which every camera consumer shares, I
>> think that vote belongs to the camcc-sm8250 clock controller rather
>> than to the jpeg-encoder node, so v7 keeps TITAN_TOP_GDSC as the only
>> power domain of the JPEG node. Does that work for you?
> 
> Konrad started to work on that part, but currently all the votes belong
> to the consumers, which means that end-devices should also vote on the
> MX (e.g. see Iris devices).
> 
Thank you for the clarification! I will add the domain in the next patch 
series.

Regards,
Atanas

      reply	other threads:[~2026-11-05  9:42 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30 15:05 [PATCH v6 0/3] Add Qualcomm JPEG V4L2 encoder for SM8250 Atanas Filipov
2026-07-30 15:05 ` [PATCH v6 1/3] dt-bindings: media: qcom: Add JPEG encoder binding Atanas Filipov
2026-07-30 15:39   ` Dmitry Baryshkov
2026-07-30 16:24     ` Atanas Filipov
2026-07-31 19:26       ` Gjorgji Rosikopulos (Consultant)
2026-08-01 19:48         ` Loic Poulain
2026-08-02 13:53           ` Atanas Filipov
2026-08-03 18:16         ` Dmitry Baryshkov
2026-08-04  5:56           ` Gjorgji Rosikopulos (Consultant)
2026-07-30 15:05 ` [PATCH v6 2/3] media: qcom: jpeg: Add Qualcomm JPEG V4L2 encoder Atanas Filipov
2026-07-30 15:57   ` Dmitry Baryshkov
2026-08-03 15:57     ` Gjorgji Rosikopulos (Consultant)
2026-08-03 18:37       ` Dmitry Baryshkov
2026-08-04  5:53         ` Gjorgji Rosikopulos (Consultant)
2026-08-20 21:26           ` Dmitry Baryshkov
2026-08-20 18:38     ` Atanas Filipov
2026-08-20 21:29       ` Dmitry Baryshkov
2026-07-30 15:05 ` [PATCH v6 3/3] arm64: dts: qcom: sm8250: Add JPEG encoder node Atanas Filipov
2026-07-30 16:01   ` Dmitry Baryshkov
2026-07-30 18:02     ` Atanas Filipov
2026-07-31 19:30       ` Gjorgji Rosikopulos (Consultant)
2026-08-01 10:04         ` Bryan O'Donoghue
2026-08-03  6:38           ` Gjorgji Rosikopulos (Consultant)
2026-08-03 19:09           ` Dmitry Baryshkov
2026-08-04  5:44             ` Gjorgji Rosikopulos (Consultant)
2026-08-20 21:31               ` Dmitry Baryshkov
2026-08-03 18:44       ` Dmitry Baryshkov
2026-08-04  5:48         ` Gjorgji Rosikopulos (Consultant)
2026-08-20 21:36           ` Dmitry Baryshkov
2026-11-02  9:28             ` Atanas Filipov
2026-11-02 10:31               ` Dmitry Baryshkov
2026-11-05  9:42                 ` Atanas Filipov [this message]

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=e0b6fae0-0880-4008-acdf-b4f64b3a5d43@oss.qualcomm.com \
    --to=atanas.filipov@oss.qualcomm.com \
    --cc=andersson@kernel.org \
    --cc=bod@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=gjorgji.rosikopulos@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=loic.poulain@oss.qualcomm.com \
    --cc=mchehab@kernel.org \
    --cc=robh@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

all inboxes | Powered by JetHome®