From: Xilin Wu <sophon@radxa.com>
To: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
Abhinav Kumar <abhinav.kumar@linux.dev>,
Bryan O'Donoghue <bod@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hverkuil@kernel.org>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org,
Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
dragon@radxa.com, Chris Obbard <chris.obbard@oss.qualcomm.com>,
Deepak Sikri <sikrid@qti.qualcomm.com>,
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
Loic Minier <loic.minier@oss.qualcomm.com>,
Jason Pettit <jason.pettit@oss.qualcomm.com>,
Xilin Wu <sophon@radxa.com>, sakimidare <ssmzhn@163.com>,
Nicolas Dufresne <nicolas.dufresne@collabora.com>,
Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Subject: [PATCH v2 0/5] media: iris: HFI gen2 features and fixes for VA-API
Date: Fri, 27 Nov 2026 19:40:53 +0800 [thread overview]
Message-ID: <20261127-iris-va-fixes-v2-0-385e8636c22d@radxa.com> (raw)
This series adds features and fixes to Iris HFI gen2 to support
qcom-va-driver [1], a userspace VA-API backend for the V4L2 stateful codec
interface.
It enables decode-order output and larger CAPTURE buffer pools for VA-API
clients, and exposes encoder deblocking controls. It also fixes
error-buffer timestamps and handling of non-display AV1 and VP9 pictures,
which affect both VA-API and direct V4L2 clients.
[1] https://github.com/radxa-pkg/qcom-va-driver
Fluster results on SC8280XP (Radxa Dragon Q8B) with the HFI gen2
firmware (video-firmware.2.4.2) and the GStreamer 1.28.9 V4L2 decoders,
on a v7.3.6 based tree carrying this series, with and without patch 5:
Test suite Decoder without 5/5 with 5/5
VP9-TEST-VECTORS GStreamer-VP9-V4L2 201/305 232/305
JVT-AVC_V1 GStreamer-H.264-V4L2 77/135 77/135
JCT-VC-HEVC_V1 GStreamer-H.265-V4L2 141/147 142/147
Patch 5 fixes these 30 VP9 vectors, with no regressions:
vp90-2-02-size-lf-1920x1080
vp90-2-07-frame_parallel
vp90-2-08-tile_1x2, vp90-2-08-tile_1x2_frame_parallel
vp90-2-08-tile_1x4, vp90-2-08-tile_1x4_frame_parallel
vp90-2-09-aq2, vp90-2-09-lf_deltas
vp90-2-10-show-existing-frame, vp90-2-10-show-existing-frame2
vp90-2-11-size-351x287, vp90-2-11-size-351x288, vp90-2-11-size-352x287
vp90-2-14-resize-10frames-fp-tiles-* (all 14)
vp90-2-15-segkey_adpq
vp90-2-20-big_superframe-01, vp90-2-20-big_superframe-02
The HEVC difference is PS_B_VIDYO_3 timing out once in the run without
patch 5; it is not related to this change. AV1 was not tested, as the
SC8280XP VPU does not decode AV1.
Signed-off-by: Xilin Wu <sophon@radxa.com>
---
Changes in v2:
- Patch 1: move the new caps entries and switch cases to the end, to
match the enum order (Vishnu)
- Patch 1: describe the controls as feature parity with Venus
(Nicolas)
- Patch 2: add OUTPUT_BUF_HOST_MAX_COUNT to the HFI gen2 decoder caps
and size the CAPTURE queue from it, instead of checking the
firmware data (Nicolas). Dropped the Tested-by, as the
implementation changed
- Collect tags
- Rebase on next-20261126
- Link to v1: https://patch.msgid.link/20261029-iris-va-fixes-v1-0-44a2783f782b@radxa.com
To: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
To: Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>
To: Abhinav Kumar <abhinav.kumar@linux.dev>
To: Bryan O'Donoghue <bod@kernel.org>
To: Mauro Carvalho Chehab <mchehab@kernel.org>
To: Hans Verkuil <hverkuil@kernel.org>
Cc: linux-media@vger.kernel.org
Cc: linux-arm-msm@vger.kernel.org
Cc: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
Xilin Wu (5):
media: iris: support decode-order output on HFI gen2
media: iris: allow larger capture buffer pools on HFI gen2
media: iris: Add deblocking filter controls for HFI gen2
media: iris: Preserve timestamps on error buffers
media: iris: Recycle decoder buffers for non-display pictures
drivers/media/platform/qcom/iris/iris_buffer.c | 3 +-
drivers/media/platform/qcom/iris/iris_ctrls.c | 93 ++++++++++++
drivers/media/platform/qcom/iris/iris_ctrls.h | 1 +
drivers/media/platform/qcom/iris/iris_hfi_gen2.c | 166 +++++++++++++++++++++
drivers/media/platform/qcom/iris/iris_hfi_gen2.h | 2 +
.../platform/qcom/iris/iris_hfi_gen2_command.c | 29 +++-
.../platform/qcom/iris/iris_hfi_gen2_defines.h | 9 ++
.../platform/qcom/iris/iris_hfi_gen2_response.c | 47 +++++-
.../platform/qcom/iris/iris_platform_common.h | 8 +
drivers/media/platform/qcom/iris/iris_vidc.c | 8 +
10 files changed, 360 insertions(+), 6 deletions(-)
---
base-commit: a9c48428cbd8d96b26f92631d0db6f8519c5fcc5
change-id: 20261029-iris-va-fixes-818e0067aa28
Best regards,
--
Xilin Wu <sophon@radxa.com>
next reply other threads:[~2026-11-27 11:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 11:40 Xilin Wu [this message]
2026-11-27 11:40 ` [PATCH v2 1/5] media: iris: support decode-order output on HFI gen2 Xilin Wu
2026-11-27 13:21 ` Vikash Garodia
2026-11-27 11:40 ` [PATCH v2 2/5] media: iris: allow larger capture buffer pools " Xilin Wu
2026-11-27 13:31 ` Vikash Garodia
2026-11-27 11:40 ` [PATCH v2 3/5] media: iris: Add deblocking filter controls for " Xilin Wu
2026-11-27 11:40 ` [PATCH v2 4/5] media: iris: Preserve timestamps on error buffers Xilin Wu
2026-11-27 13:44 ` Vikash Garodia
2026-11-27 11:40 ` [PATCH v2 5/5] media: iris: Recycle decoder buffers for non-display pictures Xilin Wu
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=20261127-iris-va-fixes-v2-0-385e8636c22d@radxa.com \
--to=sophon@radxa.com \
--cc=abhinav.kumar@linux.dev \
--cc=bod@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=busanna.reddy@oss.qualcomm.com \
--cc=chris.obbard@oss.qualcomm.com \
--cc=dikshita.agarwal@oss.qualcomm.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dragon@radxa.com \
--cc=hverkuil@kernel.org \
--cc=jason.pettit@oss.qualcomm.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=loic.minier@oss.qualcomm.com \
--cc=mchehab@kernel.org \
--cc=nicolas.dufresne@collabora.com \
--cc=sikrid@qti.qualcomm.com \
--cc=ssmzhn@163.com \
--cc=vikash.garodia@oss.qualcomm.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
all inboxes | Powered by JetHome®