Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2064876ybh; Sun, 8 Mar 2020 21:05:56 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv/k/rvS6xje6faSgTlEWVI3Zb4Z5PIdCmR17eyf99pBrWf/orC97n2aOV36/W67x28X/QB X-Received: by 2002:aca:ab16:: with SMTP id u22mr2049186oie.133.1583726756712; Sun, 08 Mar 2020 21:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583726756; cv=none; d=google.com; s=arc-20160816; b=LDzMEdYXuhx6NMTctVEoR8Gio1rYR/K/BtgbBLZdaNAfWcdNOaxC9XccldNrrAw74G DKwBtybRfwDleR6zQ43EOOZhhEd7BUiP5ONY6GgCwjQ81J8dk43gJqMm+AhTKywTHyce +jn0GX/pDwpyCTwUquTVPsKAUZstvZuiNdg9VNO8ZRL1xjqo1j981jcTXNdq28xfsGPC yXon0WIdKDQ4KpUXVSoypZa8DJNbjifZNjhM/5h6QyRvft6x1/39WSPKRRWLwkjD/S15 rkALxLYdW+ocqf+cjTpqyx945kaAb1FSjrfOszMLuqsLyRdu/antcdyIVgZOhBqz/XIg 9beA== 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=MePM1LXmB9zu10CipKCKT3AOCH0ORjlABBFj6iXCvwo=; b=Jn7Ms2tj4DRRW2l4DSqgSU+nb2trJbdzVlmAxLLeNMxxFKQyn8celV8qVJ2a+4nSqD qSS1MKMSdTmXZi0tOgsT1xU7PLyOefs4ojqXiZDjE5kAUKCe5z9odiIc9Ln0AcQdQEf7 gwdGY/lbNEin1QI88YWP3EAb8gfHyUAe8Edav6IEcpN79UroOnFepueRZaqpLbhgVwQw VIx+bNMzWPNPGiw19ivX+doZGHCR1SYnUm46fkbTWX72ocxhv3MzciqbW5ZmhbX0sOGA EvBBU1enbUBPTnWcayEd+IZTirtZSRBHbO1YnjB8V10chyVdHaVMMLoPt63PEVN68OXe KPgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=g98VXD5f; 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 j2si211841oii.195.2020.03.08.21.05.44; Sun, 08 Mar 2020 21:05:56 -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=g98VXD5f; 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 S1726248AbgCIEDK (ORCPT + 99 others); Mon, 9 Mar 2020 00:03:10 -0400 Received: from mail-pl1-f180.google.com ([209.85.214.180]:41915 "EHLO mail-pl1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725811AbgCIEDJ (ORCPT ); Mon, 9 Mar 2020 00:03:09 -0400 Received: by mail-pl1-f180.google.com with SMTP id t14so3427442plr.8 for ; Sun, 08 Mar 2020 21:03:07 -0700 (PDT) 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=MePM1LXmB9zu10CipKCKT3AOCH0ORjlABBFj6iXCvwo=; b=g98VXD5fWvExJ1O1zTNwK2U30AXvWKVY+rszXkxQb4p4RypmzbUbGoKjultjn8YWKf Cc3+YRCE/xZo+6pNSg6+mUgMRDvTBTafPeUbeaTFY8+iPw7E2FSjUlKTW0xmBEcG81ci KmijLJmDOXv2p0lOtqJIWLKmTWgITI9OSPx5o= 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=MePM1LXmB9zu10CipKCKT3AOCH0ORjlABBFj6iXCvwo=; b=qGc/scSIZUjtZ7B3TWvqAgwVjo0AKisqSgmY5JJ6unN9Qe2HN6758cnI411aiqoBfN 8v1wyaX+7s1bgHcdsgWW5lDIyhkLT7Rf8LdLytdNjsafv12+KfG13G3C7m+QGoyDHtr5 MKoQflhzbr9D6k46Rr+jvp9gaXUFfLfSiI1MRXWt1GY3RDfWH28vSFHlISQSWBBkzUNw paBLnxb5yEq2bZksKeLjS30IVTlfLUhKvkKty92m15F2pfmRKNfQFBidzS3aT0rqjMp1 8EmXygWlRJJbmS2eMwIRAkldwNEAIwniHCLjN4m80BhKMHytUBB2U5m7B8N0jWcVOgsi ZvEw== X-Gm-Message-State: ANhLgQ0yjCnotibpOt4sM1AtUbI9pDggQ3nj29gqirZN90RdrbNizMiL inOkPnfTKMcKkQnv+gbuKW6wkQ== X-Received: by 2002:a17:90a:8586:: with SMTP id m6mr16360811pjn.121.1583726587196; Sun, 08 Mar 2020 21:03:07 -0700 (PDT) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id l13sm16686316pjq.23.2020.03.08.21.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Mar 2020 21:03:06 -0700 (PDT) Date: Mon, 9 Mar 2020 13:03:05 +0900 From: Sergey Senozhatsky To: Hans Verkuil Cc: Sergey Senozhatsky , 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 Subject: Re: [PATCHv4 01/11] videobuf2: add cache management members Message-ID: <20200309040305.GB9460@google.com> References: <20200302041213.27662-1-senozhatsky@chromium.org> <20200302041213.27662-2-senozhatsky@chromium.org> <17060663-9c30-de5e-da58-0c847b93e4d3@xs4all.nl> <20200307094634.GB29464@google.com> <6f5916dd-63f6-5d19-13f4-edd523205a1f@xs4all.nl> <20200307112838.GA125961@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/03/07 12:47), Hans Verkuil wrote: > > 1) attempting to use V4L2_FLAG_MEMORY_NON_CONSISTENT will clear the flag > upon return (test with both reqbufs and create_bufs). > 2) attempting to use V4L2_BUF_FLAG_NO_CACHE_INVALIDATE or V4L2_BUF_FLAG_NO_CACHE_CLEAN > [..] > > All these tests can be done in testReqBufs(). MEMORY_NON_CONSISTENT is a queue property, we set it during queue setup. NO_CACHE_INVALIDATE/FLAG_NO_CACHE_CLEAN is a buffer property, we set it when we qbuf. I'm not sure if all of these can be done in testReqBufts(). -ss