From: Erikas Bitovtas <xerikasxx@gmail.com>
To: "Bryan O'Donoghue" <bod@kernel.org>,
"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>,
"Brian Masney" <bmasney@redhat.com>
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 v5 5/8] clk: qcom: gcc-msm8939: mark Venus core GDSCs as hardware controlled
Date: Sat, 9 May 2026 15:00:34 +0300 [thread overview]
Message-ID: <69f9a6b7-7431-442a-82a2-6305635a508a@gmail.com> (raw)
In-Reply-To: <dd435489-0cf7-4274-99bf-a591a15e91e4@kernel.org>
On 5/8/26 6:55 PM, Bryan O'Donoghue wrote:
> On 07/05/2026 16:51, Erikas Bitovtas wrote:
>>
>>
>> On 5/7/26 4:37 PM, Bryan O'Donoghue wrote:
>>> v4l2-ctl --verbose --set-fmt-video-
>>> out=width=1280,height=720,pixelformat=NV12 --set-selection-output
>>> target=crop,top=0,left=0,width=1280,height=720 --set-fmt-
>>> video=pixelformat=H264 --stream-mmap --stream-out-mmap --stream-
>>> from=cyclists_1280x720_92frames.yuv --stream-to=/tmp/
>>> cyclists_1280x720_92frames.h264 -d /dev/video1
>>
>> With the patch kept:
>> v4l2-ctl --verbose
>> --set-fmt-video-out=width=1280,height=720,pixelformat=NV12
>> --set-selection-output target=crop,top=0,left=0,width=1280,height=720
>> --set-fmt-video=pixelformat=H26
>> 4 --stream-mmap --stream-out-mmap
>> --stream-from=cyclists_1280x720_92frames.yuv
>> --stream-to=/tmp/cyclists_1280x720_92frames.h264 -d /dev/video1
>> VIDIOC_QUERYCAP: ok
>> VIDIOC_G_FMT: ok
>> VIDIOC_S_FMT: ok
>> Format Video Capture Multiplanar:
>> Width/Height : 1280/736
>> Pixel Format : 'H264' (H.264)
>> Field : None
>> Number of planes : 1
>> Flags :
>> Colorspace : Default
>> Transfer Function : Default
>> YCbCr/HSV Encoding: Default
>> Quantization : Default
>> Plane 0 :
>> Bytes per Line : 0
>> Size Image : 708608
>> VIDIOC_G_FMT: ok
>> VIDIOC_S_FMT: ok
>> Format Video Output Multiplanar:
>> Width/Height : 1280/736
>> Pixel Format : 'NV12' (Y/UV 4:2:0)
>> Field : None
>> Number of planes : 1
>> Flags :
>> Colorspace : Default
>> Transfer Function : Default
>> YCbCr/HSV Encoding: Default
>> Quantization : Default
>> Plane 0 :
>> Bytes per Line : 1280
>> Size Image : 1425408
>> VIDIOC_G_SELECTION: ok
>> VIDIOC_S_SELECTION: ok
>> VIDIOC_G_FMT returned 0 (No error information)
>> VIDIOC_G_FMT returned 0 (No error information)
>> VIDIOC_G_FMT returned 0 (No error information)
>> VIDIOC_REQBUFS returned -1 (Invalid argument)
>>
>> With the patch reverted:
>> v4l2-ctl --verbose
>> --set-fmt-video-out=width=1280,height=720,pixelformat=NV12
>> --set-selection-output target=crop,top=0,left=0,width=1280,height=720
>> --set-fmt-video=pixelformat=H26
>> 4 --stream-mmap --stream-out-mmap
>> --stream-from=cyclists_1280x720_92frames.yuv
>> --stream-to=/tmp/cyclists_1280x720_92frames.h264 -d /dev/video1
>> VIDIOC_QUERYCAP: ok
>> VIDIOC_G_FMT: ok
>> The pixelformat 'H264' is invalid
>> VIDIOC_G_FMT: ok
>> The pixelformat 'NV12' is invalid
>>
>> Decoding breaks if I revert the patch as well, it fails with a power
>> collapse fail.
>
> If you declare both as decoders can you successfully decode @ video0 and
> video1 ?
> Apparently device nodes for encoder and decoder are not persistent
across reboots, so when I reverted the patch, I was actually testing
against decoder, not encoder.
So, the result is the same when the patch is applied, when it is
reverted, and when testing against v1 where the cores are enabled only
for decoding.
next prev parent reply other threads:[~2026-05-09 12:00 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 8:32 [PATCH v5 0/8] media: qcom: venus: add MSM8939 support Erikas Bitovtas
2026-05-07 8:32 ` [PATCH v5 1/8] media: dt-bindings: venus: Add qcom,msm8939 schema Erikas Bitovtas
2026-05-07 8:53 ` Bryan O'Donoghue
2026-05-07 8:32 ` [PATCH v5 2/8] arm64: dts: qcom: msm8939: Add venus node Erikas Bitovtas
2026-05-07 8:54 ` Bryan O'Donoghue
2026-05-07 8:32 ` [PATCH v5 3/8] arm64: dts: qcom: msm8939-longcheer-l9100: Enable " Erikas Bitovtas
2026-05-07 8:54 ` Bryan O'Donoghue
2026-05-07 8:32 ` [PATCH v5 4/8] arm64: dts: qcom: msm8939-asus-z00t: add Venus Erikas Bitovtas
2026-05-07 8:54 ` Bryan O'Donoghue
2026-05-07 8:32 ` [PATCH v5 5/8] clk: qcom: gcc-msm8939: mark Venus core GDSCs as hardware controlled Erikas Bitovtas
2026-05-07 8:59 ` Bryan O'Donoghue
2026-05-07 9:53 ` Erikas Bitovtas
2026-05-07 10:06 ` Bryan O'Donoghue
2026-05-07 12:46 ` Erikas Bitovtas
2026-05-07 13:37 ` Bryan O'Donoghue
2026-05-07 15:51 ` Erikas Bitovtas
2026-05-08 15:55 ` Bryan O'Donoghue
2026-05-09 12:00 ` Erikas Bitovtas [this message]
2026-05-09 14:31 ` Bryan O'Donoghue
2026-05-09 14:43 ` Erikas Bitovtas
2026-05-10 10:03 ` Bryan O'Donoghue
2026-05-10 10:14 ` Erikas Bitovtas
2026-05-11 3:21 ` Dmitry Baryshkov
2026-05-07 8:32 ` [PATCH v5 6/8] media: qcom: venus: add power domain enable logic for Venus cores Erikas Bitovtas
2026-05-07 9:10 ` Bryan O'Donoghue
2026-05-07 8:32 ` [PATCH v5 7/8] media: qcom: venus: Add msm8939 resource struct Erikas Bitovtas
2026-05-07 9:11 ` Bryan O'Donoghue
2026-05-07 8:32 ` [PATCH v5 8/8] media: qcom: venus: Enable HEVC decoding for MSM8939 Erikas Bitovtas
2026-05-07 9:21 ` Bryan O'Donoghue
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=69f9a6b7-7431-442a-82a2-6305635a508a@gmail.com \
--to=xerikasxx@gmail.com \
--cc=andersson@kernel.org \
--cc=bmasney@redhat.com \
--cc=bod@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=~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