From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=148.163.154.28 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796191083; b=QJOx06wRnJlrMjoQrLr0gvKBLA/wB8sk+9R+iPLtBiv0XfnyvzLP3uckIcRHTqwbFyiq H2UQG9dw1piokQkDQn4NfIRtobAJqRptRzWD4hzYwkcLgIBNT2dcBXodZkfzRzfNuAetg rYnAX+pPc5lJW4uJH5WDJSRlHZW+smpQjBIlCO+21uKLCoG6V7pMHZ/kO+vj/e4gGCpdf H2v8hywrjrZkKivLvgil3sw2XF9k1KajrQ3ZxomJUNWRFHFKDFx+KP+jxmqGnTRaxvzTO v+ElBdCHaRVnLQ59SM+BJXPDyRmjqn++PTDW64+Y36U4FvgwkROWdOj/Dsnb0kYqCDg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796191083; h=DMARC-Filter:Received:DKIM-Signature:Received:DKIM-Signature: Received:Received:X-MS-Exchange-Authentication-Results:Received-SPF: Received:Received:Received:Received:Received:Message-ID:Date: MIME-Version:User-Agent:CC:Subject:To:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-LD-Processed:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-Exchange-RoutingPolicyChecked: X-OriginatorOrg:X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-Proofpoint-GUID: X-Authority-Analysis:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-ORIG-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=sCX/osZyfvx/iRjYuz+ZjMr6FKlwNIKo8yEd+NndpR4=; b=Cf10q4tytZtUNieka4LsS58pPBQBSHoNuSjn7gAXzkr78TGSFv5Zri0hwAW3pvYeIVCt +SaSaw5I2zsW7DC9RlEkghjIDZBH9WoV/Rnzs0p9jiwXzsf3gN2nh4p+7yPjFgxl7Gobr 9h9SFruUxKGJfTjCy5IXHsVMpzN3qTMHfcHjJRS6TbAZFNI1QJjCyDM4Spi/17oIFrfSe wyoG6j5vKtff+zb45EhGNUM+DCy524mqtN/3fh6bB7K81h1ljfM+7MgNhN1PD4FTi3eNR WZN7m5UTzvu9MzsTaPvPdTTmPU1TrWOsz1+/9IVMaWfvcSH1rDltrv3XsZgMaXym5mg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=proofpoint-05-2026 header.b=E5eaeAUF; dkim=pass header.d=ticloud.onmicrosoft.com header.i=@ticloud.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-ticloud-onmicrosoft-com header.b=bi3U8UTo; arc=pass header.oldest-pass=0 smtp.remote-ip=148.163.154.28 Received: from mx0b-0002e601.pphosted.com (mx0b-0002e601.pphosted.com [148.163.154.28]) (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 11BE0606A31A for ; Wed, 2 Dec 2026 05:58:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 11BE0606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=proofpoint-05-2026 header.b=E5eaeAUF; dkim=pass (1024-bit key) header.d=ticloud.onmicrosoft.com header.i=@ticloud.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-ticloud-onmicrosoft-com header.b=bi3U8UTo Received: from pps.filterd (m0374955.ppops.net [127.0.0.1]) by mx0b-0002e601.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B22uh672309077; Tue, 1 Dec 2026 23:57:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= proofpoint-05-2026; bh=sCX/osZyfvx/iRjYuz+ZjMr6FKlwNIKo8yEd+Nndp R4=; b=E5eaeAUFUlrSFmO/s+hFPlNS1QaTqmSlxk+7AanIvRUCZQttQdLirYDmN VlO0g8mq+HCpVXaWIufnVwPv09c35o+niDXvZBY5riOS3/vnFtPtSam2Pi0wOwzM 1Br3ocKKxxhnEtKWzJMPKkBWx+lU1ahSxorbD2OSl9gHHO6xUFlqrm8uouPv9x6H UhqFbkC77LO/2w2JiPQ5yVjFuVzUyCVR4Bxv+BEJuO4zcFNGj+axoC2M4rbnjvgg ShpAIsmLeMFwQxsiHmjrrOcRV9V3IVLpSOYI5ldHBCMuOIWP4sQbV4Ty3x+wQ5IN If2Ywuc8mNj+WT4Ga69i2CzDysYFQ== Received: from ph7pr06cu001.outbound.protection.outlook.com (mail-westus3azon11010054.outbound.protection.outlook.com [52.101.201.54]) by mx0b-0002e601.pphosted.com (PPS) with ESMTPS id 4ja2sjucqd-2 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 01 Dec 2026 23:57:46 -0600 (CST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ARTE/glmUrfqOIm7pcDC5XA/nU5XZr9Ja2cmQls+Tyb6aNbL7qu1rtLP5F8MWKD3aj0b0RJe57iNt1qeInoK0IbVTdKmAEZ8BpRMUwl+2ttRTxvgiPBm10kTUKJdlMB+mxmJfzb5sbPNF0/flwnuFzk1Go5HehHO5aI2ITh5JugN08uUYPss2XppN6X0A+DGl5si2cJKddPz7O3HNOYdcN/IlxZAXjAuvmqv3OOgE40NdjnuSDimZpdBkwpbeuVdNgcHDY5shw+wMmKEual1ax6FFjdXPO3/x1MdHymBxWjo+d3rUbd3FEU3ZWs32pJ3704AT1405ns3GKcNkdJSqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sCX/osZyfvx/iRjYuz+ZjMr6FKlwNIKo8yEd+NndpR4=; b=NG0cWw/S5rrYOKnSdQs6nLZdqw6IytVDs8H5Sg9+bupgiWz7Jbybdl2Q24DhM3HOqTHMV8Pztgd3o6xaYHMgsg37AwpGsHYZlEt2/rRWU2zoK6gLNfHKXPKpEc9B9MFdBkLNhIkEiOTsjgakgNg7d1f1M21Pfgs90WJpdUk0j4VVlv6Gn/K9HJGoRizg+TKaEIeihRSZQEvzjTs4aEfzJvQMvUTrOwXi3+E5Zot0LqTXjJT688XfKRBVXSboCN8od7wDUkrGAp6HUnxuycdT5/P4aATlO7Izl+d61HYrYOMX4rzcmh1m2BRsQINCfk8gTpeSefvtyMKnonj1/PaBZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.21.195) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ticloud.onmicrosoft.com; s=selector1-ticloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sCX/osZyfvx/iRjYuz+ZjMr6FKlwNIKo8yEd+NndpR4=; b=bi3U8UToTSbB5UC2lTokkrhoqQz3Sh+RMAOdy7YLAK/yruMEY+WCuFhfxw0Z3wK1rX71ht5IXPfJBkL5L7pH0/L0OxK1PVJf1pP+Q3+9HwNS/sHAALuMTtYNXg15Cq9LEOuRXVtp87eo1wgoMHpNZfmLoWlOllrUKWxS8WjAgmM= Received: from DS3P221CA0009.NAMP221.PROD.OUTLOOK.COM (2603:10b6:8:45e::14) by IA3PR10MB8092.namprd10.prod.outlook.com (2603:10b6:208:50d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.13; Wed, 2 Dec 2026 05:57:37 +0000 Received: from DS1PEPF00053450.namprd04.prod.outlook.com (2603:10b6:8:45e:cafe::58) by DS3P221CA0009.outlook.office365.com (2603:10b6:8:45e::14) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.11 via Frontend Transport; Wed, 2 Dec 2026 05:57:36 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 198.47.21.195) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.21.195 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.21.195; helo=flwvzet201.ext.ti.com; pr=C Received: from flwvzet201.ext.ti.com (198.47.21.195) by DS1PEPF00053450.mail.protection.outlook.com (10.167.23.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Wed, 2 Dec 2026 05:57:35 +0000 Received: from DFLE204.ent.ti.com (10.64.6.62) by flwvzet201.ext.ti.com (10.248.192.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Tue, 1 Dec 2026 23:56:58 -0600 Received: from DFLE209.ent.ti.com (10.64.6.67) by DFLE204.ent.ti.com (10.64.6.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Tue, 1 Dec 2026 23:56:58 -0600 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DFLE209.ent.ti.com (10.64.6.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45 via Frontend Transport; Tue, 1 Dec 2026 23:56:58 -0600 Received: from [10.24.68.238] (uhda0492258.dhcp.ti.com [10.24.68.238]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 6B25usUw747580; Tue, 1 Dec 2026 23:56:55 -0600 Message-ID: Date: Wed, 2 Dec 2026 11:26:53 +0530 X-Mailing-List: linux-media@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 CC: , , , , , , , , , , , , Subject: Re: [PATCH 1/3] media: v4l2: Add V4L2_EVENT_BUF_PROGRESS to report progress of capture To: Nicolas Dufresne References: <20261129132825.4031308-1-s-vadapalli@ti.com> <20261129132825.4031308-2-s-vadapalli@ti.com> <265be1d1-317c-4831-b5c5-d59ffdd5630f@ti.com> Content-Language: en-US From: Siddharth Vadapalli In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00053450:EE_|IA3PR10MB8092:EE_ X-MS-Office365-Filtering-Correlation-Id: ef777a7b-4e56-4376-f5ee-08df503929a3 X-LD-Processed: e5b49634-450b-4709-8abb-1e2b19b982b7,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|23010399003|1800799024|82310400026|376014|7416014|261026121527099003|10067099003|56012099006|261028144727099003|261022105027099003|261102123227099003|261022075727099003|261022113327099003|261021135927099003|261021121427099003|261021123027099003|261026140227099003|18002099003|22082099003|4143699003|5023799004|6133799003; X-Microsoft-Antispam-Message-Info: 50dK2SkDgjklR6siHJZeK17nCR0V6a/uxCtmmP+X0yb36MJco7xMpbYbraQMIfOA/GzE4yaIjgCilcVPD2VUyey1RFalrLRi8rCu3UTwFGtjkH0CtMgXTxvk6Gh/BI11nri8UP0TEGGnArToOeiToPxsO6FU8GnuhAdjWl4QeR40f9THwMc/J4nns/dA3K5xCiTyHvnfmsKWS2rgu65ylTwVBetXiw05V0gbgyfUSV1VBjRDmCrGD3NzKJ8btLiEZfhtc9tz7vy9Mys2jvRbgcDBLkKY08T4E2mMTSZc3MVhqGW+li6cnAn5kU9DUv8zXQD5Jw1dW/tiZ4tOZA02fMcrValO2CU//cvKwToAtlvSXBljMuE+jFbkiFkBsi6IHw8g04NKu8Jnp7/0lpopPZrtbwv1Elh2w+x+h7CnGbk27DG41G4qNcymBvTpAMpz4Uob06Y0G8bxgFwxmjlR9pn+1PLD5xoNmIUqGGnbLlgctSc6fQJn6hLmkUayYfRlzZTx19yBIa6XCjZiT5Xq6SoHUtTinKEvGOaWJ5c5nMNhk4KhFXJ8ih9zeeX41nfE1gITuncMBRtIgSIE/OnKy/V8uZMvs+Pzm/UsDHhdCC+cTn/FYX3K+pc0OCd1kikBGY1KgFSBC89nRLXZiOT5nbwHSwSIXQZDa6SNp7CyV6nzlULlxhX2SzFq7m4YOgIPgaJXYAvT1myx6l3q54/Pmw== X-Forefront-Antispam-Report: CIP:198.47.21.195;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:flwvzet201.ext.ti.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230040)(36860700016)(23010399003)(1800799024)(82310400026)(376014)(7416014)(261026121527099003)(10067099003)(56012099006)(261028144727099003)(261022105027099003)(261102123227099003)(261022075727099003)(261022113327099003)(261021135927099003)(261021121427099003)(261021123027099003)(261026140227099003)(18002099003)(22082099003)(4143699003)(5023799004)(6133799003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GVFOXefhDmfTtpD33SnxmcCHUwylKAWSn8xooafM2qgGlG4gcNj3B8XcTDyXnvOz4OAPuUaBGww8qS7QPARLmEG3xMGfAbnOAKcTRCZfaTG7GQa04Zq0GnZP/zqmISi0Jnih4JzAz4lxGvSV+wNLGdaUXNJ9DjUwooUl+JZXzIUhiHsXq+ii+8IfHqTRQ5mQXIvMSn/dOkkOTjLpa1alEw+vLlzhhe0ebgNFQ1RnwpZWaqstvW3i6o5Xje+SbGZB1r0xZOyQFtyaZbQXhD59URqAKtL4yemCNFIDV4bSFE2ZjtYU0BxwFEVkzPmhB2ypWh9JCSrBMv8zzTKMt7hMkHbKQkKQZ8XowWY2ukoAx/Z+BVjtqkcJoG3HNbxzfKFQjiDD92wpN4QOlwnNWZ3ef1xOv1rNXZSpn40Xsbgw98SxFsb75Q0EMcaR11Ff3R7M X-Exchange-RoutingPolicyChecked: QAh+8Cup90GWJdiAYAMS04cX4ZGkh7T1DCE4ywBomPI1BZ3teJ5m36qgEpLUcx1kFTto940MGoYd0AUxY3dAYYrSqFVCL5QaWlUqB0A5bLI4LRvGvqmhO0eK8MBUxxWfZnVVKHQ47C2JeQ/xmmNXuejNEbNNJKCLo2gJGBCJQexxG3xilb+VhKBORu9/TgldsdSYZFNZR36j3KPO0DOcwQZip3ZExvMcLnT/w4sx+dU/8Wk8O61LqK1ZuYe4FDTujoYb5SYb14hk+MTgswjv1SBaBCqbhYs48rc+455JUBQjJiZv9juH3hiiKfckmN4XJwpatmYvHzFSfvxyqLo4/g== X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 05:57:35.0854 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ef777a7b-4e56-4376-f5ee-08df503929a3 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.21.195];Helo=[flwvzet201.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00053450.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA3PR10MB8092 X-Proofpoint-GUID: KdcbQlNfGfzSjFRzegkAlbUFBcDxIq19 X-Authority-Analysis: v=2.4 cv=XsFvqlF9 c=1 sm=1 tr=0 ts=6b0fb35a cx=c_pps a=LPqnct3xGwQwGN9n+XDEZg==:117 a=tJyPKKxUohctrY4NYmUjkA==:17 a=6eWqkTHjU83fiwn7nKZWdM+Sl24=:19 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=AlMIdn_sM9wA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Z8NIEmU8O1QQgoT56wFK:22 a=fPAWb5peG099m5CrUpKH:22 a=HRt_kGDN0YhfOd2Exk8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDAyMyBTYWx0ZWRfX2kPSqLnPIsUL CE14T8THZxkzm/PSGmjrtvaL9+bWJitNWKCNQEA+bwp1aOaK37Qo8QBiUzAH45c0dmRylKVg16a 41II4h91UE886phJawzw8QWj6JCA+wTamxI+qvacQRbQa5YExf48dOitEGS2FYpbMQoxLGNzYB+ 6g6lvbOChUfctAEezUWwKOZQ2raBZeB2I0Aooh+c2VaS2nG5fZAhc88WBtPJV1OZ7vI4o0ZL6v1 37iwImV2DcoWIxGVOoPszPcZaC3Cf6Ntud5WoO3MqZvsJrC6cSIr6ZIhI5+1n1rsGDWlL7/THgE C3FzqEk6hDlLg6zuu2u+q/f1qgavXenXabnBCxbtem3qNX9ktwVN1gG7RdpIelt/6yvBlTCUD/9 /4zJP5gG+dBs9vpL87yIIjbKedx8dINGpsjIo7hamcoscNday0OnF8L73ZprhYf2rji/FJWF5Kx m0ObuPaLRf8tjU2At0A== X-Proofpoint-ORIG-GUID: KdcbQlNfGfzSjFRzegkAlbUFBcDxIq19 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDAyMyBTYWx0ZWRfX+IvbGuliIF6s 9/G1tRrF49ovJLzIpDihJyaQx/7ebjWfTSUZ3v28IPYRbFySucbPqG/voOF0ieI/hj3AwYJRZS6 qGzPKssapt/6bhlhDZKB6DEP8J8JDy8= 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-02_01,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 suspectscore=0 impostorscore=0 phishscore=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 lowpriorityscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020023 Hello Nicolas, On 12/2/26 12:59 AM, Nicolas Dufresne wrote: > Hi Siddharth, > > Le mardi 01 décembre 2026 à 10:56 +0530, Siddharth Vadapalli a écrit : >>> device caches can spawn a worker that will signal the fence when the memory is >>> actually ready. On top of which, you can deliver the fence once the transfer is >>> proven to have started, rather then when its complet. Sub-frame, unless you only >>> care about really slow devices, introduce very tight timing which only dma >>> fences will really cover. >> On platforms where sub-frames work without DMA Fences (Hardware-Managed >> Coherence or ARM64 pgprot_dmacoherent mapping), I assume that the latency >> advantage is noticeable (as documented in the cover-letter). The usage of >> DMA Fences will cover other platforms as well, but that would defeat the >> purpose of sub-frames due to higher latency. Hence, a limited support for >> sub-frames looks better despite not being supported on all platforms. >> >> Kindly let me know what you think regarding this and please correct me in >> case I have misunderstood your proposition for the usage of DMA Fences. I >> look forward to your feedback. > > I really don't see your logic how DMA fence has **much higher latency** > then polling for a V4L2 event. But let's me describe from a video receiver > point of view what I had in mind: > > - HW signals the start frame > - As needed, update the sub-frame signalling (e.g. if it changed) > - Emit one V4L2 event with an array of fences for each sync point > > At this point, the buffer is empty, but userspace software can already > start programming the lower half of the ultra-low latency pipeline. > > Software component would simply poll on the fence, like they would do for > the V4L2 event. With the benefit that each thread can have its own poll, so > you can wake directly in the thread doing the processing. > > For hardware component, ideally they handle fences in the kernel. This is > true for all the GPU and NPU driver today, V4L2 is lagging behind. This > way, driver can go as far as using dma_fence_add_callback(), and trigger > the next block with the smallest possible latency really. > > To continue the video reveiver: > > - HW signal sync point 0 (irq), fence 0 is signalled > - ... > - HW signal sync point N, fence N is signalled > > You cannot really achieve all this with just the V4L2 event alone. Remember > that this is how video games maximize their use of GPU hardware, its really > mean to achieve the best. Another aspect is that fences can be safely > shared accross process, where if you share you v4l2 device, you also give > control over it, its unsafe. Thank you for explaining your proposition in detail. I agree that my earlier point about the DMA fence signaling latency was incorrect because the driver on the SoC (j721e-csi2rx.c) polls for DMA progress using HRTIMERs as a trigger to measure progress and it does _not_ get interrupts for sub-frame completion. Just to be sure that I have understood it correctly, I am attempting to describe it below: 1. Instead of a V4L2 event every sub-frame, there should be just one event at the start of a new frame. 2. The event at the start of a new frame should contain an array of DMA Fences passed via a sync_file file-descriptor containing Fence0, Fence1, ....until the last sub-frame is covered 3. Userspace applications can submit the DMA Fence file-descriptors to a Video-Processing Pipeline 4. When sub-frame X completes, the Capture Driver (CSI2RX in the case of this patch series) in its IRQ handler will invoke dma_fence_signal(fence_X) to notify completion of sub-frame X and the Video-Processing Pipeline that was polling on the DMA Fence for sub-frame X can start processing that sub-frame If my description above is accurate, then, I would like to list a few reasons why the above will not work for the SoC/Hardware that I am using: 1. The Hardware doesn't support interrupts for Start-of-Frame and I have to rely on a HRTIMER-based approach where DMA-progress is tracked via the DMA Engine API (get residue from DMA State using dmaengine_tx_status() API). 2. With the number of lines in a sub-frame being small (10 lines for example), the number of sync-points and therefore their corresponding File-Descriptors for a given Frame will be large. For 1280x720 resolution at 30 FPS and the sub-frame size being 10 lines, it will mean 72 sync-points per frame (i.e. sub-frames) at 30 FPS which is about 2,160 File-Descriptors being created and destroyed every second. At 60 FPS, it will be even higher with a value of 4,320. Overhead here is that of sync_file allocation and installation involving locking. Additionally, if a userspace application that consumes the sync_file slows down momentarily or isn't scheduled for a short period, the number of FDs that are open will increase and lead to a ulimit exhaustion for that application/process. Moreover, each FD has an associated 'open' and 'close' syscall overhead as well so it translates to about 4,320 x 2 syscalls per second. 3. Currently, "struct v4l2_event" has a payload limit of 64 Bytes (__u8 data[64]) which can only accommodate up to 14 Fence FDs (4 Bytes for Sequence + 4 Bytes for Index + 14 FDs each being 4 Bytes in size) It appears to me that the current patch series and your proposition are addressing different problems: For Coherent platforms, the current patch series is a lightweight and simple approach to enable sub-frames at a fine granularity to lower the processing latency as much as possible. For non-Coherent platforms (not in the scope of the current patch series), your proposition of a DMA Fence based approach with the aforementioned overhead and a limited sub-frame granularity at the cost of a relatively higher latency is suited. Therefore, I would like to know if the current series is acceptable with the predefined scope of Coherent platforms with the aim of being a lightweight implementation that provides high sub-frame granularity and low latency. Kindly let me know if you have any suggestion regarding other ways of implementing this while still taking advantage of Coherence and keeping the overhead to a minimum on such platforms. Lastly, thank you very much for reviewing this patch and providing valuable feedback to improve the implementation. Regards, Siddharth.