Skip to content

Conversation

@erikas9987
Copy link

These changes allow for powering on neccessary cores for decoding. This fixes the power collapse fail error and enables decoding.
ffplay command works, but is slow, gstreamer shows better performance. Playing video can be done with gst-launch-1.0 playbin uri=file:/home/user/Downloads/video.mp4
HEVC decoding works, but is currently a hack. A more flexible solution is neccessary.
Encoding fails with -EINVAL (-22). Tested with ffmpeg -i input.mp4 -pix_fmt nv12 -c:v vp8_v4l2m2m -b:v 1M -c:a libvorbis output.mp4 and gst-launch-1.0 videotestsrc ! videoconvert ! v4l2vp8enc ! queue ! v4l2vp8dec ! xvimagesink
Commit 9b64619 may cause firmware crashes when running gst-launch-1.0 videotestsrc ! videoconvert ! v4l2vp8enc ! queue ! v4l2vp8dec ! xvimagesink, this is due to dmesg spam. The commit is used purely for debugging purposes and can be safely reverted without loss of functionality.

André Apitzsch and others added 17 commits November 23, 2025 17:45
Add a schema description for the Venus video decoder/encoder IP in
MSM8939.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
Add msm8939 configuration data and related compatible.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
Add DT entries for the msm8939 venus encoder/decoder.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
Enable the venus node so that the video encoder/decoder will start
working.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
TODO: check if necessary

Signed-off-by: André Apitzsch <git@apitzsch.eu>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
As seen in drivers/clk/qcom/gcc-msm8909.c, which has a Venus GDSC core
with hardware power collapse control. In other words, much like msm8909,
msm8939 has Venus GDSC cores with "qcom,support-hw-trigger" property set
in the device tree.
TODO: check if neccessary, as it might break CAMSS on msm8939
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
This is a hack because msm8916 does not support HEVC decoding, while msm8939 does.

Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
This may break `gst-launch-1.0 videotestsrc ! videoconvert ! v4l2vp8enc ! queue ! v4l2vp8dec ! xvimagesink` for testing encoding.

Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant