Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4364587ybl; Tue, 21 Jan 2020 18:55:09 -0800 (PST) X-Google-Smtp-Source: APXvYqwWvIBolDa/ClfBu2It9kApoG4CgwEGIMQm06YBVaotzvYI8YEbZEAa0rKtSlphVup7hc+p X-Received: by 2002:a05:6830:1442:: with SMTP id w2mr6008801otp.143.1579661709695; Tue, 21 Jan 2020 18:55:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579661709; cv=none; d=google.com; s=arc-20160816; b=jfMokZecdbTun2XYf91+KiKs/4BmQDGc3vLpFBkFs9apOnqK2sQM6GU6htmAEMjmM9 CSdfZnh3wx2kxksAG+VZeh1g8wV1PaODmxD27rPKESGbcLtIqjGM2toUgvloaJaXY1Qm ircixWTItaetric4aOlT6OAk9WeqLa7WE980DDaNa6KpdFcxMkrdK1i7LsIoinCYRygf Dg6+3D+s2HLJvGXGUnd6+lapjEt/AniAwzM2bz7ynWJG3Zshmf31/B3YYUSOqoCBZExu sWf4JkiRoR6jxzAxuOGFph4ElEM7ninva6pDyNdk6GkRm9hZqALPS7B+hwY3jdCH4N7Z 5oTQ== 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=mUSpbzQrCD6o0BFV4rM7kWGpbJmN9Rieqc/eqMah9Sg=; b=t/N3onkvtkJZYIjtIFWd4zjHzpVb5j1NDA8aqiiTxD/zBd44hy66QTT26iRB2+BMDr O9MsygIxI3Nu1a9fSq4/I+4ykAYzYpNtqAv/griK1KeSdO2dYfqBKzgIdCeyF+9mTAhE G/SzJ1dSFY5jm2laLkpg/ZKfjkGBGPyM7b2VQ8fZX58+EAFtObcLa3NT/bqWTHrg716H 9U3ewco4ZGYSzDP+Ki2kOZasn+aT+ewpVqs9JATtlOL2KTblowBk7bYRS0PDL4DGiAfI 3aWaUMFx2FgRk1oR6VJBVzEaXV6APCmOYi3+8iZT3EQSX9GNAPR8OigDW2HAZeOhnuVC Lqgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NEUygi0t; 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 y126si20720256oiy.235.2020.01.21.18.54.55; Tue, 21 Jan 2020 18:55:09 -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=NEUygi0t; 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 S1729021AbgAVCxy (ORCPT + 99 others); Tue, 21 Jan 2020 21:53:54 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45574 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728779AbgAVCxy (ORCPT ); Tue, 21 Jan 2020 21:53:54 -0500 Received: by mail-pf1-f194.google.com with SMTP id 2so2553752pfg.12 for ; Tue, 21 Jan 2020 18:53:54 -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=mUSpbzQrCD6o0BFV4rM7kWGpbJmN9Rieqc/eqMah9Sg=; b=NEUygi0trrMIxzEg4+2az/7rHQV4S0dVmlHSwNM1y0GmWtjFADOr5iEHfXye6UdYEe tSjBExRVY6mqUqMY6BcUfoP40Jw72DC4SydacLuo8BxA6eTAGdNV7YazwcSeQhHzfD5W gzLP2ORGNO3kMw0E2sk1soxhO/dQJtWAGMAoc= 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=mUSpbzQrCD6o0BFV4rM7kWGpbJmN9Rieqc/eqMah9Sg=; b=sxldFbFCundvNOB0PKdekVEyf+uoCVKNm6TFU0yW+IMDjnD2kqGrTjRP0M07YaHgn/ wpSFMDnAK7w6iQZ78xjCmErHNqAh/XUCBU1KSFRyJcDtQDgngv/cKKk9UNIxbx4xj9W4 Gn5CRisWtOmHHWfCPV+gjC/Iz1mFrzV+5woRdR6kCs2kG+psnXRNkwAY0BpgfY3YJCYR Rt9gdOjbXk+y1V1ogx2pbmxUDf3s7ROotYwGgBLkbfVnPM+EAIzMcOtj6B5Nnf9yFThf ZbH1DC84dYKeTc/w4ZcDKFH2zMkL+Tf8+0Tkjn8cNHqBquMNDnazrXti/53NZfpdIMuP Rbug== X-Gm-Message-State: APjAAAUDV3VIWMH9Jd0O1xeriqGFcuVVjPDGmoDCYo9PK7kBkBbuZMcF EVJBFfYfXIoF3jhDHQYRra+dzw== X-Received: by 2002:a65:56c9:: with SMTP id w9mr8443639pgs.296.1579661633974; Tue, 21 Jan 2020 18:53:53 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id l2sm44861054pff.59.2020.01.21.18.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 18:53:53 -0800 (PST) Date: Wed, 22 Jan 2020 11:53:51 +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 02/15] videobuf2: handle V4L2 buffer cache flags Message-ID: <20200122025351.GF149602@google.com> References: <20191217032034.54897-1-senozhatsky@chromium.org> <20191217032034.54897-3-senozhatsky@chromium.org> <20200122013937.GC149602@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200122013937.GC149602@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 10:39), Sergey Senozhatsky wrote: > [..] > > > } > > > > > > +static void set_buffer_cache_hints(struct vb2_queue *q, > > > + struct vb2_buffer *vb, > > > + struct v4l2_buffer *b) > > > +{ > > > + vb->need_cache_sync_on_prepare = 1; > > > + > > > + if (q->dma_dir != DMA_TO_DEVICE) > > > > What should be done when dma_dir == DMA_BIDIRECTIONAL? > [..] > We probably cannot enforce any other behavior here. Am I missing > something? Never mind. I got your point. -ss