mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/5] media: iris: HFI gen2 features and fixes for VA-API
@ 2026-11-27 11:40 Xilin Wu
  2026-11-27 11:40 ` [PATCH v2 1/5] media: iris: support decode-order output on HFI gen2 Xilin Wu
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Xilin Wu @ 2026-11-27 11:40 UTC (permalink / raw)
  To: Vikash Garodia, Dikshita Agarwal, Abhinav Kumar,
	Bryan O'Donoghue, Mauro Carvalho Chehab, Hans Verkuil
  Cc: linux-media, linux-arm-msm, linux-kernel, Bryan O'Donoghue,
	dragon, Chris Obbard, Deepak Sikri, Dmitry Baryshkov,
	Loic Minier, Jason Pettit, Xilin Wu, sakimidare,
	Nicolas Dufresne, Vishnu Reddy

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>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-27 13:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 11:40 [PATCH v2 0/5] media: iris: HFI gen2 features and fixes for VA-API Xilin Wu
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

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®