Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1799291pxk; Tue, 1 Sep 2020 08:06:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYJDf2+BcDH9yhER4FVm4ks/JxO1IHls1jXTdKFhFFjiOREYuwbqDmWGbWD3oTz8vAA7q+ X-Received: by 2002:a17:906:3fc7:: with SMTP id k7mr1791751ejj.301.1598972790801; Tue, 01 Sep 2020 08:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598972790; cv=none; d=google.com; s=arc-20160816; b=O3cRmO9zuUSTLMgjBJ9XjqMtsHbLqdFBZHX2kljDs0HpLPSmbLxL7gnu3IHvJXPTlf vMeK8e9MzruAyGhXzTN4X5ooUGnTgznjY7LfC73i4CGGJG09o/zMsQB8ypnWXyZpufHI GqCoqyAk+8/SlirAuk14FDYnIY35ZlOARzawL+Md3O+FB//RJXsi0RhpmIo84us5hNeC PAbCkp24ieoJKyM3G6yg7+/E0NiX5wjxT1fZ2SpKrUnQlwFjoDm982y77nixN/YCvKr0 Ilgqo0MXk6jfC3IDVa0ei6SDwa6v8Ag5vHpEA+ePjt+LHLVajWxBXNxOaHE6oN1WpS75 2qkA== 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=BIr3FRHLWeYI5mpm2jHeXhPihRGMNnmHYOmMOMeHpR4=; b=AhYJ997QnCim9kuK4+F5SUdHwpXBM2TWLZ+tMq3Hnb90GM+8ygMec6tOez/8gGwtAZ 8/vwZ7rAb14ZSPj5nwFvwwy/IO0H2xiolFTwzWIp2SRbsNZB806kbVh/eSaKof1NcLG2 SyG4GVavS3WiFDoq7QxTXtXZmx9wHVLtXgVZHQ/52MFixjIOR4P32D+54wItPgmzJ0lS bhcZrXFNdc4P7t3PG9Xvz8Hy82zAIkPinqxxYdnF8v8NHIi8OvWtosdfQHXufPsyKRn2 BNVWa65DOketWRPzJKFdBBMIG0KMtOwnbBYrAMLAw+YqMZT3zGEsrvHVcBqPp1Iz7fv9 JnvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lCL5SLaM; 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 b9si707068edk.256.2020.09.01.08.06.04; Tue, 01 Sep 2020 08:06:30 -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=lCL5SLaM; 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 S1728449AbgIAPC4 (ORCPT + 99 others); Tue, 1 Sep 2020 11:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727783AbgIAPCy (ORCPT ); Tue, 1 Sep 2020 11:02:54 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17E4AC061246 for ; Tue, 1 Sep 2020 08:02:54 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id t23so1935427ljc.3 for ; Tue, 01 Sep 2020 08:02:54 -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=BIr3FRHLWeYI5mpm2jHeXhPihRGMNnmHYOmMOMeHpR4=; b=lCL5SLaMFPqoPftiV2X8nocTTBdKqARvrqI17ufYPS0DtjiIyaSIs4CniiHZ/VEW8n WoqCHbvQzPHbcjvAM7+zD7U98QNr5oxI5U75nYwYeOtUdaj7M9sptx5fdS3otDiC5uUz 5071XY7IwhHNlm+8JmyRZFrwvyyMI1Xxx/Jf4= 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=BIr3FRHLWeYI5mpm2jHeXhPihRGMNnmHYOmMOMeHpR4=; b=nxVl83IynQrl+tf2wgtChREr2I1rqQK0OVlBZxwQTYiVbbpV9ELMKTN8ESMic8Fy7F 2WpZSJeWAC2XG2uIL4WMAHiwsN7VdbkPje089qIMdpdIE46wIYkxWc+aDsM5FSMsI/xE hrdKjCgMfYvQHhl38LSifYpdXDfD753h8ZOpkxy7+RG1bItIPOcX9hXTv6BDFdhuK5j8 LhDNdnJKgxnJnFbFSFY3xou5sefE/mrfyylR6pMpsEpNf965ZS0rk4uetaPdZ+KyuNCv dGO0VOHjkhUKXOb0qkjHo/+mqf/YBRX0L0eEa54OR3Y1aNv+5awkcrM6hyZWEFDR/zVz I3PQ== X-Gm-Message-State: AOAM53238D995ZYUT4h7QuKOmKUIX5/krPxH8hvHn0hRThGalZ8HUR6j mDJuSCiZqR7cNL3TCoklK3R2gsfzPkT/fg== X-Received: by 2002:a2e:b045:: with SMTP id d5mr836049ljl.111.1598972572216; Tue, 01 Sep 2020 08:02:52 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id b13sm337005lff.91.2020.09.01.08.02.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Sep 2020 08:02:51 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id t23so1935218ljc.3 for ; Tue, 01 Sep 2020 08:02:50 -0700 (PDT) X-Received: by 2002:a5d:5150:: with SMTP id u16mr2332024wrt.197.1598972568491; Tue, 01 Sep 2020 08:02:48 -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: <20200901110617.GA13232@lst.de> From: Tomasz Figa Date: Tue, 1 Sep 2020 17:02:20 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT To: Christoph Hellwig Cc: alsa-devel@alsa-project.org, linux-ia64@vger.kernel.org, Linux Doc Mailing List , nouveau@lists.freedesktop.org, linux-nvme@lists.infradead.org, linux-mips@vger.kernel.org, "James E.J. Bottomley" , linux-mm@kvack.org, linux-samsung-soc , Joonyoung Shim , linux-scsi@vger.kernel.org, Kyungmin Park , Ben Skeggs , Matt Porter , Linux Media Mailing List , Tom Lendacky , Pawel Osciak , Mauro Carvalho Chehab , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Thomas Bogendoerfer , linux-parisc@vger.kernel.org, netdev@vger.kernel.org, Seung-Woo Kim , Linux Kernel Mailing List , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," 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 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. Best regards, Tomasz