Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2186030ybh; Mon, 9 Mar 2020 00:26:02 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvVnMAgbC/PQZ1/+6ppA3Zm8QgL13uYwjx+60rga2NIa4FABOLHT+exEEVyoM2DOj9bn/et X-Received: by 2002:aca:f354:: with SMTP id r81mr9975227oih.90.1583738762460; Mon, 09 Mar 2020 00:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583738762; cv=none; d=google.com; s=arc-20160816; b=KHohkgBIth4JfzNDZkfINw8qbVl1WMq2fBUSdhJ0q9LxNEFPSjeCibex/TxE07mpSG 5KngTFeKhAMjjvDo4oMM3kMhd/+VaLSZh2XwEdVpE3Nb8BSFgSQR//zNVsGGBcwtwHgz Ldpjf5JWVVfthOmwpTL/+BpVlOP89Q+FVbgLCUGUJ4uhyrdS5lMUXzj5EJl8IG9IwA8v sa5e5E56PefaCmV86OnXO3Xe+sJfAPFchfVdiiyFxuzNQpyglKfB/nTrzLgykzCk6ZYW A7KMCUgo7P/xHsokC/H4JlokZwnvrQVdqJYRUToLWLCm4ZAWagyGpJCCGGxHH2rshYcZ wd+w== 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=5d5OhcXw6fl/9cm7UhW62qcDyA41abHWtu9qn534Q9I=; b=PCjKgd6R+H+KwcwJblB5lk2uwLeFPJqdIKTBcr4rh7YH/NXfTbb0CU/uGK4utw0A40 2PNNrCAsosrntJF+/fTCA4LxKYd9rv1kurijD4TgVgkUkVEMhGQRXJKj/BlQJVmUa6Yi /abzh+TyqxrkaFQ0rJzdVZrzKjl1B5UB0Gq/Iw7VjorvPGaUrk3r4MzLWiwVz1Qqhlmh hSMItyOZRkqWYKqtnGddIR40Dj5VqQTIQC2HZTfyKjKMOiYg9k3wU5/PKD5xr5jAvQ51 07koYDRgjvKMmjnc03TSQyF7rSP8b2rBRI/tWSYB0nv2N0DcK5FIP0vG9GtGWDMLPlWJ X6Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XFhjGyDi; 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 n9si5471037ota.103.2020.03.09.00.25.51; Mon, 09 Mar 2020 00:26:02 -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=XFhjGyDi; 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 S1726414AbgCIHZ3 (ORCPT + 99 others); Mon, 9 Mar 2020 03:25:29 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33223 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbgCIHZ3 (ORCPT ); Mon, 9 Mar 2020 03:25:29 -0400 Received: by mail-pf1-f195.google.com with SMTP id n7so4439120pfn.0 for ; Mon, 09 Mar 2020 00:25:29 -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=5d5OhcXw6fl/9cm7UhW62qcDyA41abHWtu9qn534Q9I=; b=XFhjGyDi2XzGt1EwH26CyPtsrunI797lUqKtau7oIgAWaQZtz3A+Yz2qWUJc0bN61x k8QCJ20rmr8GCXtsi//H8+adMH4vQMh7wscwl6UaS3fK08d6eC771Ua6kB2Pv//aEj09 VVBxkiDaBl4dcIJz8nvlsUW/kl5nMPQqy2Uts= 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=5d5OhcXw6fl/9cm7UhW62qcDyA41abHWtu9qn534Q9I=; b=Y70B0IXz5eOzR+8LYhJ7wZNRLHphbjf/yNOUAtIs1Rcd4KzrzCSUcEI4vtcBmzVDZ3 0JOjq6uRlt90YeMS2AKm7ffWx0tx/A8CaH5oMaQl10mVFGeBdBpxi8JVn4fDDClkPgVH +FMHzt20e0WnXNS26QJty5OQWnRi+Z6I9E90jVQBTzHXBuBc4ZJ7pzNZls6r9w2tUGLl UvsOTpAZmfvT3g0yQLVg8p7Rn5Kl3lnyORFh9v/ncS4xUnUZrw2ftkqtLtBFO4spnaby hMFvo0bNBc7Q9pDSljO9kaLDRw5zmf1Qi1lXUqz2vb6+DK68qJFFZxr+WpLrH06hI4vx AF3A== X-Gm-Message-State: ANhLgQ1PCo30IHohVW2I6c6frKvh5SbO/fs5JG3latY/H+bkO7ZlIoVK vIZwMEpw9+a/H5Ek86IxOG2snQ== X-Received: by 2002:a63:b949:: with SMTP id v9mr14717914pgo.336.1583738728524; Mon, 09 Mar 2020 00:25:28 -0700 (PDT) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id x9sm12931591pfa.188.2020.03.09.00.25.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 00:25:28 -0700 (PDT) Date: Mon, 9 Mar 2020 16:25:26 +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, Sergey Senozhatsky Subject: Re: [PATCHv4 01/11] videobuf2: add cache management members Message-ID: <20200309072526.GC46830@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> <20200309032707.GA9460@google.com> <40cd09d9-49a6-2159-3c50-825732151221@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40cd09d9-49a6-2159-3c50-825732151221@xs4all.nl> 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/09 08:21), Hans Verkuil wrote: > On 3/9/20 4:27 AM, Sergey Senozhatsky wrote: > > On (20/03/07 12:47), Hans Verkuil wrote: > >> > >> Create those tests in v4l2-compliance: that's where they belong. > >> > >> You need these tests: > >> > >> For non-MMAP modes: > >> > >> 1) test that V4L2_BUF_CAP_SUPPORTS_CACHE_HINTS is never set. > >> > >> If V4L2_BUF_CAP_SUPPORTS_CACHE_HINTS is not set, then: > >> > >> 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 > >> will clear those flags upon return (do we actually do that in the patch series?). [..] > > I'm looking into it. Will it work if I patch the vivid test driver to > > enable/disable ->allow_cache_hints bit per-node and include the patch > > into the series. So then v4l2 tests can create some nodes with > > ->allow_cache_hints. Something like this: > > I would add a 'cache_hints' module parameter (array of bool) to tell vivid > whether cache hints should be set or not for each instance. It would be useful > to have this in vivid. Don't forget to update Documentation/media/v4l-drivers/vivid.rst > as well. I see. Hmm, how do I do "test that V4L2_BUF_CAP_SUPPORTS_CACHE_HINTS is never set" then? -ss