Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp285255imm; Thu, 26 Jul 2018 03:37:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeEqCvYZ/BwqzwmqoVbJ+Oe5KXVjU1StuqTK9M04VIlCsyzCbezp2BN+d80RnUL6IijWNNS X-Received: by 2002:a17:902:28e4:: with SMTP id f91-v6mr1481776plb.146.1532601474532; Thu, 26 Jul 2018 03:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532601474; cv=none; d=google.com; s=arc-20160816; b=jXGODSXmrxN8ECwp9SgMfz27bXcWjk8ZFOi6LPlkWr0iXPUOwFePNCKQB4sb8mFgDA 96sxFR0F6ZFoWjv9cYA4eok47mLwJDoi7UAZY+vw+Tlz8KH1mlVC9PdbhVlCHQGtK9YW udn3FtEGcGDuSbqx7LTVooUTHnhtWssMESpIUlp5pfe/yN562F8JVtdtPJ4NA8dQ3GaB Wnq9VvbiswGBqr294aF0el7xTBBtiTbYCQwcAhj4yMsFEiSGoEiX68FZCb4kR8145Pdk pGnTm9nJpMSUMBxaUYbsUCTOLvKJp1X07aZVJ8mrU0zmYTXq4Q+SLSIe0HheBZZT4mWf UCIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=1gd2aXF/8lYtedVVQkUK0pZUwV/IPAejqt+dMRaPSkc=; b=G7Ops/iUGfNbbtbGNjRQyWqaVsW/mMgO62jovdo9244x84AfdbE9B0F2K+0igP5OGT kyouxovq/SLQdRwUfXawIBF2+HH7rFMGCNYBqTx93klLaQtp0t6hmSVdbdXFUNgni2Ee oSvrujnhTH8vHglUWsOGQvTjS0/OU/rDWv1Epw2G3cZ7jh5fOqKEBr4S28s1DKOtHSQx IEpinHAuJ0fCSzN9cLCC9Pd64wn2rUZ88uG2Nxngkn/wXPLnzwbGSGBsF2/ih0EzDZmT yeDpNkMuPTvUlnW/Ln9j5K0kvkJIHqcsh2n6mCYhtLmxoe0Rq+pOPZQ9zBWFkuq1ds26 676w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e125-v6si1087410pfh.334.2018.07.26.03.37.39; Thu, 26 Jul 2018 03:37:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729340AbeGZLxC (ORCPT + 99 others); Thu, 26 Jul 2018 07:53:02 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:55067 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729111AbeGZLxC (ORCPT ); Thu, 26 Jul 2018 07:53:02 -0400 Received: from lupine.hi.pengutronix.de ([2001:67c:670:100:3ad5:47ff:feaf:1a17] helo=lupine) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1fiddV-00039m-2u; Thu, 26 Jul 2018 12:36:45 +0200 Message-ID: <1532601401.4879.10.camel@pengutronix.de> Subject: Re: [PATCH 1/2] media: docs-rst: Document memory-to-memory video decoder interface From: Philipp Zabel To: Tomasz Figa , Hans Verkuil Cc: Linux Media Mailing List , Linux Kernel Mailing List , Stanimir Varbanov , Mauro Carvalho Chehab , Pawel Osciak , Alexandre Courbot , kamil@wypas.org, a.hajda@samsung.com, Kyungmin Park , jtp.park@samsung.com, Tiffany Lin =?UTF-8?Q?=28=E6=9E=97=E6=85=A7=E7=8F=8A=29?= , Andrew-CT Chen =?UTF-8?Q?=28=E9=99=B3=E6=99=BA=E8=BF=AA=29?= , todor.tomov@linaro.org, nicolas@ndufresne.ca, Paul Kocialkowski , Laurent Pinchart , dave.stevenson@raspberrypi.org, Ezequiel Garcia Date: Thu, 26 Jul 2018 12:36:41 +0200 In-Reply-To: References: <20180724140621.59624-1-tfiga@chromium.org> <20180724140621.59624-2-tfiga@chromium.org> <37a8faea-a226-2d52-36d4-f9df194623cc@xs4all.nl> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:1a17 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-07-26 at 19:20 +0900, Tomasz Figa wrote: [...] > > You might want to mention that if there are insufficient buffers, then > > VIDIOC_CREATE_BUFS can be used to add more buffers. > > > > This might be a bit tricky, since at least s5p-mfc and coda can only > work on a fixed buffer set and one would need to fully reinitialize > the decoding to add one more buffer, which would effectively be the > full resolution change sequence, as below, just with REQBUFS(0), > REQBUFS(N) replaced with CREATE_BUFS. The coda driver supports CREATE_BUFS on the decoder CAPTURE queue. The firmware indeed needs a fixed frame buffer set, but these buffers are internal only and in a coda specific tiling format. The content of finished internal buffers is copied / detiled into the external CAPTURE buffers, so those can be added at will. regards Philipp