From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796287384; b=ctOsDGEAZpfrwE8s03tEkjJxuJesNARU35cZtXuKR7iwv6ewErCfvgHpLY8e5ndht4oD 7kzHMab7zBTnm/ursQR+IU9ZCO44T65shpk+WCh7y4VDAB4m7r+R8r7OZCQCVYVqFTiWz ozHaaERqFoJLLjxXRWf2R27DdSrmuAq2gLGsxDyNEzM289RilGDootYk+EYOpEP+twjhN jNs4e0WCGm8EzpJKYyVe3ZIUmwvoyP2BTTwvKyFtUao+8nZgESwOVRt65qwNiwq9X9Gcj fLoR7Wguenrch9weMu41HrbC+z5YpDHLgg/uEKKRjPcEL2K8Fq9zMbSJy2IAO67LZhw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796287384; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-Authority-Analysis: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=C0dvlxNdtXBQc7L5aEOHvVD/SdJJUebj7mvIl9PTGvQ=; b=rlYKX7r1Yjvy0VkA1Q4E7bQuAkxYOtENw8Uzrpqe1/bMShzoPtq51wgAZp7NWa1SAWS9 oBzpd5nXGy77rllQYfX8EucSYZuel7TzOeKk/Muodj95ZYI/Gjsuk0QwDYBywjVQ37ynu ygQLj84A+BILOUVF3qupLJ0Si0WOuQsF+ITVKvTReJ1sbT3WePhSnQfOTIdwEGpRZU4Ja 9Xt9axHVo1djLxCb8ihjyNua69OpFbxpFF5RCC7Rb6643dxKjc99+rLvE/GdQkkwAvqgT 0jkGmGTqU5LUuC1lBxywQ7t27KqZyiWasWI7jDHmRt5Fd/YUxOlgl/I8L7sELg19y/Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=KHlNbhAD; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=jwHoNbWx; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DED32606A322 for ; Thu, 3 Dec 2026 08:43:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DED32606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=KHlNbhAD; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=jwHoNbWx Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B36jxnO3479050 for ; Thu, 3 Dec 2026 08:43:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= C0dvlxNdtXBQc7L5aEOHvVD/SdJJUebj7mvIl9PTGvQ=; b=KHlNbhADYGmbB0sa XNXSCAHDUOwlayWIUG5uagIla1a7r8C1VwK03unH6C4bU41yuBSUU9tYHWf8xJmv 5m/cInjusUKw9ab3iI7olpnQ/jr7F+NbWhHU1UNWTLCubV0VkTp0HyUhX1ujdGFk ItJtCitYHGuri43SOuliPO42qPJdXFdifp8+nkJ0MIWqO1f8lztVnonY1+JOymgb 8NpL5vtXiawzyYNZtITdHGKG/yoakOndF3Ln/BmR6x5bSGlw0bEXKVuUNHGjCkcC rCrnSTi8VukyfWQOvnG3/0T1Pnbr3eoQTqGiMW2TGf35n5j8IYQS3XxO5DvOaXJZ Jaue4Q== Received: from mail-dl1-f71.google.com (mail-dl1-f71.google.com [74.125.82.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jb395gh8p-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 03 Dec 2026 08:43:03 +0000 (GMT) Received: by mail-dl1-f71.google.com with SMTP id a92af1059eb24-1b587df8d13so337231c88.1 for ; Thu, 03 Dec 2026 00:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796287383; x=1796892183; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=C0dvlxNdtXBQc7L5aEOHvVD/SdJJUebj7mvIl9PTGvQ=; b=jwHoNbWxgkofHYvJd2t7Sv4ZQkBWaPbWDAoA7TJhqbXicUjoWLWeOkciwwSjTNrie/ Ww9ZNHnF5JtDx2g+EfpicVWq+QSZARl/XFv+dsO8gAOeVesTcclVyJjVzVOqce2zukOA 3Ka9fjNE33PoGR9ZOECe8Y/mOvo4P2S13s2lur9b5gnvBB+akBxiV7BgR+IHEkA9U5fL TiIsJmxmIRFwMgQK3nD6JyiBEyp5zbmjOX5SJ6LL1/4S3LlUuST1NWcfvHHQrSgj3sxF WqBU3old5dOpAOiiUnXq6NgvM4W8nMrOQntqCV35UwFl94peQyfJCmK7b/7ahNdw22TJ vvAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796287383; x=1796892183; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=C0dvlxNdtXBQc7L5aEOHvVD/SdJJUebj7mvIl9PTGvQ=; b=gjhiH2KSuUglyml429dAcZX23d1QwJWxs6kF81SVPmn/7bagcxE/YnDv7gqUIKYZSP 239cvWcwxuv9nr4WoqM+prPK8GX0++iLuOeiA8XL0ucMNdFFlcebDonfMBucTSVdMr67 5TEv77vAvSyz572yBp+G24QZFStu6qVz2qxnqr8Acop/3kTQjvdZbDJwrJOdaBkTApEb IuZ0uOkybUVrQdMtayokrRYVY1cM1416E+fqeBQJ/Mw/thcgjVTwEFdOhVZm5EU/TLt+ TlAKDLzpnEqB+SPyfAqLnVqWet5J0hDF+/7wmXNIJ6ewfDe4cazFGUb93Qjfuc6TxnHC P3BQ== X-Forwarded-Encrypted: i=1; AL+hErHsHinHbjdP8CEpP3Jh+KiMEm9PBKH5IGGkGhSX0YzKjScP2q5+LqFwaJ2ALRlhNW2EpXmCiE3KILLCHTI=@vger.kernel.org X-Gm-Message-State: APuU4Z8zM6+7ShCS/zcDtKGtwfWjIRSpEdBQ0tYFvqOOQ9ZFO/2y7BiS MWCFjqxyeNrPcXFpcIG/9EEaZ+3m4ztzq/g/NfFAoYN0kO/i8OXCvP0Zlijxlqgwbk/BOTtVsmv fn4DVvrLKDUcLMFxTQzgqVlGxXLV+zxYhjEusBxpnLvjtoWCdO+4Vlfnmai72PwIhMpk= X-Gm-Gg: AZFdTZfmwFhhlyAAZr6kvMuo/6JXQlg8KOQO7vmLtaiQ6y+sMJB9UdHaCPhsEEQ+wK0 JziOLCsm1TZEqXmwcWBK980PA8CKnMJ/cWC1t8y79aTap8S+0YTREbcp479bMQSfsIt7kSb06tb CxI7iGXlrmuD6W1aob/9miXl5ly4W7CZF8wTqSQV3ajP1B7WtY4Eiqy7oDNfpj0LIb3wWDdeI84 Zmb0hWbIKJhMQx1aC1K1Y9ZVUKZZlx2Bip4jqpUuTUSqrbYroBTzAwzV2TCgaBmQk7OrccD4tbh 6Vncu3g5PuozXEE4chZ9MeiBh8NXyHPCurggg87mhKam5vRjSOgVs5wv1z8QQv02XvAJr+zopGo O/oxkj6+xP2xn+tNpY+wRN1kOrbOvFSvikQbwq2RY9ELZ+tm9smwgJpH7qPvK0iZY/psSJ6AO3E FJ04YgWA== X-Received: by 2002:a05:7023:a8a:b0:1b4:4284:8258 with SMTP id a92af1059eb24-1b5ceda9ffbmr1534921c88.15.1796287382434; Thu, 03 Dec 2026 00:43:02 -0800 (PST) X-Received: by 2002:a05:7023:a8a:b0:1b4:4284:8258 with SMTP id a92af1059eb24-1b5ceda9ffbmr1534886c88.15.1796287381889; Thu, 03 Dec 2026 00:43:01 -0800 (PST) Received: from [192.168.0.172] ([183.83.136.190]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b556829d31sm163692376c88.9.2026.12.03.00.42.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 00:43:01 -0800 (PST) Message-ID: <8dd555e5-2d71-4420-9739-49fef65238a8@oss.qualcomm.com> Date: Thu, 3 Dec 2026 14:12:55 +0530 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 4/5] media: iris: Add HFI metadata buffer delivery support for Gen2 encoders To: Deepa Guthyappa Madivalara , Mauro Carvalho Chehab , Dikshita Agarwal , Abhinav Kumar , Bryan O'Donoghue Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, kernel test robot , Vishnu Reddy References: <20261120-enc_roi_enable-v11-0-c00b95ea1b81@oss.qualcomm.com> <20261120-enc_roi_enable-v11-4-c00b95ea1b81@oss.qualcomm.com> Content-Language: en-US From: Vikash Garodia In-Reply-To: <20261120-enc_roi_enable-v11-4-c00b95ea1b81@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=DK8acCNb c=1 sm=1 tr=0 ts=6b112b97 cx=c_pps a=JYo30EpNSr/tUYqK9jHPoA==:117 a=fjV5My6G2CU5Xc20peYewQ==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=6-UqXytDwC4VkIDxTWQA:9 a=QEXdDO2ut3YA:10 a=Fk4IpSoW4aLDllm1B1p-:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDAzNCBTYWx0ZWRfX4phGUbocoy+Q vUb+jx5mSvBYpjQM5wwdQNa6YrjqqyuZM1PyVPLCpgf5a6lxyGJiHyLuSKDDptcEasiLvx5AnyO b4NzRnkGw6W90j8IpNyHDC8ekvSJiULbE+HPwNyqJH7mX5hNlqPUBB/nkzYOzX0pVvelswpWnqQ E6I6E8CYULAKtccrM/cHrczHwYn4EppJbr8iI2B4v+9fDoFSXtmLNCeNLK9FNq5nD2vLnegSS+N YM983yPRLZLfx3MFXKnkZ0f31ot+2sYuY6cKel1WmYoB6jxEJIc08g5Haz8ML1wjpkmnOJhyayq ho524l9Ea5SD91T1to8sLsf47tJpOnA6Q7hWroZaLPNwKLlfItXjHq2fLzO7b247BAIUXmZT5Fg ytl++8fXU4JVciZ7tJ8/+LytMKgA7kaljUeRx3OkSgry8XdEPnGwkC4vqxnmLqLKCeek9wWILpc 4bNxg9KbWL5Wp21jv5g== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDAzNCBTYWx0ZWRfX62tAVr3djinr HAS3tj4HvO/4VC0pgovwcholpyBbkDMV2WesQvaRi+h4yvgbNTF1wb2wl/3UdGGxPqhP06T5zBb XH+EyHyapEHYm0TP9FLAs56slV90vpw= X-Proofpoint-ORIG-GUID: bjCGG8nemUJ8ir9M9oBTibkJgPQ2auZD X-Proofpoint-GUID: bjCGG8nemUJ8ir9M9oBTibkJgPQ2auZD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_02,2026-12-02_07,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 suspectscore=0 adultscore=0 phishscore=0 clxscore=1015 spamscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030034 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 > Signed-off-by: Deepa Guthyappa Madivalara > --- > 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