[PATCH v2 0/5] media: iris: HFI gen2 features and fixes for VA-API
From: Xilin Wu
Date: Fri Nov 27 2026 - 06:41:39 EST
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@xxxxxxxxx>
---
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@xxxxxxxxx
To: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>
To: Dikshita Agarwal <dikshita.agarwal@xxxxxxxxxxxxxxxx>
To: Abhinav Kumar <abhinav.kumar@xxxxxxxxx>
To: Bryan O'Donoghue <bod@xxxxxxxxxx>
To: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
To: Hans Verkuil <hverkuil@xxxxxxxxxx>
Cc: linux-media@xxxxxxxxxxxxxxx
Cc: linux-arm-msm@xxxxxxxxxxxxxxx
Cc: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
---
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@xxxxxxxxx>