Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2180585ybh; Mon, 9 Mar 2020 00:17:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsBhuEwvseY7gLqAurSRHERRY5cf/Wmm7H3A8QyNUldV8r4i2/4jo/4T5lXsS9WpBTxA4Uj X-Received: by 2002:aca:e146:: with SMTP id y67mr9947447oig.93.1583738278471; Mon, 09 Mar 2020 00:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583738278; cv=none; d=google.com; s=arc-20160816; b=yiH3sBU+o54O1G0V//ZYO7D3a9ggADxVHLrZ9AbWsdtfzaVh2Uoq+TzgpuBFOWgCJi eJxkj93W8rrtZThoA41+jDPQwdpSI4tM/S8jes2+AZSOIb0XKFjDkxSwgDj1qpA0Vn4K QIlZTK7MZxqLWvaLJFCH3+zrrE3JXzkD6KgVtmHwv4BW2M6nOCSmAsNAxlzsfG+yRalb 6//i1yzOrvrmfVKB8JPjSX+Cq/QZvE/BEd3b+rEVn4BE08YHs246ab91h5/WYwcg788/ IhHBblNlvVUpsJlzKuoWafqOzwCc/6PhAbfBozCRplb0rQxuDxO6J4wQ3LJchqthWunv Dg0A== 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=32KlxDk90Be6PEioTy1TcN8IjnKPfRs1x3JsVTLCOg4=; b=JpZz97DGpYst8v/XUd1BTNVk1/gLJX4WIa+YMCQQ9O3W9a5DjmUM9jG4Y6tSh7zxnE 3CWr/LtRTRI0UDHGdH3Z6/Br2y47LVNq1uyKsdZMdvEbT0E6/7Xxwq3EvLJHqjqD59Js rQuDhtFUQgMx2+BPEAzdP9PSERCOjRZkHS1hbhxcz0CZQ2xlWrBhGQjxxhnMxo4oI1pr J8xJMQ0fZvBQ6aus/q7MHRWdUY6gZ62vkNWk6pVOU2uIA2IbLOA681iaqXyc7zo3rcfo mbFSw8oQSo1uzKYVUKBTkNO/yCtGaitJVBcSHhrZI2W68zwGLongjDe8JBWWCVZ7Djzt hgbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b=DqgJY8mV; 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 r3si1956198otn.55.2020.03.09.00.17.46; Mon, 09 Mar 2020 00:17:58 -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=@xs4all.nl header.s=s1 header.b=DqgJY8mV; 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 S1726523AbgCIHRL (ORCPT + 99 others); Mon, 9 Mar 2020 03:17:11 -0400 Received: from lb2-smtp-cloud8.xs4all.net ([194.109.24.25]:47135 "EHLO lb2-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726427AbgCIHRL (ORCPT ); Mon, 9 Mar 2020 03:17:11 -0400 Received: from [192.168.2.10] ([46.9.234.233]) by smtp-cloud8.xs4all.net with ESMTPA id BCesjfMUyhVf8BCewjElMT; Mon, 09 Mar 2020 08:17:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1583738229; bh=32KlxDk90Be6PEioTy1TcN8IjnKPfRs1x3JsVTLCOg4=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=DqgJY8mV8S7o7gcfn+cQs6L1gHKlNIrGFUr41UrJYLw+Eoh9sVsFnNtO0mxC+WbKR NqaKpCpP9LLVS/VxWvm03MTSYd9UQWaZqROZMtweTKrgZ7kZFUIt7gUvZZKwnpVzVo wHT4mNfps8Nt82Z+cWVwabvletmOS7zoyMzENNr8q11iY542mZeYeoEb5sbMKIxYlo Xp4x3Ed85Si7tYsV++85hXutSHGx+CM6F1Qo2xM7fgbjQMUubblmhZERH73y/FKvIb nt51Y1NRzQIgDWhgyTJ+iKGwbjEYoHojKUT7zMu3NNENP9ZNVp8DuUU+FozzR3BQvB Tnp492gRqyQOw== Subject: Re: [PATCHv4 01/11] videobuf2: add cache management members 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-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> <20200309040305.GB9460@google.com> From: Hans Verkuil Message-ID: <4cd4f794-1d84-9fff-746c-e516bc411549@xs4all.nl> Date: Mon, 9 Mar 2020 08:17:02 +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: <20200309040305.GB9460@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfP0Ii/2CEImmUL0aGzJj48bCfBaJoRpOw8bibhnHKFGwuJYS5Vp2a23+WcZ08klJHUnOr4LO61wYTWnM8ba1VJtu5XzDweqrsjC8CcXmq9JbVAd2h1c8 E9UCE7Q63zDdjzOBXZJneC8Q3CBEdPGm9K9MqycB4YHBOk93l30ZhsxDr5jeOi4l8WHT0EieGqub/JN00iYNDb6M6+dt1R177Ds85MW/bs0DdAo2LE5bOMKZ 0r70rBdm0OH6SRS31Iqw2d0MoHicsjVMp0RDfuk6OI4gmHZruS7IZTeJ8z3wbu6ZzjuF9AALrKgIKFPgyHwjqBTTZ1Wr1Jgk5C1eSrRPeOD9kC2Sp+6gp2gm zk27KaEvTN/RHzjBMs7ZaqSYyMTILijYKgCKVuUNbt3lLp0bGCfpinLqXtj1Tti0K0HXG7me8+4+tViRzr5cwxxJsPFrZW+8OouAd7ndtA3p4aIJ9wT9PpRH hef7lz+vsGTU/kI/YaRqlDFJ5gPYbzC2etqtLqD7rge2a0X4Di25ezR5qP0SbQJVllmhYB6xECuvvTxT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/9/20 5:03 AM, Sergey Senozhatsky wrote: > 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(). testReqBufs can call qbuf, but not streamon. Since you don't need streaming for this, testReqBufs should be fine. Regards, Hans > > -ss >