From: Bryan O'Donoghue <bod@kernel.org>
To: "Erikas Bitovtas" <xerikasxx@gmail.com>,
"Vikash Garodia" <vikash.garodia@oss.qualcomm.com>,
"Dikshita Agarwal" <dikshita.agarwal@oss.qualcomm.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"André Apitzsch" <git@apitzsch.eu>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
"Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-clk@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht,
phone-devel@vger.kernel.org
Subject: Re: [PATCH RFC v3 04/11] arm64: dts: qcom: msm8939: Add venus node
Date: Tue, 28 Apr 2026 08:10:19 +0100 [thread overview]
Message-ID: <56d609dd-62be-47eb-8ba3-c5d70d773113@kernel.org> (raw)
In-Reply-To: <20260427-msm8939-venus-rfc-v3-4-288195bb7917@gmail.com>
On 27/04/2026 18:58, Erikas Bitovtas wrote:
> + video-decoder {
> + compatible = "venus-decoder";
> + clocks = <&gcc GCC_VENUS0_CORE0_VCODEC0_CLK>,
> + <&gcc GCC_VENUS0_CORE1_VCODEC0_CLK>;
> + clock-names = "core0", "core1";
> + power-domains = <&gcc VENUS_CORE0_GDSC>,
> + <&gcc VENUS_CORE1_GDSC>;
> + power-domain-names = "core0", "core1";
> + };
> +
> + video-encoder {
> + compatible = "venus-encoder";
> + clocks = <&gcc GCC_VENUS0_CORE0_VCODEC0_CLK>,
> + <&gcc GCC_VENUS0_CORE1_VCODEC0_CLK>;
> + clock-names = "core0", "core1";
> + power-domains = <&gcc VENUS_CORE0_GDSC>,
> + <&gcc VENUS_CORE1_GDSC>;
> + power-domain-names = "core0", "core1";
> + };
So to be fair in this case you do have a reason to have an encoder and
decoder compatible here _but_ it should be the case that one one of the
sub-devices contains CORE0 related stuff and the other CORE1 related stuff.
Because in that case the sub-devices actually represent individual
hardware settings.
So listing power-domains and clocks for both cores in each node like
this militates against that.
The other thing is to double check of the encoder and decoder are
inter-changable here i.e. can either core be encoder or decoder or is it
fixed ?
I believe on older generations - perhaps not on 8939 it is not
interchangable.
If it is interchangable then declaring either node specifically encoder
or decoder is incorrect so you should declare that inline in venus itself.
Perhaps Vikash or Dikshita could confirm whether or not the cores have
fixed encoder/decoder functionality.
TBH I think you should stick to the inline declaration.
---
bod
next prev parent reply other threads:[~2026-04-28 7:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 17:58 [PATCH RFC v3 00/11] media: qcom: venus: add MSM8939 support Erikas Bitovtas
2026-04-27 17:58 ` [PATCH RFC v3 01/11] media: dt-bindings: venus: Add qcom,msm8939 schema Erikas Bitovtas
2026-04-28 6:58 ` Bryan O'Donoghue
2026-04-27 17:58 ` [PATCH RFC v3 02/11] media: qcom: venus: add pmdomains to the struct based on the purpose of cores Erikas Bitovtas
2026-04-27 17:58 ` [PATCH RFC v3 03/11] media: qcom: venus: Add msm8939 resource struct Erikas Bitovtas
2026-04-27 17:58 ` [PATCH RFC v3 04/11] arm64: dts: qcom: msm8939: Add venus node Erikas Bitovtas
2026-04-28 7:10 ` Bryan O'Donoghue [this message]
2026-04-28 9:47 ` Erikas Bitovtas
2026-04-28 13:36 ` Bryan O'Donoghue
2026-04-27 17:58 ` [PATCH RFC v3 05/11] arm64: dts: qcom: msm8939-longcheer-l9100: Enable " Erikas Bitovtas
2026-04-27 17:58 ` [PATCH RFC v3 06/11] arm64: dts: qcom: msm8939-asus-z00t: add Venus Erikas Bitovtas
2026-04-27 17:58 ` [PATCH RFC v3 07/11] clk: qcom: gcc-msm8939: mark Venus core GDSCs as hardware controlled Erikas Bitovtas
2026-04-27 17:58 ` [PATCH RFC v3 08/11] media: qcom: venus: move getting vdec and venc for later Erikas Bitovtas
2026-04-27 17:58 ` [PATCH RFC v3 09/11] media: qcom: venus: Move HFI v3 venc and vdec methods to HFI v1 Erikas Bitovtas
2026-04-27 17:58 ` [PATCH RFC v3 10/11] media: qcom: venus: add power domain enable logic for Venus cores Erikas Bitovtas
2026-04-27 17:58 ` [PATCH RFC v3 11/11] media: qcom: venus: Enable HEVC decoding for MSM8939 Erikas Bitovtas
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=56d609dd-62be-47eb-8ba3-c5d70d773113@kernel.org \
--to=bod@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=git@apitzsch.eu \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.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=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=vikash.garodia@oss.qualcomm.com \
--cc=xerikasxx@gmail.com \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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