Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4400775ybl; Tue, 21 Jan 2020 19:51:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxTtQENM5OtHR8HsSsBlb0XhvKloa2/z4ajo5y00G6idlliszSJBGk8ITjsOSjwFs7N0tZC X-Received: by 2002:a9d:73d9:: with SMTP id m25mr6059463otk.350.1579665068874; Tue, 21 Jan 2020 19:51:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579665068; cv=none; d=google.com; s=arc-20160816; b=TT4TUUizwmMKiNEhdK0jjQDbG4PG0bWigmYED7Wha6PhQJaPkDThacuHxkixxiddNl BGvolcB6ApXQdTSRaMRSI6mejll8eQbr875zD2TBfme6M4AmX3Ra23RTg6gbh6eD2gou CfMKcBIq9zF2nQx0qKXG5dW4Rmm+ko1yQa6eoGBhniYe+ChMg/kFOuQMqm1vah2uyeEJ o+ZHPtFGbI/VPWqnq0QCh+/TO7Rmp8x/3suQFyBzBMgEUri9AlUVXCwPnqjK6pzrvvHd D/eay7tF+cobom3dSb1ZTSm3AKXucjfR/LW3V3mHdv8KYm0EZXeKJXWMn3okIqIyYgrZ xjPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KadZgXrBtO4mVuKeTcVoWP21ln+Btq+vvbOWpeDpln8=; b=if5Dv+3yrUs1cqKGAseCi0ZS+hxwRyu/glje4DbhcS/WalD2ShKPWCcXbVrkyQzc5S QLGcZdsOsAIC4nqb06PSgo/iYalylxG7jptd6e1tZTXO/ABSuMjyhi/JpY1yzoUv/7aT /nbBy3LyjmZLmILyZrC/JZgvn3xgNptBmkV/VXoW0VfOFRZ0OTyRNoY+YvN+XV2V1Reh I3Ck+jj6RAmjE0a775T/vkCYLHkuBrYQjA8rqZZQY4A2Biq/gqe/pj2NqKVGkwAuWn9o EOBM1PVDEvke6a06RtoYps7RmznCzz6FisoxH5/zXG3UNVLIZBFXGa1XR51ELcLYr1Bq w6EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CaED7IQM; 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=NONE sp=NONE 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 m20si23172624otq.35.2020.01.21.19.50.57; Tue, 21 Jan 2020 19:51:08 -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=@chromium.org header.s=google header.b=CaED7IQM; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729242AbgAVDs3 (ORCPT + 99 others); Tue, 21 Jan 2020 22:48:29 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46139 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729037AbgAVDs3 (ORCPT ); Tue, 21 Jan 2020 22:48:29 -0500 Received: by mail-pg1-f196.google.com with SMTP id z124so2678461pgb.13 for ; Tue, 21 Jan 2020 19:48:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KadZgXrBtO4mVuKeTcVoWP21ln+Btq+vvbOWpeDpln8=; b=CaED7IQMeGfxusCT6+3cakdWwWTFDcVNFi3XT3OopLYBw7YlrGgkiI2fRxqWZ9o8LK oylPl9WM1Bu5ILGNSdvQT+TjpwAbOkqnpJr6wm1SqC+f2TD+vL7Pt5mOx2yAXFP49lGE VsjEDmSCrcoh0CYc/b7527lvoL07bTexhdh50= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KadZgXrBtO4mVuKeTcVoWP21ln+Btq+vvbOWpeDpln8=; b=P552QShk4duhW76xZtJbHAKEBz8j2ThBf8q7elMYxbD5yeS2xLHlwGcRvkCYPXiaIP pU8n5u5eg3Mmcr1qbmRuu9Xtx1cbalKh2QTxB4NS2zZSutQ2KtWUh3LCznkAKrN6DH6+ ya8LsPTXo/g7VzNZM/QjwR3DbDLBUhkTbnrUKNzjmXk6+MUbutWlnN6YhmD+dZTdMQI3 A7IM6w5KY/+fxiASaa8bjjSVAPP2CKtObHpdKfP3+UP1/wPvQZrraSBmZW4r43smffPq EDxXDO8hu7bSB6FC8Ro5IIZWN4l2Eq8Z2LkUnnYsomBqrdUJAPIqMNSfSalRXoPRvIrT w9Fw== X-Gm-Message-State: APjAAAVo1Ty/w7datQPlKtcLmMTOEjJtzPHDwWcT86dODsmkBBsie7Uv AiGuAW6nwnsJhsj85kJlEkvfwg== X-Received: by 2002:a65:488f:: with SMTP id n15mr9491436pgs.61.1579664908564; Tue, 21 Jan 2020 19:48:28 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id b21sm47755963pfp.0.2020.01.21.19.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 19:48:27 -0800 (PST) Date: Wed, 22 Jan 2020 12:48:26 +0900 From: Sergey Senozhatsky To: Hans Verkuil 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, Sergey Senozhatsky Subject: Re: [RFC][PATCH 05/15] videobuf2: handle V4L2_FLAG_MEMORY_NON_CONSISTENT in REQBUFS Message-ID: <20200122034826.GA49953@google.com> References: <20191217032034.54897-1-senozhatsky@chromium.org> <20191217032034.54897-6-senozhatsky@chromium.org> <8d0c95c3-64a2-ec14-0ac2-204b0430b2b4@xs4all.nl> <20200122021805.GE149602@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200122021805.GE149602@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/01/22 11:18), Sergey Senozhatsky wrote: [..] > > > + * - > > > + - __u32 > > > - ``reserved``\ [1] > > > - A place holder for future extensions. Drivers and applications > > > - must set the array to zero. > > > + must set the array to zero, unless application wants to specify > > > + buffer management ``flags``. > > > > I think support for this flag should be signaled as a V4L2_BUF_CAP capability. > > If the capability is not set, then vb2 should set 'flags' to 0 to preserve the > > old 'Drivers and applications must set the array to zero' behavior. > > The patch set adds V4L2_BUF_CAP_SUPPORTS_CACHE_HINTS towards the end of the > series, I guess I can shuffle the patches and change the wording here. Or I can add separate queue flag and V4L2_BUF_CAP: struct vb2_queue { ... allow_cache_hints:1 + allow_consistency_hints:1 ... } and then have CAP_SUPPORTS_CACHE_HINTS/CAP_SUPPORTS_CONSISTENCY_HINTS. -ss