Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp125242rwb; Thu, 27 Jul 2023 10:13:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlEW7uo5WFfEaWBG4BRhLZdDKjtJZO9+2Bg3JMvmmNFQ28jX9A3jxsRGMpCceM/zia5xx1QH X-Received: by 2002:a05:6a21:3292:b0:137:514a:984f with SMTP id yt18-20020a056a21329200b00137514a984fmr6347850pzb.35.1690478027794; Thu, 27 Jul 2023 10:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690478027; cv=none; d=google.com; s=arc-20160816; b=XChFFaX5GqWZ0aJA7em2RqEqsHtL3sMz7E6qfUG0AttVmDsWyhyCQLbuTvF601GubQ T9y28kknnD63Ilwv+pK+E1t+v12abwGBmKDmVL663ifz057UK7kAXuE4A5O++65uDx2y FKagNMJ4UhqivlSBSggAEBUtvAAqvrD9ktXaG9JEanYXWFbra5ia3bBTd+bPtVBWW0pi dlsbOq19fMkmAH3JjqDtsnXHHiwRrwmPPxh+ah++v09ZB8GRQDrxiYRH/Jlu4U6NLbUO S9JC/5h/WMgmmJfiMH/uU9YQiqgnW03oNHzI1uxpdiqPz/CBCkuR/kV+c/rvMDYNDpLo MD3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=E2DEXdpIOFGoKjwDPsij+hvboO8PwGO9KDMyYSS8/g8=; fh=Hv7PYVZQQi7vKIZ2FsI+stKs2q2vZm/khKOYqZl9snU=; b=tN3mFHq71pEkoEXs0cHz/e9nhnXJ88LxiFcRwicbfaIPAxMoYDjfSR4RhBKAZQ985j IiDp9An8Cu28hAH0Yb8aqBF4wli6kJQT+le/cI1fqQZA1WBLMUhrz/vAkXncIGk5GAQL 83KSWbKr6Rj/N9WSWH2tGgm8EZUIdaL5zbq5hD9vScoNzwvGt5P0yLmSHuwAWmSTL664 2p/8tUjq/M79wVyhZf8ckHs5Qgyh3E1uy8qSvBHf0RsrkrulqKWwMSbC0PU1YHl8dOtt J6N2OOCBN7T+lkYWl0Y+f0e/gAxyI2NvKEIcSqhdAe5QTWR/uI5kmxH9HEorypa26+C4 sN4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PO2HdFda; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch5-20020a056a00288500b00682d7cb12cesi1599506pfb.309.2023.07.27.10.13.35; Thu, 27 Jul 2023 10:13:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PO2HdFda; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbjG0RLF (ORCPT + 99 others); Thu, 27 Jul 2023 13:11:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbjG0RLD (ORCPT ); Thu, 27 Jul 2023 13:11:03 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C7BC30E3; Thu, 27 Jul 2023 10:11:00 -0700 (PDT) Received: from nicolas-tpx395.localdomain (unknown [IPv6:2606:6d00:10:580::7a9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by madras.collabora.co.uk (Postfix) with ESMTPSA id AB2A666015A0; Thu, 27 Jul 2023 18:10:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1690477858; bh=E2DEXdpIOFGoKjwDPsij+hvboO8PwGO9KDMyYSS8/g8=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=PO2HdFdaDesVZug0aiSrvrGIcYwCWh0/En+KEJmYoLDvpbf3y5clLKeL7Qx9leBy4 SvmCFI2bqj0dUTPWpxWoOI7N5a7ed+DUHs1igWV+rVHtyzrZ9OlxKPJzBKCBgzlXdB WkTitGe2C0HzOy1B1dHDm4W/PL6YmfOnIID1VCWZ2SYCUYUCo820L2krj2z18mQ6Ga OdBGNJHUSWtvmRZk16cveAszn809lMB/unrCyFDDY2+HRtRf3dFkVy/OpEGxM024pY oIKP16WG/UyofGetUUb1mel9zsTkKSyGq5IDWHNNm+hSAnuphkCf2S85utev9dYYT3 K6rMPkvvzE8JQ== Message-ID: <8f0fbb7c3c18c211b4d407dc1b45539a1ce41766.camel@collabora.com> Subject: Re: Stateless Encoding uAPI Discussion and Proposal From: Nicolas Dufresne To: Hsia-Jun Li Cc: linux-kernel@vger.kernel.org, Paul Kocialkowski , linux-media@vger.kernel.org, Hans Verkuil , Sakari Ailus , Andrzej Pietrasiewicz , Michael Tretter , Jernej =?UTF-8?Q?=C5=A0krabec?= , Chen-Yu Tsai , Samuel Holland , Thomas Petazzoni Date: Thu, 27 Jul 2023 13:10:47 -0400 In-Reply-To: References: <87cfcdfadee89984496c3f52d01b4f1e10c12cae.camel@collabora.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le jeudi 27 juillet 2023 =C3=A0 10:45 +0800, Hsia-Jun Li a =C3=A9crit=C2=A0= : >=20 > On 7/27/23 03:53, Nicolas Dufresne wrote: > > CAUTION: Email originated externally, do not click links or open attach= ments unless you recognize the sender and know the content is safe. > >=20 > >=20 > > Hi, > >=20 > > Le mercredi 26 juillet 2023 =C3=A0 10:49 +0800, Hsia-Jun Li a =C3=A9cri= t : > > > > I am strongly against this approach, instead I think we need to kee= p all > > > > vendor-specific parts in the kernel driver and provide a clean unif= ied userspace > > > > API. > > > >=20 > > > We are driving away vendor participation. Besides, the current design= is > > > a performance bottleneck. > >=20 > >=20 . . .=20 > Or we just define an interface that only FOSS would use. We explicitly favour FOSS and make API that guaranty you can use the driver= with FOSS. This is not something we do in secret, this is fundamental to being a= GPL project. On DRM side, were the API is a lot more flexible, they explicitly reject drivers without an actual FOSS user. We don't strictly have to do th= at in V4L2, because the API is done at a higher level. But if we were to come up = with a lower level abstraction, we'd certainly have this rules. . . . >=20 >=20 > Please DO ***NOT*** make a standard that occupied many memory behinds=20 > usersace and a standard that user has to handle the reconstruction=20 > buffer holding with a strange mechanism(I mean reconstruction buffer=20 > lifetime would be manged by userspace manually). In all fairness, people have limited time, and builds on top of existing infrastructure. The reason reconstruction buffers won't be exposed is reall= y simple to understand. We don't have API in current framework to support all= the allocations happening in codec drivers. If we could not progress without th= at, I've sure finding solution would become a priority. But the trith is that w= e can live without, and are aiming to move forward without. We can certainly start a thread on the subject, I even have plenty of ideas= how to introduce these without throwing away all the existing stuff. But only i= f there is a clear intention to actually implement it. We have plenty on our = plate and exposing reconstruction buffers can certainly wait. regards, Nicolas >=20