Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2254278ybh; Mon, 9 Mar 2020 02:08:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsFSe/6URQHPtaIq750b906GE/7/Le2ZDxq4XLuQI7O/7wi2VcXUmmchd5vqbg1Ex0VBuCA X-Received: by 2002:a9d:567:: with SMTP id 94mr7473349otw.201.1583744927579; Mon, 09 Mar 2020 02:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583744927; cv=none; d=google.com; s=arc-20160816; b=061NFktdYgvsH73mGcwmLleBvSUAqs79P1Pwepji0F6hjqnUKrAXeVsPAVrXRD4ITg +8lict/2xhepv+e3q1jgwn3oQkonI6BaqZQKQ93poxP6HEeF7L8ONJDZ05iKG+LzQ9Jg 7EJaz9uQDG2BVrLkwseRHjTaQKAtGYINy+fH6fl1JSd1P3kQ8jsj1OZZJXxNzAiuUhJS nWoXReAZKf5ZbpFo4jrxAyiMzIZ6iT6V/EMgwIr2hCbgSd5yIQPyr0GZAeODpNRx8D9b nAvoNdswXnN1fV2O/ZV9XSO2HbiWc8XhKrsI/RZjh8/fPvBVZvfIi9dP5Bf47Z3aU1Jv by8g== 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=Zn5cohc9+dV+bc+jr0Y3IxVaSp3atkPAhci1ZiQCOiE=; b=ViDEMd9Lv/A2v0WQVKQ533JkXnQt3X1opfo3wmfmWzmU21J0JV2y/jGTRN0dpoEvta 6zQo4s9+vxBNigJw3rzyckV3k6HGInBOHUaOd3NtXgpBYQcb1NUIn/Oo6ZWPi4XwD/iH EqLoCtsPvy6uPxMt2LdcdSvefIV5H5M9E2N8R94r0LU3NYjSEI3ljKysQgmotIaKEgPH lHc8ys8Ww1n3P5A4Cf5P+uS0Cx+T8q+Hz+oJWBbgFWyyUYRXUEH7vH4CZ5eU+OppkaWi uPHCunr+e5OvCmD9mVvKm4rl3eEaIM3pcc6mo3PkEwqGETFUrbyYrrBAuCqKVEdKNQ+o lgXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lb76EOjr; 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 z2si6165207otp.263.2020.03.09.02.08.35; Mon, 09 Mar 2020 02:08:47 -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=lb76EOjr; 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 S1726545AbgCIJIG (ORCPT + 99 others); Mon, 9 Mar 2020 05:08:06 -0400 Received: from mail-pj1-f45.google.com ([209.85.216.45]:55158 "EHLO mail-pj1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbgCIJIG (ORCPT ); Mon, 9 Mar 2020 05:08:06 -0400 Received: by mail-pj1-f45.google.com with SMTP id np16so4088164pjb.4 for ; Mon, 09 Mar 2020 02:08:05 -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=Zn5cohc9+dV+bc+jr0Y3IxVaSp3atkPAhci1ZiQCOiE=; b=lb76EOjrQJ2kmq2xRlbXLyDCaHjzcbZRLgkdY5Gnb4qTOS++wMphzDSsoXFT5w+EFT Uz+HZ10OCpASqR6vDFKkpvPRUsfD3TaSSpkbl2KX/Sbifvg9Yrfc4uP6qqexi8OB8obE FArxbS5v3MTQCSAO6tQIHpfrO3Hicd4Kw4FoA= 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=Zn5cohc9+dV+bc+jr0Y3IxVaSp3atkPAhci1ZiQCOiE=; b=cIP5Sq2iQyXEsvil9LNpD00Y8YH8tGj4uZYVrBG6Xu3K/dlFeA1J7AOxhd5y9kPKWM vQVwGhpH6cr0qRwTSl74sNjdN7HEj8y3SjoIRQsdymf1L66/fjkc+oEoUPgPK2SscT1Q HhV8lXrSkA0iek8LBV1ZfEWZtz5GULFXjg3+WRHzvK/vxGk+P9Tz8dj3EPG2/t9iOkzN AKolyGBtqAQDqJiZ4cBKhAxx7a44n8Wr5KJgbKgTFZAtf2I2Rj9An1VyUg+rl7qKpuJH DASc5dhzTqp2eDAQASz+s03PFRs6vYqHaPXIw41CDAdEJN8TuLsgChqaGfy2WxCYaRsg 1KGQ== X-Gm-Message-State: ANhLgQ2QV2c/nCOOB2NpGxPrRC92Jae2fz8yzkRquQkHeqWPySWkb4Lx 48UcPWmQN0MppHtT0zRa3No2Tw== X-Received: by 2002:a17:90a:5d88:: with SMTP id t8mr17937901pji.120.1583744885055; Mon, 09 Mar 2020 02:08:05 -0700 (PDT) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id e3sm12252590pgm.15.2020.03.09.02.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 02:08:04 -0700 (PDT) Date: Mon, 9 Mar 2020 18:08:02 +0900 From: Sergey Senozhatsky To: Tomasz Figa Cc: Hans Verkuil , Sergey Senozhatsky , Hans Verkuil , Mauro Carvalho Chehab , Kyungmin Park , Marek Szyprowski , Sakari Ailus , Laurent Pinchart , Pawel Osciak , Linux Media Mailing List , Linux Kernel Mailing List , Sergey Senozhatsky Subject: Re: [PATCHv4 01/11] videobuf2: add cache management members Message-ID: <20200309090802.GA231920@google.com> References: <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> <20200309072526.GC46830@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/09 17:58), Tomasz Figa wrote: [..] > > > I see. Hmm, how do I do "test that V4L2_BUF_CAP_SUPPORTS_CACHE_HINTS > > > is never set" then? > > > > Not sure I understand your question. When requesting buffers for non-MMAP memory, > > this capability must never be returned. That has nothing to do with a cache_hints > > module option. > > Have we decided that we explicitly don't want to support this for > USERPTR memory, even though technically possible and without much > extra code needed? My irrelevant 5 cents (sorry), I'd probably prefer to land MMAP first + test drivers patches + v4l-util patches. The effort required to land this is getting bigger. -ss