Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp332785ybv; Wed, 19 Feb 2020 00:18:11 -0800 (PST) X-Google-Smtp-Source: APXvYqzg1iIVsqE32AMUFT9WPgoLEGM6C/ipeBsjfrUP7qBroe2wnsTrfYJkEuk+9MjPofWeM0xh X-Received: by 2002:aca:503:: with SMTP id 3mr3739691oif.24.1582100291549; Wed, 19 Feb 2020 00:18:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582100291; cv=none; d=google.com; s=arc-20160816; b=aOT7KmeGF6yz0pA1xERBBq9Hc4A2p0Vfe5qWfx/eKWsQ0uH14RAm9/cJti730dqY7u g6QFMzDblvQbz39AVgsXydxqp99hSwvOXR67/m+Q48c0GtSYw7TDZa3UCue+hRBdJ9MF 5cRzVo1UcKNZxilBRs5eZXLNO2rMt8O5D8dFYIOne6gUl108tj8pfBanwwUjp8bZhwZX aNvPXAQOrdUHDALzrZ/Fzr8P7KOu0uwR72QOU9+PlIF20FpDQapf6ODS9Yj2FEGvK0da FTPL7c5uS6NqzBokecznu8SqcktHY1bZZAxk/bsGlSMmuEa+ScQUIIwACfufKttxLu00 /Zqw== 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=v3O1z61UvArVytMUXoRlXAZVh2DnhKK0P9ahcjLWA5k=; b=AB4RGsT5MrAlv5l44Wgp4pj2pc8Pt/vmdSixcOVRRzW9euNJUm+A2kHQlU5Xpljhj9 KakAxFJSWdMN4T9gPxE/Preyiqm53HKDcFalFx9jMzXHR4NIX98yI+C01NBUgZYzMkdx wha/Kc/ocSFKg9Rs/Ku627M3c1lpuRpTnw0JcZElodogtnWFJ2vAlxpGMgWxcXCM7yKV jQ+4JfTzYUfoxt9ieLs2yiX49avmbkmPdHnKLCqTX7wtAMw+xQSyejZgtmYuNdo0i5l3 U26KeXfj2VoWVpyvfE90+fyndEV8794MgcWFcsADgcq++j3AjjXjCHZ6b/TDWYJN3i+l cwOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hzQWWTsx; 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 g4si9524943oib.152.2020.02.19.00.17.59; Wed, 19 Feb 2020 00:18:11 -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=hzQWWTsx; 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 S1726605AbgBSIQm (ORCPT + 99 others); Wed, 19 Feb 2020 03:16:42 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:36299 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbgBSIQl (ORCPT ); Wed, 19 Feb 2020 03:16:41 -0500 Received: by mail-pj1-f65.google.com with SMTP id gv17so2212403pjb.1 for ; Wed, 19 Feb 2020 00:16:41 -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=v3O1z61UvArVytMUXoRlXAZVh2DnhKK0P9ahcjLWA5k=; b=hzQWWTsx+VBLfoV3esj8tam3Kvc099iWAPDDfO7kgY1+oVBTK1EMtP7GrlZ9dcFlXV KHam5I3mh7AgqgVfGScUfU9iqaWG6EGXH/xAFOZpCN8YHZEV4SOnu5Ow6KqBVAroJAIN TtjDlgBQ4qgkJcGErAHX4lOicUmxquPRiYdm8= 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=v3O1z61UvArVytMUXoRlXAZVh2DnhKK0P9ahcjLWA5k=; b=CT2hjp9lJGLz8v5X+E6ujy4HrL44Mz6r/M7ANmAhvPNbRR+WPiEBh7I2N75pX2qo/Z +CP9270U9Zv3KJbm1x/WRLSu1s/fZ3/vZFOJf5nEVn0VRHzVghE0R58yOwmwVPUpfEsC cYWQCBExPJFyC5IVnbzYDCUmWywdxWPX0wwfTge7jxJGxKj3VT+EY6Yf9uHRkIiNQ7xY KQmvH1UbidKvWr07wg+5XBEUtNtCpRgNJDzSS4weMFQo0SA+gET5g+FQnbNhqDZ/24mn Ox0zbttsz9oVI3u6P3058FUP/0MnvuL2MQoRJpubPbe/sWzkYvRRs+AHpPNv5JqU/3F5 ODHQ== X-Gm-Message-State: APjAAAWIxvta3wti/RW0sGSwQxB60lm+tOpmHR0dSzFVgEF8IA2QucIs gfpHehirsst+6S3GAWrIbC7gKg== X-Received: by 2002:a17:90b:4004:: with SMTP id ie4mr7687893pjb.49.1582100201064; Wed, 19 Feb 2020 00:16:41 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id 13sm1669232pfi.78.2020.02.19.00.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 00:16:40 -0800 (PST) Date: Wed, 19 Feb 2020 17:16:38 +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: [RFC][PATCHv2 01/12] videobuf2: add cache management members Message-ID: <20200219081638.GB122464@google.com> References: <20200204025641.218376-1-senozhatsky@chromium.org> <20200204025641.218376-2-senozhatsky@chromium.org> <964aeb73-1474-032f-b2a6-b317cc15f7cb@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <964aeb73-1474-032f-b2a6-b317cc15f7cb@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/02/19 09:05), Hans Verkuil wrote: > On 2/4/20 3:56 AM, Sergey Senozhatsky wrote: [..] > > diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h > > index a2b2208b02da..026004180440 100644 > > --- a/include/media/videobuf2-core.h > > +++ b/include/media/videobuf2-core.h > > @@ -263,6 +263,10 @@ struct vb2_buffer { > > * after the 'buf_finish' op is called. > > * copied_timestamp: the timestamp of this capture buffer was copied > > * from an output buffer. > > + * need_cache_sync_on_prepare: do not sync/invalidate cache from > > + * buffer's ->prepare() callback. > > + * need_cache_sync_on_finish: do not sync/invalidate cache from buffer's > > + * ->finish() callback. > > Shouldn't 'do not' be deleted from the flag descriptions? If the flag is set, > then you need to sync/validate, right? Hmm, kind of work both ways. Maybe the wording can be more specific, e.g. "Do/skip cache sync/invalidation" even more detailed "When set perform cache sync/invalidation from ..." -ss