Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4258942pxk; Tue, 8 Sep 2020 15:13:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw97d+jtgQTxS0WivYi8/by6FP7RumwxmXKNLpK18N8eBdbOHkDt0FGyD5XCp2YByfsFX00 X-Received: by 2002:a17:906:7088:: with SMTP id b8mr601427ejk.27.1599603224639; Tue, 08 Sep 2020 15:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599603224; cv=none; d=google.com; s=arc-20160816; b=MWroN56GTAv2NDzISzhdKJCInyhGEEaiS2eJim6DCg9W9vMDIMVOO2HnOf8TzB7Zjb BedxiEgCen2Fgu95wPO49ItP2HD6/x3QI0PDlkbTR2lL7F7THayL33HyMH5SxykAMApU IYa00fLHxupxTWSQ2OMPOPYSPKb5LVGz5KW5py4Wi4rK0cKzJopS47sfIk4kD+Bhnck8 fUjrNTcaRm7EXXapzhPQ58W7C8ksrmyXApG+m5X4aNqvZjNk7VlJHapKyULMZ4CGEXuy jEmfkq2BiENW5HWGPsdWz4Bu4YCap/+wK6tnFM8dzi/w9ZEhO/+iOXEIiqI7DFgGOjF4 YNuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aCABmvNiwq5ZzfEtzfLCEjA/nFkGi01QovzZcJzwaW4=; b=zUwu63U+BbTHpS3CKGkQoMv5UJ1K7gdH9sdGiU7P35vA/fBAvFT0GLz4M/HV7V81Yc VB48X08fSw9y/FPC0i9HyK4zNH71YRYmFGN13yvstL3nT8ffoJTvuCm6gLPQMv98/c6W zN4Ivi1dNnRX2rWpesyYuTp3TdGBir2q7R2Yc4+Ap5oUkDpIpS5M5eohqo54Hp86VgGC 0yqt0buIWav/rs09UXOpoZ7c7449EU324qFdV+mNCZkduM+d3gsltyFLhCsxFlGyR7i6 jsNHY2zmUBfZrTkY4CnMEm0zw3kakgMzAtjShM+6bQmgd8UWfCRfwKGFbnTbdEd6hN0k kduw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=A+mn5tT0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id b19si224726edy.519.2020.09.08.15.13.22; Tue, 08 Sep 2020 15:13:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=A+mn5tT0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726369AbgIHWJ3 (ORCPT + 99 others); Tue, 8 Sep 2020 18:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729296AbgIHWJY (ORCPT ); Tue, 8 Sep 2020 18:09:24 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01B63C061755 for ; Tue, 8 Sep 2020 15:09:23 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id q21so660908edv.1 for ; Tue, 08 Sep 2020 15:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aCABmvNiwq5ZzfEtzfLCEjA/nFkGi01QovzZcJzwaW4=; b=A+mn5tT0iNNPItEfp6i6CyIrTFkG0NTDtOtusAoO6RvzmJ6S7GwZ3JTNz/XEbKNCy8 R3IdrVuR0TLbgToZtxM9QBvlDNtS/V5zHhf63UnS30JQ1fnWNEr/52hRzIpxztKcs7Gx kdUdVheSz3d8PH6bPF1U7x7gh5HRx4MHu2JFk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aCABmvNiwq5ZzfEtzfLCEjA/nFkGi01QovzZcJzwaW4=; b=QyDyxQFIcwRI8OU07/iZJppWrxj6lOf28J7WVDXe2UDoUfz/7sMaMMeYFmRcSb5FZz GylBx9SIKch4UruNbjEq8wbgvM0muzl6qNwEIvmEavGQysRO+0I2in8juMVCdJFMrSjZ NFwiv8Urtou9mDPtBqRd8Xir3D6CLMKuzeXsW2CSAeh7bAtt6a456pKAtUlqiItqLOfp +Xd0UrZZLbKY/BMyjqKG2UjRMjfA7iF5Rrb/qaCzGFvJOyurCv4FlPoxgr20384e/Obe av1eyX7BZGgHsnbbjlqnuQrFlUdqPanHk+dJP77WlG0YAYgy9O/n4uWX7q4aB9vezhNN WcnQ== X-Gm-Message-State: AOAM531pRX4AWcFSAfCUJbSzgRwouaxCrI3wODThlUrqeFa7OCKr09Jr ctl6rwLdmbd/YY8lZ4fyQZgadWurZi+ty5SA X-Received: by 2002:a50:d78e:: with SMTP id w14mr1162865edi.229.1599602961818; Tue, 08 Sep 2020 15:09:21 -0700 (PDT) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com. [209.85.221.49]) by smtp.gmail.com with ESMTPSA id j15sm443345eds.33.2020.09.08.15.09.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Sep 2020 15:09:20 -0700 (PDT) Received: by mail-wr1-f49.google.com with SMTP id k15so760599wrn.10 for ; Tue, 08 Sep 2020 15:09:20 -0700 (PDT) X-Received: by 2002:adf:ff90:: with SMTP id j16mr611132wrr.105.1599602960207; Tue, 08 Sep 2020 15:09:20 -0700 (PDT) MIME-Version: 1.0 References: <20200819065555.1802761-1-hch@lst.de> <20200819065555.1802761-6-hch@lst.de> <20200819135454.GA17098@lst.de> <20200820044347.GA4533@lst.de> <20200820052004.GA5305@lst.de> <20200820165407.GD12693@lst.de> <20200901110617.GA13232@lst.de> In-Reply-To: From: Tomasz Figa Date: Wed, 9 Sep 2020 00:09:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT To: Hans Verkuil , Mauro Carvalho Chehab Cc: Christoph Hellwig , Linux Media Mailing List , Linux Kernel Mailing List , Sergey Senozhatsky Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 8, 2020 at 11:58 PM Tomasz Figa wrote: > > Hi Hans, Mauro, > > On Tue, Sep 1, 2020 at 5:02 PM Tomasz Figa wrote: > > > > On Tue, Sep 1, 2020 at 1:06 PM Christoph Hellwig wrote: > > > > > > On Thu, Aug 20, 2020 at 07:33:48PM +0200, Tomasz Figa wrote: > > > > > It wasn't meant to be too insulting, but I found this out when trying > > > > > to figure out how to just disable it. But it also ends up using > > > > > the actual dma attr flags for it's own consistency checks, so just > > > > > not setting the flag did not turn out to work that easily. > > > > > > > > > > > > > Yes, sadly the videobuf2 ended up becoming quite counterintuitive > > > > after growing for the long years and that is reflected in the design > > > > of this feature as well. I think we need to do something about it. > > > > > > So I'm about to respin the series and wonder how we should proceed. > > > I've failed to come up with a clean patch to keep the flag and make > > > it a no-op. Can you or your team give it a spin? > > > > > > > Okay, I'll take a look. > > > > > Also I wonder if the flag should be renamed from NON_CONSISTENT > > > to NON_COHERENT - the consistent thing is a weird wart from the times > > > the old PCI DMA API that is mostly gone now. > > > > It originated from the DMA_ATTR_NON_CONSISTENT flag, but agreed that > > NON_COHERENT would be more consistent (pun not intended) with the rest > > of the DMA API given the removal of that flag. Let me see if we can > > still change it. > > Given the above, we would like to make changes that affect the UAPI. > Would you still be able to revert this series? Sorry, I just realized that this isn't the original series that introduced the thing, but rather a patch that does a partial revert. I think it could be also applied as an alternative for the revert, but perhaps a full series revert is just safer at this point? For reference, the series in question is: https://patchwork.linuxtv.org/project/linux-media/cover/20200514160153.3646-1-sergey.senozhatsky@gmail.com/ Best regards, tomasz