Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4379745imm; Tue, 7 Aug 2018 00:04:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdB/IBgxR77AN2q+kSn4uRn9IEL1hgrlbrvXO0+6nO1RU+E4Im2O19+B7Q5kBB8RjBgEP9H X-Received: by 2002:a65:460e:: with SMTP id v14-v6mr17036692pgq.177.1533625465973; Tue, 07 Aug 2018 00:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533625465; cv=none; d=google.com; s=arc-20160816; b=q/NoE9gVdsKukCyGW5KncQ1YEWjIdLWGCvnmoAaa4zWwpVTzQ43KrS8sxr64yziiqK pltz9ikNK1pUjMsXsVEdIAiO20bOf/WOqfW510FH/hT6jV/jNIz4UV2R12i2VwGXWgdQ jyxytspvIbQ7r4bDnodwp0B7vdK3xw+tXizVKT0XB97FE1n0OcGSzBNnRtXbVsImsItz Sv7hGvA//ZV+AtbMGJPwGuQUyJNnIfH6iorTUGzDGEK2XrAvQgeiPTlaKB5HgHVfiN7Z e1jx2ql15jusmgi63PfabxTacllbS8AyH2/r4N+u3VMaJ3w6oUFcLcphjwdzsr0/iyso JG9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=ulSTaWs1/rDROgk/VAFtRirranugEnB55n0Q+VOBir0=; b=Dlsyy5vmwv1vJpHMbFJN2XMGDSz1HMcK2ljpsCPUJzbd+KLUwrdgLecSf+jX6g8FAn b+ddDEeCOfPaMDiYtqkrSMRR4qblnH/NV+SiFAVB1y4863gwwQTKIKwvTshon13YjzbJ WdeTBrHijyz2kaz+yP8ZH1prbZeAnG4LT3yvPWrNtiphhPhFUtCspHTLsfixt9+xW+yS 3vC0hAbCYtBuJfJTmfp60TbpC/XqUuKBiFp/JVZwk60GtaIqwoRd06Uaz6pk67tYg3ZH ADKRn7eaK2l7hRanY43vCfPdCrBHbXu9fzRaQ9RIPXRkoBo+JgQFI8LOiG6rVX6HHGQF hhKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="D6df/HQQ"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t8-v6si491012ply.139.2018.08.07.00.04.10; Tue, 07 Aug 2018 00:04:25 -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; dkim=pass header.i=@chromium.org header.s=google header.b="D6df/HQQ"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388711AbeHGJP1 (ORCPT + 99 others); Tue, 7 Aug 2018 05:15:27 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:33462 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387493AbeHGJP1 (ORCPT ); Tue, 7 Aug 2018 05:15:27 -0400 Received: by mail-yw1-f68.google.com with SMTP id c135-v6so4558756ywa.0 for ; Tue, 07 Aug 2018 00:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ulSTaWs1/rDROgk/VAFtRirranugEnB55n0Q+VOBir0=; b=D6df/HQQahsuEh44+TVMcwkcyeME49noFFvgjzsTGzPTo7MavLgsncgkyK0+1l8fAG YH2uaV09aB1RtY4qyrBX8VfoGjsMavfjNmeDUCtAgVplSCR1u8OmjgyAtiKFMRF7kc7C hlmTs0ZAbLdR1ZPGsQx3yJdhM0PiW4+R/Sm8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ulSTaWs1/rDROgk/VAFtRirranugEnB55n0Q+VOBir0=; b=J51xwE2mCyRHAk/7PwCi7T3ki3qjsbRbj0J4fAXrAqQJbui/M29GK7P2B1bjvCpn5y 28VrxCdyBT5MnbaH/tOpARXElqdXQL4FCKKtEy5N33yRkLM2M007AbA8tQJc7vGewkTI z6uenXfmys9gm74iIFMsCanYFUghcEZeYBrxLXByy1a81AvtTXZhKdCTw+VSpufVPx1/ CPB6JU75PcIqEAkvIBroORndfocVeHjryGUzZc/gXRPBZ9b4RDa/IVjV7qmqz2pdds80 bO6/9WCQzuzmXZLR9ZJR1r0NMXUaiwy8Z+ASmB/rzm+K0cCuIM4cA7soo/AmLj56Re4G Nt7Q== X-Gm-Message-State: AOUpUlF5AESVW1u4IFcUeEG16X5aF4YfqDDTgtMRAqLP4AIVleg5gxWC B157fm34DbthmSHUCRFaAz9P7XQp7OQ= X-Received: by 2002:a81:52d3:: with SMTP id g202-v6mr9814567ywb.380.1533625351536; Tue, 07 Aug 2018 00:02:31 -0700 (PDT) Received: from mail-yw1-f50.google.com (mail-yw1-f50.google.com. [209.85.161.50]) by smtp.gmail.com with ESMTPSA id 64-v6sm242973ywg.106.2018.08.07.00.02.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Aug 2018 00:02:31 -0700 (PDT) Received: by mail-yw1-f50.google.com with SMTP id 139-v6so4555506ywg.12 for ; Tue, 07 Aug 2018 00:02:31 -0700 (PDT) X-Received: by 2002:a81:5194:: with SMTP id f142-v6mr9165532ywb.46.1533624919918; Mon, 06 Aug 2018 23:55:19 -0700 (PDT) MIME-Version: 1.0 References: <20180724140621.59624-1-tfiga@chromium.org> <20180724140621.59624-2-tfiga@chromium.org> <37a8faea-a226-2d52-36d4-f9df194623cc@xs4all.nl> <1532601401.4879.10.camel@pengutronix.de> In-Reply-To: <1532601401.4879.10.camel@pengutronix.de> From: Tomasz Figa Date: Tue, 7 Aug 2018 15:55:08 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] media: docs-rst: Document memory-to-memory video decoder interface To: Philipp Zabel Cc: Hans Verkuil , 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, =?UTF-8?B?VGlmZmFueSBMaW4gKOael+aFp+ePiik=?= , =?UTF-8?B?QW5kcmV3LUNUIENoZW4gKOmZs+aZuui/qik=?= , todor.tomov@linaro.org, nicolas@ndufresne.ca, Paul Kocialkowski , Laurent Pinchart , dave.stevenson@raspberrypi.org, Ezequiel Garcia Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 26, 2018 at 7:36 PM Philipp Zabel wrote: > > 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. Thanks for clarifying. I forgot about that internal copy indeed. Best regards, Tomasz