Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1520086rwb; Fri, 28 Jul 2023 10:30:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUSLlDXSKm7gVdvhAdNyIL7kxBKYd/9FbbFbjjNMYsuz5RAkdGkkPM6CMLXMd9VEKi5aB7 X-Received: by 2002:a17:90a:4a8f:b0:268:2127:6cb6 with SMTP id f15-20020a17090a4a8f00b0026821276cb6mr1963534pjh.16.1690565440282; Fri, 28 Jul 2023 10:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690565440; cv=none; d=google.com; s=arc-20160816; b=mWAu3S4Kxw7G6vwypabPflvJlqRzkofWgn37C68HkyWhIF4sEbfyUz+KFI4sEfgvar mcCOhnYZX3Mb4atK5vntB7MtcM22R4wCrqzOb3dTy32DTVLe2AX51fSvbNd477S+HxjA ii14tAOO+DSSd9FKKE/43mLBdVqrWwb8/MX69PStmTjOT3YM3Mtg6Ef/XjI8gYBQrP1l G/+Rt4HQLt1+85P0DZC3jNAhu8iMTe4YwgnkiQ3FPUO2RlGRD81mR5/QUB32AJemNOnK bo1WYDUMRjkSo3b2dfGZN2JhEp3DcmT70blf4MgwBPNsW67KtQLkVSZmUpySWpzjaoRD OjOQ== 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=f5FSJWNjl98U9ps1qviIrSxLLSw9XgjSAMERAsNrO8o=; fh=bZlqB+Q83Xp+B8sz79TY9uGSTNpAMi+8TLKYBmEjMCc=; b=SbxPY034CSfoRpqeX0I3IfMUOLl8DuvT5Xqb8Q4mht7qBhISBp10EgoY32etyFHXMc RraajxFQc9RO98taEnprCrTsR4dynpOKJy8h2lNoNKEdCzHSoLiVXk1dQMnP9ljryD0d 0uDdQNzH5hKL//WTc4wGiBbhpSQvjFjs4oxL33mro3fS60bfQ1kL1uLGUeDYHJZg5auW 9xBRcmwYw68pgR5Kp3wmaWwmNqFuDLa657z4lb/OfOyBsjcetz2ly2a4H7FqLebEtYe9 amb7JsuZyfUdHUGgeWujwWWl40dwRfivz/lKtNrLgC2PbspybDIMjAlAW0UCVZrso2Zn HETw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20221208.gappssmtp.com header.s=20221208 header.b=KEXrHXE3; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a17090332ce00b001b53dfb85c4si3411873plr.606.2023.07.28.10.30.25; Fri, 28 Jul 2023 10:30:40 -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=@ndufresne-ca.20221208.gappssmtp.com header.s=20221208 header.b=KEXrHXE3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbjG1QUC (ORCPT + 99 others); Fri, 28 Jul 2023 12:20:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230293AbjG1QUA (ORCPT ); Fri, 28 Jul 2023 12:20:00 -0400 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7E682723 for ; Fri, 28 Jul 2023 09:19:59 -0700 (PDT) Received: by mail-qk1-x72b.google.com with SMTP id af79cd13be357-76714caf466so186423085a.1 for ; Fri, 28 Jul 2023 09:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20221208.gappssmtp.com; s=20221208; t=1690561199; x=1691165999; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=f5FSJWNjl98U9ps1qviIrSxLLSw9XgjSAMERAsNrO8o=; b=KEXrHXE3gUClBeMJtvBhVMzAyFvMFnNREdMBkD+3LXyQSu+9xqdjyGdL+kXW3v8wCv rBg60jzO1fLTjU8skLo059I3y/KDwourf0c8jYvW17+Pu2/tu7MSwjp+54+XhNiXJSyp I0OHDW6Rnns0LogQb9uGjdtjVgHV0vZ0MW/fPzx9QCj8W2aK37Simctem8zaFjVsNyLS SX1gIAzNbVoXeVdtO5+JTeRNq3j0UVmlnL74Oo2YeBlv6zQuQ00y1A60Wpq00YTCWgFg omF86mYj9w7XZMuIhgy6RW4RhnvnPIcf4zfyEO/Wpjr6cU/I3t9t3xMCWtlWL7j02o/K ahEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690561199; x=1691165999; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=f5FSJWNjl98U9ps1qviIrSxLLSw9XgjSAMERAsNrO8o=; b=GrSa0H8bqzhDCbhsAb3wWnApKCUUYrmOT78AJD1Nnut6JQUer3zXX+mp7Q5u5+Wbvk KXrpHss3+UuevJ/AQTFg/kqAZVx7vsFvD4Zr4rl0o7WATtrmC+0aKIBs+mPA8t+8Cg4F lYYmMGbG4heDjQYOe/UpEvH7ePoKauO1oHwQu0gGUZSSjiYA7NzhRLqn0zBYVJRRUzPd pGdVn0C8dwnwtbp3SOHxT7ieK6zljcfTBZO9/eyEq2JfUxGsuCehRWWTcgMTNHAtDxRN xYSr43ZndEp9Tb33GJ3hlcGdoK9ecCkCYkgzihscChL8aH0Bu7g3/EJmPe4N4Qu+IjAC KZ0w== X-Gm-Message-State: ABy/qLY8hfA1se6SeXRc5KsfxbCYwVLkY6quTS8G34UIWYpRMdCdE6JP 6OHMqVXmlgG4GHMNO0tN1qVAMA== X-Received: by 2002:a05:620a:2545:b0:767:3e13:6017 with SMTP id s5-20020a05620a254500b007673e136017mr3460606qko.30.1690561198853; Fri, 28 Jul 2023 09:19:58 -0700 (PDT) Received: from nicolas-tpx395.localdomain ([2606:6d00:10:2688::7a9]) by smtp.gmail.com with ESMTPSA id x8-20020a05620a14a800b0076aeeb69cb1sm1246028qkj.4.2023.07.28.09.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 09:19:58 -0700 (PDT) Message-ID: <70ed7b3197f34c9f3dce9c83c527884c89df5449.camel@ndufresne.ca> Subject: Re: [PATCH 2/2] media: v4l2-mem2mem: add a list for buf used by hw From: Nicolas Dufresne To: Hsia-Jun Li , Tomasz Figa Cc: linux-media@vger.kernel.org, ayaka@soulik.info, hans.verkuil@cisco.com, mchehab@kernel.org, laurent.pinchart@ideasonboard.com, hiroh@chromium.org, hverkuil@xs4all.nl, linux-kernel@vger.kernel.org Date: Fri, 28 Jul 2023 12:19:57 -0400 In-Reply-To: <10ad26e6-b2d0-d0e6-40c8-2cc70613188b@synaptics.com> References: <20230704040044.681850-1-randy.li@synaptics.com> <20230704040044.681850-3-randy.li@synaptics.com> <20230712093301.nkj2vok2x7esdhb3@chromium.org> <583e22718b80cc5e1ae631528c83c95e97de5cae.camel@ndufresne.ca> <7d340df3-e14c-24de-4fc2-b7dca619447c@synaptics.com> <10ad26e6-b2d0-d0e6-40c8-2cc70613188b@synaptics.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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE, 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 vendredi 28 juillet 2023 =C3=A0 15:37 +0800, Hsia-Jun Li a =C3=A9crit=C2= =A0: > > I think this is one reason to migrate to the stateless decoder design. > >=20 > I didn't know such plan here. I don't think the current stateless API=20 > could export the reconstruction buffers for encoder or post-processing= =20 > buffer for decoder to us. Someone suggested introduce auxiliary queues in our meeting in Lyon a while= ago, but I bet everyone got too busy with finalizing APIs, fixing fluster tests = etc. The suggestion felt like it would be possible to add it after the fact. Thi= s was also being discussed in the context of supporting multi-scalers (standalone= our inline with the codec, like VC8000D+). It could also cover for primary and secondary buffers, along with encoder primary, and reconstruction buffers, = but also auxiliary reference data. This would also be needed to properly suppor= t Vulkan Video fwiw, and could also help with a transition to DMABuf Heaps an= d memory accounting. I've also had corridor discussion around having multi-instance media constr= oller devices. It wasn't clear how to bind the media instance to the video node instances, but assuming there is a way, it would be a tad more flexible (bu= t massively more complex). Nicolas