mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
To: Deepa Guthyappa Madivalara <deepa.madivalara@oss.qualcomm.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
	Abhinav Kumar <abhinav.kumar@linux.dev>,
	Bryan O'Donoghue <bod@kernel.org>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, kernel test robot <lkp@intel.com>,
	Vishnu Reddy <busanna.reddy@oss.qualcomm.com>
Subject: Re: [PATCH v11 4/5] media: iris: Add HFI metadata buffer delivery support for Gen2 encoders
Date: Thu, 3 Dec 2026 14:12:55 +0530	[thread overview]
Message-ID: <8dd555e5-2d71-4420-9739-49fef65238a8@oss.qualcomm.com> (raw)
In-Reply-To: <20261120-enc_roi_enable-v11-4-c00b95ea1b81@oss.qualcomm.com>


On 11/21/2026 5:15 AM, Deepa Guthyappa Madivalara wrote:
> Add the infrastructure to deliver metadata buffers to the HFI firmware
> on HFI Gen2 based encoders, used to carry per-frame ROI delta QP data.
> 
> Metadata buffer structures (iris_buffer.h):
> - Add metabuf_header and metapayload_header structs describing the
>    metadata buffer layout as expected by the firmware.
>    HFI defines (iris_hfi_gen2_defines.h):
> - Add HFI_CMD_DELIVERY_MODE (0x0100000A).
> - Add HFI_MODE_METADATA (0x00000004) to hfi_property_mode_type.
>    HFI command side (iris_hfi_gen2_command.c):
> - In iris_hfi_gen2_session_queue_buffer(), after queuing a RAW
>    (input) buffer, check for an available BUF_ROIMB_DELTAQP metadata
>    buffer and, if found, append a second HFI_CMD_BUFFER packet for
>    the metadata buffer in the same command, tagged with the same
>    buffer index.
> - Add iris_hfi_gen2_subscribe_metadata_delivery(): sends
>    HFI_CMD_DELIVERY_MODE with HFI_MODE_METADATA and HFI_PROP_ROI_INFO
>    to instruct the firmware to expect metadata on the input port.
>    HFI response side (iris_hfi_gen2_response.c):
> - Add iris_hfi_gen2_handle_output_metadata_buffer(): locate the
>    metadata buffer by device address and transition it from
>    QUEUED to DEQUEUED so it can be reused.
> 
> Reviewed-by: Vishnu Reddy<busanna.reddy@oss.qualcomm.com>
> Signed-off-by: Deepa Guthyappa Madivalara<deepa.madivalara@oss.qualcomm.com>
> ---
>   drivers/media/platform/qcom/iris/iris_buffer.h     | 18 ++++++++++
>   drivers/media/platform/qcom/iris/iris_ctrls.c      | 16 +++++++++
>   drivers/media/platform/qcom/iris/iris_ctrls.h      |  1 +
>   drivers/media/platform/qcom/iris/iris_hfi_common.h |  1 +
>   .../platform/qcom/iris/iris_hfi_gen2_command.c     | 39 ++++++++++++++++++++++
>   .../platform/qcom/iris/iris_hfi_gen2_defines.h     |  2 ++
>   .../platform/qcom/iris/iris_hfi_gen2_packet.c      |  6 ++--
>   .../platform/qcom/iris/iris_hfi_gen2_packet.h      |  3 ++
>   .../platform/qcom/iris/iris_hfi_gen2_response.c    | 27 +++++++++++++++
>   drivers/media/platform/qcom/iris/iris_venc.c       |  4 +++
>   10 files changed, 114 insertions(+), 3 deletions(-)

Reviewed-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com>

  reply	other threads:[~2026-12-03  8:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 23:45 [PATCH v11 0/5] Implement Region of Interest(ROI) support Deepa Guthyappa Madivalara
2026-11-20 23:45 ` [PATCH v11 1/5] media: v4l2-core: add new control type V4L2_CTRL_TYPE_S8 Deepa Guthyappa Madivalara
2026-12-03  9:36   ` Hans Verkuil
2026-12-03 23:18     ` Deepa Guthyappa Madivalara
2026-11-20 23:45 ` [PATCH v11 2/5] media: uapi: Introduce new control for video encoder ROI Deepa Guthyappa Madivalara
2026-11-20 23:45 ` [PATCH v11 3/5] media: iris: Add ROI delta QP control support for HFI Gen2 encoders Deepa Guthyappa Madivalara
2026-12-03  8:42   ` Vikash Garodia
2026-11-20 23:45 ` [PATCH v11 4/5] media: iris: Add HFI metadata buffer delivery support for " Deepa Guthyappa Madivalara
2026-12-03  8:42   ` Vikash Garodia [this message]
2026-11-20 23:45 ` [PATCH v11 5/5] media: iris: Add BUF_ROIMB_DELTAQP metadata buffer for ROI delta QP Deepa Guthyappa Madivalara
2026-12-03  8:43   ` Vikash Garodia

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=8dd555e5-2d71-4420-9739-49fef65238a8@oss.qualcomm.com \
    --to=vikash.garodia@oss.qualcomm.com \
    --cc=abhinav.kumar@linux.dev \
    --cc=bod@kernel.org \
    --cc=busanna.reddy@oss.qualcomm.com \
    --cc=deepa.madivalara@oss.qualcomm.com \
    --cc=dikshita.agarwal@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mchehab@kernel.org \
    /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®