Re: [PATCH v2 2/5] media: iris: allow larger capture buffer pools on HFI gen2

From: Vikash Garodia

Date: Fri Nov 27 2026 - 08:31:48 EST



On 11/27/2026 5:10 PM, Xilin Wu wrote:
vb2 limits a queue to 32 buffers unless the driver sets
max_num_buffers. Clients with deep decode pipelines, such as VLC with
frame threading, can need more CAPTURE buffers than that.

HFI gen2 firmware takes the number of host buffers for each port
through HFI_PROP_BUFFER_HOST_MAX_COUNT. The encoder caps set it for
both ports, while the decoder caps only set it for the bitstream port.

Add OUTPUT_BUF_HOST_MAX_COUNT to the HFI gen2 decoder caps, and size
the CAPTURE queue from that capability when the platform provides it.
Platforms without it, such as HFI gen1, keep the vb2 default.

Signed-off-by: Xilin Wu<sophon@xxxxxxxxx>
---
drivers/media/platform/qcom/iris/iris_hfi_gen2.c | 30 ++++++++++++++++++++++++
drivers/media/platform/qcom/iris/iris_vidc.c | 8 +++++++
2 files changed, 38 insertions(+)

Reviewed-by: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>