Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp339171ybv; Wed, 19 Feb 2020 00:27:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzzbhmIHlsHn6tG7q9duBcXr8JGckOZehQQxWzF/mZQve8vQGp/VvvS5rRIwnxuTpYlWotr X-Received: by 2002:a05:6808:b15:: with SMTP id s21mr3650204oij.123.1582100863764; Wed, 19 Feb 2020 00:27:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582100863; cv=none; d=google.com; s=arc-20160816; b=i6Df6VTasKLYNL8y4FFut8dWXXjn+17nBWPATXwXxGRVAa4LmdyF3RNTq3Wfc4Vzi5 PgM45f/wWwPVjq3SLD830jIKf+GnxcLOv6nrsM9SIEis0Rbn7fuqrXdW2WqY/YyYm5Vx SwXxZfDXDYxjPrx9qmMg34mc4yFcAwsiW1oJffOsAIFwy+YvgOwMo1Seksa+4Sh+sx0X Eb0+IkjovS0E3OOwlsiT+zXyNGLKKQyI527gYdwUWM8HACajmmCLDMjDqM1MTylVCdFW fN9Vmxk1N4seh69dosPX+haoZ42b8BiepNSpoSxj73p9mkNcUc6P5hHSNrQX8oHMf1B/ SeYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gUSKNFP+9NByi0X7P57DBtPalrLuEFSpoKgSKocBbMw=; b=RjVi819SorlUz9CsoKxjC3PAWAOTnCggVknDCbu+bphHdlYD3bC0WEeORvsrqw+SmK xik5NPodA6BnMCvBBNryXFrIyeDG+f+2bwEOsXytEPd32KeO+2205oSHJox2G4OYriFK ISbzhAyU00ux1r3i8BNCyxiGvPmxU4Aj+1v3L2Ggjz4y46c3qnrbrPm7cetD5Dwd3U7m gRafPESDczgPuY6PKVGG1tEAIcKyZrzVYAXdF44mWe6fYaSoRVWwVHoc1Ywj7UXEc4xN 6tzLgNfMMqhlZWI0mOm9LdFrauS7KStBiwCqIUkfqHmxC2nWfhllYEI2S67sv3StIZJR yfcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s1 header.b=R3gsMk1J; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si764651otp.279.2020.02.19.00.27.31; Wed, 19 Feb 2020 00:27:43 -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=@xs4all.nl header.s=s1 header.b=R3gsMk1J; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726497AbgBSI1H (ORCPT + 99 others); Wed, 19 Feb 2020 03:27:07 -0500 Received: from lb1-smtp-cloud7.xs4all.net ([194.109.24.24]:48693 "EHLO lb1-smtp-cloud7.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726001AbgBSI1G (ORCPT ); Wed, 19 Feb 2020 03:27:06 -0500 Received: from [192.168.2.10] ([46.9.235.248]) by smtp-cloud7.xs4all.net with ESMTPA id 4KhBjzI7XP9a94KhEjnO9L; Wed, 19 Feb 2020 09:27:04 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1582100824; bh=gUSKNFP+9NByi0X7P57DBtPalrLuEFSpoKgSKocBbMw=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=R3gsMk1JOobtInm+cPCURhU3hkBED5jTzeRunL8+qIFhp2pxOgllnOS3NSo0hnnh6 jCliivF9WBN00Q5zqLQmn3mEje88OKUUInQUEPzy8mphSDqx5Ou9IafkNuxgQiU7z4 z82KPvapWhqJNf4XS3wGfmAB+brVWYC6OlpurhdDdOSSy4DHTRfJMSC4V78LNXpWTi hQeWSx615dyptxEhWfZo8SjV7Y6z1l5vcq7YaCCS7z2L6SXSl4+X3OauyFpbs2YLP9 PJN5zJEMiMKa/zar8xZZXh2QDsu8ac6b9EL7EP9qWfKt7RhSXvEqTUMG/1d6cjto4I gA4zljGa80/GQ== Subject: Re: [RFC][PATCHv2 01/12] videobuf2: add cache management members To: Sergey Senozhatsky 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 References: <20200204025641.218376-1-senozhatsky@chromium.org> <20200204025641.218376-2-senozhatsky@chromium.org> <964aeb73-1474-032f-b2a6-b317cc15f7cb@xs4all.nl> <20200219081638.GB122464@google.com> From: Hans Verkuil Message-ID: Date: Wed, 19 Feb 2020 09:27:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200219081638.GB122464@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfMAGyF3OPLezHQzsDev5SzfS/CwJG5KHnj3Zt9nLCq+8lXFGPaxVu3L19kbfcyXXdodecYZk8Mbdp5ycs7lnEaQF+6I/fZnsDfpzhF5g3HL81/y1DALT F2UY3vsXgx84Tbaw6q8+2wGmH/fIlgkebOh7Sm6NWsnKLMG8vkTJriG5gD/dVv6Q40cRc0D/no1aujWC9x0Fv5GylrOhN+cH5c/Nz7B11tPKcUnV3fhDK+eC 9Ba1qdWCku8Sg2/UYICHlLM+0zXubYy9JC5MxuNIDOzDl0x2iSPiN7QxeSzpkCcM9szUAnyBlxpPDtecwICIr0n/nzP6/3MBNjtyHyQu+nWoUt73nLK2Qn+O X+s1kfsdU5pdQr+Tyf0eCou4oeYUJG4hbvTTxjcgZT6yMUzI6c2V0VUDQiTOy8P2OlvBKXaNgOlVY5UQ4lua7ydaGsnrXgywBnjyQ4ffktNGGPUrVSybC60W x0fCR8rBnNncpTIBZhOWTRAVHYUariiF4I+7YZL/OQrxONbGEcSI3BqUOdgegMw4a89xDvi64EvGLN7n Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/20 9:16 AM, Sergey Senozhatsky wrote: > 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 ..." "When set..." works well. It's explicit. Regards, Hans > > -ss >