Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1418012pxa; Thu, 20 Aug 2020 10:44:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0NM8ng1L9EMpP/TFzfUCAa35z9kYVY0vmZVM3oQw9uvkvzv4pv2tEsAc/bxpdHNPTv4wZ X-Received: by 2002:a17:906:7d90:: with SMTP id v16mr4300435ejo.27.1597945451390; Thu, 20 Aug 2020 10:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597945451; cv=none; d=google.com; s=arc-20160816; b=oaQRZFQBQd05I7rzqwO3O9BcvI4SSsuxMSc+O27R/isXswVKXvBaePigdOl7L9tyln RkoLCxCOlXQTgGkvUpy4uDb8vsO6TEu6DqpbQia+UpUrnBnVmI6HAvjdglILJhITWS6d z+G+EvTkf2AQDZejV++RFA5wrlBeKxJgk/ahuTbsUkU9EB55LGBG3TzJp7pz2fonUsk0 UI4rwPcW9k47T/QxFM6+fzLdd8HGTGqNaSiAJUEyLxMi2QRc3f1gV4uxOSr8v8ZgXbrH BQdTNfO1h8G2/BmjdjjzcHyDLKeuzYtLItEKMNRgfFJDfrGpFUeG5GYEYsW9RG/aExVm goDg== 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=++DU+mGMau0wCVk26WL7BRudLdRoW/TdcNVBaFfSVeo=; b=kbFxNUl4/+lfuiDnt35+M1p/5Y3dy1u/tv9r5B9LRtphESR1jHDerRaRtAseeqLFfW 5hXzDdjjegyVmpMAUso4mcH3isuBUKWyhwkAP5U1VdPLb3/xZ9LBfrJqcgHKAyTP9Z/o ZiCB6PgOnRPtPV0OdIzwVLhGSO28iehlYWxWFSs8bCBV6OE2CtbgBAzlZWNrUMrQFp/j VC3TWDBx7K+FxSImCe/n65jNGNDqjghs+7TTLO8oCmKzLUxE7T0Hgu5lxCkB1deIdKpI jUfmiz6b6Idu4KUstQk18bVyfGCYunihE/GmwKSwFItWQgPqTaY2gsZn/eBoCQG2Q2lz 2P8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WJVp6uka; 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 bd8si1873234edb.477.2020.08.20.10.43.47; Thu, 20 Aug 2020 10:44:11 -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=WJVp6uka; 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 S1727929AbgHTRmh (ORCPT + 99 others); Thu, 20 Aug 2020 13:42:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728067AbgHTRmU (ORCPT ); Thu, 20 Aug 2020 13:42:20 -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 6A72FC061387 for ; Thu, 20 Aug 2020 10:42:18 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id b2so979208edw.5 for ; Thu, 20 Aug 2020 10:42:18 -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=++DU+mGMau0wCVk26WL7BRudLdRoW/TdcNVBaFfSVeo=; b=WJVp6ukadTpNcM9SYJpDROIRN+tD3gRH5NoPQs0+HAsQmLtJTImp5dRFMc7wGC3HgN R/lFt0vUnPt7BGWZ9GyHNRaZ0vNwnvZs2Kqg3u8nexS2ZBfKmw9OlPBaaVZioiS7BHsl YQ4r7w5vrJPUKxgqdugvjbGIbRfRLzSot++CY= 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=++DU+mGMau0wCVk26WL7BRudLdRoW/TdcNVBaFfSVeo=; b=IZEd22bpdlEhisVAjFQPaHpOtSqfTMKM9y0D4ddeXFhYyuaZJYzy2zKsCIDRBXodZr PbNZed+g8AkQyzfq8Y6Ecd9BHjClb5F0DDOu3woIBmcxvuwhxCXgdwOmi/xojQs+DfyY WGe0qqwWuVhs0hcuwmk02/bd2HPk63RkvlcbXnDllygIr74JAHqE5xj6MWUlZ5sIrgZ7 sEujS/uMWdNdG/sT/o/M+i0tyYvneucpXZpDZuU7oQiEWdq4SHovfHySXh3l6EaBF/SX A4sbUo4brMlZdr5fTdjSEAikFEk2gUVzxJUK3pR3y3gIAy18M32usqkbazHlSm99sN+D C2kw== X-Gm-Message-State: AOAM531a6NBl6lqqXwe66HRz6gZx15WQJZZUtrvvr2EnrQW10JCgJx0u YoPDQx8kKHgHb8FXny3KHceEprH+REpmcQ== X-Received: by 2002:aa7:c544:: with SMTP id s4mr3943651edr.51.1597945337308; Thu, 20 Aug 2020 10:42:17 -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 p21sm1676781edr.59.2020.08.20.10.42.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Aug 2020 10:42:17 -0700 (PDT) Received: by mail-wr1-f49.google.com with SMTP id 88so2876042wrh.3 for ; Thu, 20 Aug 2020 10:42:16 -0700 (PDT) X-Received: by 2002:adf:ec4f:: with SMTP id w15mr4013793wrn.385.1597944841643; Thu, 20 Aug 2020 10:34:01 -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> In-Reply-To: <20200820165407.GD12693@lst.de> From: Tomasz Figa Date: Thu, 20 Aug 2020 19:33:48 +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 Thu, Aug 20, 2020 at 6:54 PM Christoph Hellwig wrote: > > On Thu, Aug 20, 2020 at 12:05:29PM +0200, Tomasz Figa wrote: > > The UAPI and V4L2/videobuf2 changes are in good shape and the only > > wrong part is the use of DMA API, which was based on an earlier email > > guidance anyway, and a change to the synchronization part . I find > > conclusions like the above insulting for people who put many hours > > into designing and implementing the related functionality, given the > > complexity of the videobuf2 framework and how ill-defined the DMA API > > was, and would feel better if such could be avoided in future > > communication. > > 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. > But in general it helps to add a few more people to the Cc list for > such things that do stranger things. Especially if you think you did > it based on the advice of those people. Indeed, we should have CCed you and other DMA folks. Sergey who worked on this series is quite new to these areas of the kernel (although not to the kernel itself) and it's my fault for not explicitly letting him know to do that. Best regards, Tomasz