Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp434784ybh; Sat, 7 Mar 2020 01:48:37 -0800 (PST) X-Google-Smtp-Source: ADFU+vsWdMKb4WmpEoQ688f3FlMx4Qo05Pz+cWvt5w3I36T0izCdm7OBUIJ8rHgIfB1TlIE+vMOs X-Received: by 2002:a05:6830:20d0:: with SMTP id z16mr5990382otq.25.1583574516997; Sat, 07 Mar 2020 01:48:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583574516; cv=none; d=google.com; s=arc-20160816; b=gcXfr/2Xjk90RSz1II6ttlZfftgyfa6sDGEG7TCQUPEwZt8gkB9WMdrjwVmGmxZqZc 2olrya+GnazmY52VTW1ucD7yznGg18QZ1p8rQLU89EbgE6JM5ARUxdHHCV19tsv7EAfj 16LcS+oBjyz8Tl2vSLs/J4C1oHo7Ja6xAzGCFHNzja7Da33zvgkuYdES8IztrNG7IWkk lIijJnRWKHV5zKmHaW6xA5qEAKaHkgMS7r5u1bHYO5DzFdwMKjbNi8zV5pwcQLeEmgvO w9VOUJYw7Vn86g5KdxEwlpIg+YFF+Opkh81K6zM0tjUD71uGK0StgrSfsNJ2idbihwUH WKEQ== 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=RrUVYR+Ncmf3+5c5RCoXaObVour9qF7+lbeQrqlz+7c=; b=0D/z6Zwmh+camR+KQ+UZlXXxcMtUfXrPfdqNLBMO9gC9PUR7YGGhOiu7yX7HbkaSAM mFfvi7prnkVolZYdD9hdxCbem5sjE96lR+f79W9KfjO8LNIfoL0ah+ymio9XoD/HrSr/ SBNnNR1iexBkFd2uNvYVVQRrr+bzWYHH63JzziPMIumAWOWCPNW38O5HfmbqF+K2qSVM UAiaS1qRdkUoh3zc5ZBpMxevPallRMQQJGYVWMtW75nOQJFoN+/zDpn5zfgXZa15dwaV 3Hmdq4WoCM2NAtPqTjK4JRyX4sO9h/wXQ8TprbuMXB9gQfbU+2pGaz3WfCDpligCTwUS ljJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MRcjzBNz; 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 i126si760205oia.217.2020.03.07.01.48.23; Sat, 07 Mar 2020 01:48:36 -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=MRcjzBNz; 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 S1726134AbgCGJqi (ORCPT + 99 others); Sat, 7 Mar 2020 04:46:38 -0500 Received: from mail-pj1-f48.google.com ([209.85.216.48]:51528 "EHLO mail-pj1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgCGJqi (ORCPT ); Sat, 7 Mar 2020 04:46:38 -0500 Received: by mail-pj1-f48.google.com with SMTP id l8so2131285pjy.1 for ; Sat, 07 Mar 2020 01:46:37 -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=RrUVYR+Ncmf3+5c5RCoXaObVour9qF7+lbeQrqlz+7c=; b=MRcjzBNzTh5m3HSl5QjeZjeXKY2VA6NvugpKkaY9BkbYggMALXdwJmatwbyzt4HVaN FNVwzPydWl9DfNHfnZpihcslmKiTLENkCGlOZ1pnwEXwB5KfPBF87uI20I4WeQLruafb k51o3Yw1Kue72BUfoIjgvPAQ90aUwsFtPxcMs= 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=RrUVYR+Ncmf3+5c5RCoXaObVour9qF7+lbeQrqlz+7c=; b=G11lXpOpaL1opHf8j36+b+NSbQvDbeg9VxJqdH8lOCfzLxjDtJc07qD9MOdxhlLnyO FAuF7U7ByHDumDew9TYfm9Jg3GCCdyHtGW7HWnCOGh0OgLLf6SyKIusPxuIwsxcRQjFC CIZ2GwRwnK+LUAU1jb9aV+dS0eozL+PeNttwr6Tr8eBMxziMQlCuORXe3/Zi+1B45TCZ r7dk4e8aNFqJ9gysFRMZuaqJ7p9sg9Wn3171/0eZ1LtPLpdPq7M0DIqPSqJ/B6Yu5Cjr HqXxMvhvJqROAexn5Nvw7dSn+zCdBPCl7vYg4J7pnu6SsHVhT597OGIOYXUiXxIg426G XtzQ== X-Gm-Message-State: ANhLgQ1csBggT1k3m/xvCpJgJm4SkQeC6DFFr3bVYYwSOSKZ6ZRiR2qV wxDQPuF132KhZVPNMtmUZqfN1g== X-Received: by 2002:a17:902:b497:: with SMTP id y23mr6987040plr.81.1583574397292; Sat, 07 Mar 2020 01:46:37 -0800 (PST) Received: from localhost ([2401:fa00:8f:203:5bbb:c872:f2b1:f53b]) by smtp.gmail.com with ESMTPSA id b10sm11855226pjo.32.2020.03.07.01.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Mar 2020 01:46:36 -0800 (PST) Date: Sat, 7 Mar 2020 18:46:34 +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: [PATCHv4 01/11] videobuf2: add cache management members Message-ID: <20200307094634.GB29464@google.com> References: <20200302041213.27662-1-senozhatsky@chromium.org> <20200302041213.27662-2-senozhatsky@chromium.org> <17060663-9c30-de5e-da58-0c847b93e4d3@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17060663-9c30-de5e-da58-0c847b93e4d3@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/06 14:57), Hans Verkuil wrote: [..] > > * @lock: pointer to a mutex that protects the &struct vb2_queue. The > > * driver can set this to a mutex to let the v4l2 core serialize > > * the queuing ioctls. If the driver wants to handle locking > > @@ -564,6 +573,7 @@ struct vb2_queue { > > unsigned requires_requests:1; > > unsigned uses_qbuf:1; > > unsigned uses_requests:1; > > + unsigned allow_cache_hints:1; Shall I use "unsigned int" here instead of "unsigned"? -ss