Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp445987ybh; Sat, 7 Mar 2020 02:06:05 -0800 (PST) X-Google-Smtp-Source: ADFU+vvJETUB1a0n+8KRsGcB8AwazGbwCknqngjONLxFO6i+XRKItwiN/3TKVdAFjEgv+2AnQjRE X-Received: by 2002:a9d:64ca:: with SMTP id n10mr5959038otl.325.1583575565519; Sat, 07 Mar 2020 02:06:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583575565; cv=none; d=google.com; s=arc-20160816; b=PNaI1HRbq90zNbHnUZoGhC7ySboFdSjmR2jSJKq3Wql40SpqSDpMdG8AfEYMrjc5h5 KhY3Ox/nqIiGKubyGyMgnn29CWxD87+V9UEJYAK786hXcB6pO5YFcLRx6MjPI93IGycy g5xTxM7mtf8WajH4VD8LwaAEXXNelwtW6rucgnTfCEuD7m4WkxU+l0gsMn/eMA41/nJ9 4dYY7VyF/m6u9B03zSUHtkJBsHbKceEboiYXmCDE0TrOCLD9z9MkeSv6DxerFxf2mSOK M3A790nc32f3uZ+VhM+kj+gJCNrIzlD0dwDnQN3Uzj3JAxqOQdP4j4ib7a0BDnWRN2GX 47HQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=B0qsu68aG/tdSntx9g5sDSKtz5L8WXRrm9hBewJbhkk=; b=NpWmg14LaCF7hFuEHiA3a0kICoF40TMmKwIt8wONDOFYmPAcTYGocvWhrpXWKX0XQ0 OXJi4vfz7KxOM/TEm8l3QUdHVbF0XZfgmg+qN2i1MpkuMEd2jGjDOrNWIOf43rDAAnnn I7VV6ySdPwOyiRpWcqL1sgS7SxPRUDIiN9l6DBaMv+rhAEmS+l1L+JtsZTCjFgfuQcR5 e8Yj8eVDdE+DWvb811fHK0Z5M9FayUFZba896NM/qnix3AQ9OwRxwh7cefq5nq8HnYNa qRwHFEj1RdeqdErQimd9fG/MUrXPgUSY1NOZzq5b1waU/y+PtAkFcOzkfP7Om5Af5hHM Iydw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b=PMGy+NHp; 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 v24si3138931otn.69.2020.03.07.02.05.54; Sat, 07 Mar 2020 02:06:05 -0800 (PST) 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=@xs4all.nl header.s=s1 header.b=PMGy+NHp; 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 S1726104AbgCGKF3 (ORCPT + 99 others); Sat, 7 Mar 2020 05:05:29 -0500 Received: from lb1-smtp-cloud9.xs4all.net ([194.109.24.22]:56941 "EHLO lb1-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbgCGKF3 (ORCPT ); Sat, 7 Mar 2020 05:05:29 -0500 Received: from [IPv6:2001:983:e9a7:1:558f:c736:2117:17d1] ([IPv6:2001:983:e9a7:1:558f:c736:2117:17d1]) by smtp-cloud9.xs4all.net with ESMTPA id AWKkjxAzG9Im2AWKljJ7pL; Sat, 07 Mar 2020 11:05:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1583575527; bh=B0qsu68aG/tdSntx9g5sDSKtz5L8WXRrm9hBewJbhkk=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=PMGy+NHpcYKflYY9E3bXRLPEtVlH24l4M4lXxcH8WB22XvZWbb9cPhxUfCmORCR6w EeV0/D8DJ0oS3jeSqcjx7VOik6C5NIFagxAfQCZ53XMRwqPEg0z6av9LEABGQT3/lJ 9yJPFI+CMkarggx4pgM8GJ5iVIYcbwdsaSmwAhrRyGRBCgDZIFYDdg9ONfGRinevSV lZPJZQ1e59nNNCixuDsZwbL9cgxUx0nUM7uLDE5sZNAVKY/dchjalYt8zZG7kvhfld eIBVKbm8hJw25IAA6DRaXvlFWoqh4zA7ZV8olOM0iXZ/hDjdMp+W7vS80uxjVGFTwM k1DGC/J5qCGcw== Subject: Re: [PATCHv4 05/11] videobuf2: handle V4L2_FLAG_MEMORY_NON_CONSISTENT flag To: Sergey Senozhatsky Cc: Hans Verkuil , Tomasz Figa , Mauro Carvalho Chehab , Kyungmin Park , Marek Szyprowski , Sakari Ailus , Laurent Pinchart , Pawel Osciak , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200302041213.27662-1-senozhatsky@chromium.org> <20200302041213.27662-6-senozhatsky@chromium.org> <70144162-3bbe-4ea5-a3f7-e52d4585db53@xs4all.nl> <20200307075127.GD176460@google.com> <20200307093800.GA191261@google.com> From: Hans Verkuil Message-ID: Date: Sat, 7 Mar 2020 11:05:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200307093800.GA191261@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfHF70vEjNioPSllU816EQkwFGG6oJo1HijwiLti4G/15arowBFe7f+oIo7w9x/arY3KjFNiRSYY2J7+nUioCIEFaeOCwluTS3k+7CEBGRBKh070lDNEu 5dhaJR/Aq2Rp/+mX0+xiSUWCuQ8M6iBK2EFCB6KGwXMGpw7o/lcNPC7lH7j3Aw7/ZkHmIlJzFfwJA9+4I8GTJJ32XpvyzPbubZgDOtUUeY6uNDuVvBQV8aO4 wlzkyu7Lzv42x6EoLh026Titwpy7aeZrIgmcYD1IFKJjR8vctAmvn3E2hH1KKYq05KeM/QTfz6PRCbEkiIkk9ph0VXNI6uLNtJirUqFbEy+/jX6AWJxAnt5L OWjfW+oM4fy169OibPvG/hthHdGYNGMImaW2OSFZVcDpC/C3f1iSio1cvXm3N0KipMpA33cHJIjW7B56gaqwrp+Cl35zfXnW2S6jXeIeDsJ2wp9VzcxOtcBa JmAlRNsdJOUDyz7AAwL/iIcfcK2Wg/dWXOa9zTxzWcJi3EBhkXTv/buKiWiyvnB55Sm+X8ZUimdGj4RNuO1ox/sbA/munZze7WsVH7DkVs37y54YWKblEn6V 2S7/VV8GztpWbh0ed+iaO/HUKKK89JOJUMwsTKywfIfeoA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/03/2020 10:38, Sergey Senozhatsky wrote: > On (20/03/07 16:51), Sergey Senozhatsky wrote: >> On (20/03/06 16:30), Hans Verkuil wrote: >> [..] >>>> >>>> /* capabilities for struct v4l2_requestbuffers and v4l2_create_buffers */ >>>> @@ -2446,7 +2449,8 @@ struct v4l2_create_buffers { >>>> __u32 memory; >>>> struct v4l2_format format; >>>> __u32 capabilities; >>>> - __u32 reserved[7]; >>>> + __u32 flags; >>> >>> The new flags argument needs to be documented in the command for struct v4l2_create_buffers. >>> > > Hans, what does "command for struct v4l2_create_buffers" mean? Oops: command -> comment > > BTW, I added v4l2_create_buffers::flags comment: Good, that's what I meant :-) Regards, Hans > > --- > > diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h > index 12b1bd220347..c6c1cccbb5c1 100644 > --- a/include/uapi/linux/videodev2.h > +++ b/include/uapi/linux/videodev2.h > @@ -2441,6 +2441,8 @@ struct v4l2_dbg_chip_info { > * @memory: enum v4l2_memory; buffer memory type > * @format: frame format, for which buffers are requested > * @capabilities: capabilities of this buffer type. > + * @flags: additional buffer management attributes (ignored if queue > + * does not have V4L2_BUF_CAP_SUPPORTS_CACHE_HINTS capability). > * @reserved: future extensions > */ > struct v4l2_create_buffers { >