From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72C7A2E282E; Wed, 20 Aug 2025 09:07:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755680881; cv=none; b=Z3Kv/xg3Og6+JuWv0vHm17K5bI8frH9v0CXcOIA5gUPN20WmARBm8Qn2NGT1I1Au3UG5kaD+YQ566X5gfsPQZvrQPPuxetYnIDNk+xmXXnMxVYNfBS9OLLtTRrXLdxzYwHJclqsrAe396oBfE/Qxk48Dk7bOED3kNswCjvs5W+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755680881; c=relaxed/simple; bh=/tn8KNN0cqPwhA8GfrXYjp4QmkQv6QKwMMolLw8kVXM=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type:To:CC; b=ZbqmjJ3mhi2N4cyQlHr1dhNJjixMu1F0g3vDFwxcpl7dV1mbmxJpYW70ChZuun3dDS2OhyxbuyYcnCCRHiqntx8cG09nEyDtprnZ6Ca0WfTDf6OWp/569wSNgXJiR6ZzDmqDIU1P/PP32loC8heso52eqHwHDcJ9C97TGvy3uWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=S+XKxw/t; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="S+XKxw/t" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57K1oosv024699; Wed, 20 Aug 2025 09:07:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=FB9AQJcnEGMRlXBAjOpVrU 6TwMGZjibnGUJ2qyYFgWw=; b=S+XKxw/th/oK98mozowbsUc+tIiPHMawvnpMbx VOTgGYk1pKG1PpmyfrwS+JZaSa7OgDiUyn7U3ni2W72OuYpbYNyHUDSDL4To5YvY M4ILo3X3+UkJEaFgKrsvuMxwTYAcSQKRgyWCpJ8mDreeNIKWLDBST4nxt9k24wNI OKBTfMGAS3hOcaFrctRQPdrutzJ3CCYdgGjopjUzBwhOgiaNaoapaczvIRqW3MxS Ymqfv6v7DWKoIZLnCwNkI3E6d/mzyxHMXpPm7VUHcbs9xLRSXFQ12BSIore+EAJz /Ac15Hkqje0nU4trLtq17VwoZnutK5Aj8R1FF3TK4mhtwDlA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48n52914d1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Aug 2025 09:07:52 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 57K97p66032544 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Aug 2025 09:07:51 GMT Received: from hu-dikshita-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Wed, 20 Aug 2025 02:07:47 -0700 From: Dikshita Agarwal Subject: [PATCH v3 00/26] Enable H.264/H.265 encoder support and fixes in iris driver common code Date: Wed, 20 Aug 2025 14:37:38 +0530 Message-ID: <20250820-iris-video-encoder-v3-0-80ab0ba58b3d@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAFqQpWgC/33NTQ7CIBCG4as0rMXw05bqynsYF2U62FkICko0T e8u7caYGJfvl8wzE0sYCRPbVxOLmClR8CX0pmIw9v6MnIbSTAnVCCNqTpESzzRg4OghDBi5lTu tG2HrzvSsHF4jOnqu6PFUeqR0D/G1/shyWf9yWXLBbQuoalRGgzvcHgTkYQvhwhYwqw/SSf0TU QUBoxrnWqOF6b6ReZ7fkDgPUfsAAAA= X-Change-ID: 20250704-iris-video-encoder-b193350b487a To: Vikash Garodia , Abhinav Kumar , Bryan O'Donoghue , Mauro Carvalho Chehab , Stefan Schmidt , Vedang Nagar , "Hans Verkuil" , Hans Verkuil CC: , , , Renjiang Han , Wangao Wang , Dikshita Agarwal X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755680867; l=15820; i=quic_dikshita@quicinc.com; s=20240917; h=from:subject:message-id; bh=/tn8KNN0cqPwhA8GfrXYjp4QmkQv6QKwMMolLw8kVXM=; b=2LQ9CnbhPFo2WV9zevS2IjCI2mgbTvUgHMXxMTOW3u/tkrsri/9fpLbbmAwgvXb8eWLI9LoxB GUoJijBOhZsBVhEj17PWPtFHXhe73VyT1Ju9Lp813ciCqMB+OyFk+Z4 X-Developer-Key: i=quic_dikshita@quicinc.com; a=ed25519; pk=EEvKY6Ar1OI5SWf44FJ1Ebo1KuQEVbbf5UNPO+UHVhM= X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Authority-Analysis: v=2.4 cv=ZJKOWX7b c=1 sm=1 tr=0 ts=68a59068 cx=c_pps a=ouPCqIW2jiPt+lZRy3xVPw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=GEpy-HfZoHoA:10 a=IkcTkHD0fZMA:10 a=2OwXVqhp2XgA:10 a=VwQbUJbxAAAA:8 a=COk6AnOGAAAA:8 a=FTOelhgrFFXgdJfX2yQA:9 a=QEXdDO2ut3YA:10 a=TjNXssC_j7lpFel5tvFf:22 a=cPQSjfK2_nFv0Q5t_7PE:22 X-Proofpoint-ORIG-GUID: NmzsLtb3Jz9i0RMnqNwaAOzrBjeGaW98 X-Proofpoint-GUID: NmzsLtb3Jz9i0RMnqNwaAOzrBjeGaW98 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODIwMDAxMyBTYWx0ZWRfX5PnRrOi38nKX 2Yvx8mwD/tAlaQnBdKrRFzwq1BroCBYpL+8EFLiFDyr/upBhIjiY22NM3jWeYnXbDTrIPrO1alf nouMCjNeg7odHkXPY+6Fh5W9v+LVce/UdfPKutrjIoRwgRZogEiXJJ+xGXZAsIMryy3oVDesM+x PWvOwrXmrZ2SA0xsuw8T6hn1MdiNtb17MB92LWE81BFC69YcIB6M2yLxEK2j7tXI3cZL8fxCkgq C6iOJtn6L+PeVr7cOAyZQh66YHkxJ1qMusf4yQo4FDLWxd0ZhLfERWAljqlrVu/BdgHhhrJAATO grHlMqElpQ7y+DSeWlBEXznaPUTHW7jPZ41wOEFYBN+TQylZLjNAA0aJ1VWAJKA82mqxVpAiQfe JaEbjTTVtbKJ6vyO8cs55O8JCsZ/mA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-20_03,2025-08-20_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 malwarescore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 clxscore=1011 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2508110000 definitions=main-2508200013 Hi All, This patch series adds support for H.264 and H.265 encoder in iris driver and includes a few fixes and cleanup in the common code that were identified during encoder bring-up process. The changes include: - Enabling support for H.264 and H.265 encoding. - Fixes and improvements in shared componenets used by both encoder and decoder paths. - Ensuring compatibility and stability with the existing decoder flow. Changes in v3: - Fixed the log when destroying the interanl buffers (Jorge) - Updated commit text with issue details in patch 05/25 (Krzysztof) - Added a patch to simplify conditional logic in stop handling for hfi gen1 (Bryan) - Reduced duplicate code while registering video devices (Bryan) - Added a fix for try fmt handling in decoder (Self) - Fixed the value of max core mbps for qcs8300 (Vikash) - Simplied the frame rate handling in driver by using non q16 format and converted to q16 when setting to firmware (Vikash) - Fixed the issue with bitstream resolution setting to firmware (Neil) - Addressed other review comments (Vikash, Bryan) - Link to v2: https://lore.kernel.org/r/20250813-iris-video-encoder-v2-0-c725ff673078@quicinc.com Changes in v2: - Fixed sparse/coccinnelle issues. - Fixed the kernel doc warning. - Removed unsupported PEAK_BITRATE property from SM8250. - Dropped patch 04/25 to fix quality issue with encoder. - Enhanced command handling for encoder to allow start/stop commands. - Expanded rate control condition checks to include additional rate control types for HFI Gen2. - Updated default value to MAX_QP for all caps related to max QP settings. - Add support for INPUT/OUTPUT_BUF_HOST_MAX_COUNT caps for encoder. - Link to v1: https://lore.kernel.org/r/20250704-iris-video-encoder-v1-0-b6ce24e273cf@quicinc.com All patches have been tested with v4l2-compliance, v4l2-ctl and Gstreamer on SM8250 and SM8550 for encoder, at the same time ensured that the existing decoder functionality remains uneffected. Commands used for V4l2-ctl validation: v4l2-ctl --verbose --set-fmt-video-out=width=1280,height=720,pixelformat=NV12 --set-selection-output target=crop,top=0,left=0,width=1280,height=720 --set-fmt-video=pixelformat=H264 --stream-mmap --stream-out-mmap --stream-from=/media/cyclists_1280x720_92frames.yuv --stream-to=/tmp/cyclists_1280x720_92frames.h264 -d /dev/video1 v4l2-ctl --verbose --set-fmt-video-out=width=1280,height=720,pixelformat=NV12 --set-selection-output target=crop,top=0,left=0,width=1280,height=720 --set-fmt-video=pixelformat=HEVC --stream-mmap --stream-out-mmap --stream-from=/media/cyclists_1280x720_92frames.yuv --stream-to=/tmp/cyclists_1280x720_92frames.hevc -d /dev/video1 Commands used for GST validation: gst-launch-1.0 -v filesrc location=/media/cyclists_1280x720_92frames.yuv ! rawvideoparse format=nv12 width=1280 height=720 framerate=30/1 ! v4l2h264enc capture-io-mode=4 output-io-mode=4 ! filesink sync=true location=/tmp/gst_cyclists_1280x720_92frames.h264 gst-launch-1.0 -v filesrc location=/media/cyclists_1280x720_92frames.yuv ! rawvideoparse format=nv12 width=1280 height=720 framerate=30/1 ! v4l2h265enc capture-io-mode=4 output-io-mode=4 ! filesink sync=true location=/tmp/gst_cyclists_1280x720_92frames.hevc The result of v4l2-compliance on SM8550: v4l2-compliance 1.29.0-5270, 64 bits, 64-bit time_t v4l2-compliance SHA: dc947661089e 2024-11-11 10:25:38 Compliance test for iris_driver device /dev/video1: Driver Info: Driver name : iris_driver Card type : Iris Encoder Bus info : platform:aa00000.video-codec Driver version : 6.16.0 Capabilities : 0x84204000 Video Memory-to-Memory Multiplanar Streaming Extended Pix Format Device Capabilities Device Caps : 0x04204000 Video Memory-to-Memory Multiplanar Streaming Extended Pix Format Detected Stateful Encoder Required ioctls: test VIDIOC_QUERYCAP: OK test invalid ioctls: OK Allow for multiple opens: test second /dev/video1 open: OK test VIDIOC_QUERYCAP: OK test VIDIOC_G/S_PRIORITY: OK test for unlimited opens: OK Debug ioctls: test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported) Input ioctls: test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported) test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported) Inputs: 0 Audio Inputs: 0 Tuners: 0 Output ioctls: test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported) Outputs: 0 Audio Outputs: 0 Modulators: 0 Input/Output configuration ioctls: test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported) Control ioctls: test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK test VIDIOC_QUERYCTRL: OK test VIDIOC_G/S_CTRL: OK test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 37 Private Controls: 0 Format ioctls: test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK test VIDIOC_TRY_FMT: OK test VIDIOC_S_FMT: OK test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK test Composing: OK (Not Supported) test Scaling: OK (Not Supported) Codec ioctls: test VIDIOC_(TRY_)ENCODER_CMD: OK test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test CREATE_BUFS maximum buffers: OK test VIDIOC_REMOVE_BUFS: OK test VIDIOC_EXPBUF: OK test Requests: OK (Not Supported) test blocking wait: OK Test input 0: Streaming ioctls: test read/write: OK (Not Supported) Video Capture Multiplanar: Captured 61 buffers test MMAP (select, REQBUFS): OK Video Capture Multiplanar: Captured 61 buffers test MMAP (epoll, REQBUFS): OK Video Capture Multiplanar: Captured 61 buffers test MMAP (select, CREATE_BUFS): OK Video Capture Multiplanar: Captured 61 buffers test MMAP (epoll, CREATE_BUFS): OK test USERPTR (select): OK (Not Supported) test DMABUF: Cannot test, specify --expbuf-device Total for iris_driver device /dev/video1: 54, Succeeded: 54, Failed: 0, Warnings: 0 The result of v4l2-compliance on SM8250: v4l2-compliance 1.29.0-5270, 64 bits, 64-bit time_t v4l2-compliance SHA: dc947661089e 2024-11-11 10:25:38 Compliance test for iris_driver device /dev/video1: Driver Info: Driver name : iris_driver Card type : Iris Encoder Bus info : platform:aa00000.video-codec Driver version : 6.16.0 Capabilities : 0x84204000 Video Memory-to-Memory Multiplanar Streaming Extended Pix Format Device Capabilities Device Caps : 0x04204000 Video Memory-to-Memory Multiplanar Streaming Extended Pix Format Detected Stateful Encoder Required ioctls: test VIDIOC_QUERYCAP: OK test invalid ioctls: OK Allow for multiple opens: test second /dev/video1 open: OK test VIDIOC_QUERYCAP: OK test VIDIOC_G/S_PRIORITY: OK test for unlimited opens: OK Debug ioctls: test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported) Input ioctls: test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported) test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported) Inputs: 0 Audio Inputs: 0 Tuners: 0 Output ioctls: test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported) Outputs: 0 Audio Outputs: 0 Modulators: 0 Input/Output configuration ioctls: test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported) Control ioctls: test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK test VIDIOC_QUERYCTRL: OK test VIDIOC_G/S_CTRL: OK test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 19 Private Controls: 0 Format ioctls: test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK test VIDIOC_TRY_FMT: OK test VIDIOC_S_FMT: OK test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK test Composing: OK (Not Supported) test Scaling: OK (Not Supported) Codec ioctls: test VIDIOC_(TRY_)ENCODER_CMD: OK test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test CREATE_BUFS maximum buffers: OK test VIDIOC_REMOVE_BUFS: OK test VIDIOC_EXPBUF: OK test Requests: OK (Not Supported) test blocking wait: OK Test input 0: Streaming ioctls: test read/write: OK (Not Supported) Video Capture Multiplanar: Captured 61 buffers test MMAP (select, REQBUFS): OK Video Capture Multiplanar: Captured 61 buffers test MMAP (epoll, REQBUFS): OK Video Capture Multiplanar: Captured 61 buffers test MMAP (select, CREATE_BUFS): OK Video Capture Multiplanar: Captured 61 buffers test MMAP (epoll, CREATE_BUFS): OK test USERPTR (select): OK (Not Supported) test DMABUF: Cannot test, specify --expbuf-device Total for iris_driver device /dev/video1: 54, Succeeded: 54, Failed: 0, Warnings: 0 Looking forward to your review and feedback. Thanks, Dikshita Signed-off-by: Dikshita Agarwal --- Dikshita Agarwal (26): media: iris: Fix buffer count reporting in internal buffer check media: iris: Report unreleased PERSIST buffers on session close media: iris: Fix memory leak by freeing untracked persist buffer media: iris: Fix port streaming handling media: iris: Allow substate transition to load resources during output streaming media: iris: Always destroy internal buffers on firmware release response media: iris: Update vbuf flags before v4l2_m2m_buf_done media: iris: Simplify session stop logic by relying on vb2 checks media: iris: Allow stop on firmware only if start was issued. media: iris: Send dummy buffer address for all codecs during drain media: iris: Fix missing LAST flag handling during drain media: iris: Fix format check for CAPTURE plane in try_fmt media: iris: Add support for video encoder device media: iris: Initialize and deinitialize encoder instance structure media: iris: Add support for ENUM_FMT, S/G/TRY_FMT encoder media: iris: Add support for ENUM_FRAMESIZES/FRAMEINTERVALS for encoder media: iris: Add support for VIDIOC_QUERYCAP for encoder video device media: iris: Add encoder support for V4L2 event subscription media: iris: Add support for G/S_SELECTION for encoder video device media: iris: Add support for G/S_PARM for encoder video device media: iris: Add platform-specific capabilities for encoder video device media: iris: Add V4L2 streaming support for encoder video device media: iris: Set platform capabilities to firmware for encoder video device media: iris: Allocate and queue internal buffers for encoder video device media: iris: Add support for buffer management ioctls for encoder device media: iris: Add support for drain sequence in encoder video device drivers/media/platform/qcom/iris/Makefile | 5 +- drivers/media/platform/qcom/iris/iris_buffer.c | 220 ++++-- drivers/media/platform/qcom/iris/iris_buffer.h | 7 +- drivers/media/platform/qcom/iris/iris_common.c | 232 ++++++ drivers/media/platform/qcom/iris/iris_common.h | 18 + drivers/media/platform/qcom/iris/iris_core.h | 20 +- drivers/media/platform/qcom/iris/iris_ctrls.c | 675 +++++++++++++++- drivers/media/platform/qcom/iris/iris_ctrls.h | 15 + drivers/media/platform/qcom/iris/iris_hfi_common.h | 2 +- .../platform/qcom/iris/iris_hfi_gen1_command.c | 480 +++++++++--- .../platform/qcom/iris/iris_hfi_gen1_defines.h | 112 ++- .../platform/qcom/iris/iris_hfi_gen1_response.c | 60 +- .../platform/qcom/iris/iris_hfi_gen2_command.c | 359 ++++++--- .../platform/qcom/iris/iris_hfi_gen2_defines.h | 44 +- .../platform/qcom/iris/iris_hfi_gen2_response.c | 46 +- drivers/media/platform/qcom/iris/iris_instance.h | 24 + .../platform/qcom/iris/iris_platform_common.h | 74 +- .../media/platform/qcom/iris/iris_platform_gen2.c | 522 ++++++++++++- .../platform/qcom/iris/iris_platform_qcs8300.h | 352 ++++++++- .../platform/qcom/iris/iris_platform_sm8250.c | 234 +++++- drivers/media/platform/qcom/iris/iris_probe.c | 33 +- drivers/media/platform/qcom/iris/iris_state.c | 9 +- drivers/media/platform/qcom/iris/iris_state.h | 1 + drivers/media/platform/qcom/iris/iris_utils.c | 36 + drivers/media/platform/qcom/iris/iris_utils.h | 2 + drivers/media/platform/qcom/iris/iris_vb2.c | 58 +- drivers/media/platform/qcom/iris/iris_vdec.c | 251 +----- drivers/media/platform/qcom/iris/iris_vdec.h | 13 +- drivers/media/platform/qcom/iris/iris_venc.c | 579 ++++++++++++++ drivers/media/platform/qcom/iris/iris_venc.h | 27 + drivers/media/platform/qcom/iris/iris_vidc.c | 299 +++++++- drivers/media/platform/qcom/iris/iris_vpu_buffer.c | 847 ++++++++++++++++++++- drivers/media/platform/qcom/iris/iris_vpu_buffer.h | 20 + 33 files changed, 4964 insertions(+), 712 deletions(-) --- base-commit: a75b8d198c55e9eb5feb6f6e155496305caba2dc change-id: 20250704-iris-video-encoder-b193350b487a Best regards, -- Dikshita Agarwal