Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp968474pxa; Wed, 19 Aug 2020 21:53:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUyeborql2Uspafz8ibsLqgPR3ZmIzIfMkGhtGQB1ZBWgADVTwuLT4HBBiP3VlY/fzBmZk X-Received: by 2002:a50:ef0a:: with SMTP id m10mr1258083eds.226.1597899222078; Wed, 19 Aug 2020 21:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597899222; cv=none; d=google.com; s=arc-20160816; b=X+Nz6115UAIYyE07R6UiPtlHza+DZrADgP9chg4rJFrmJ79SEuNSzMcnTpXA2zzOWu eTqZpOJcxW5R8JPMxk9toVBOBHdbVtB6iByavRFtV1wNQawo2hu4k5yAerqHLWkMYh7D RGesgA82g+KruqjPC4pOHUBAGUDpg6+tsx0DbuDyXpJs5mXKvDA7ueFyem+JBVtxdQBD 7xV+7kO9qScvr57nvm7N+3QPyvWeI9pvBvUF+R6twJRdENsjunpIj8wq+CcFZr0jrwYV +tiuXgWtRO1bSslIoKmRmyEz8Rzl6h4LPW06yUgO64hg5bu8g+Ycajn2fSLeMQyUSG49 P39Q== 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; bh=LTgKmQq7DWpFK2iS4EN8wHFcaMfJPiu7oul8SmRWYsY=; b=YCeCRqhl6Qucefm3PQYQ7Tr6F5MV15H+Oqu6vpVdMbzxlWXaIi5+mWjFjltKczCY2W Gc8AsuaH+bySCzNWNCa4ihnxOpmRqPeKfkjFr3UuDrWFJ7aMPOYFhBh0g1G91S344GNx Of3t2iTTDEVeTHFC6q2hexiVc0ln2aT9NRlbbQokB7O8Pe6+z5hszxykYI2qZeld67EO B5DIz+Ohflj7PDmNDwluFGT14SPwt/69LU1R/93EBSw3V74rv38w3c4gZ0JkCek+3R4L dyQaGuPJy7tuMjxDW9lDfZ0G3k5pYRSB94EbIerLTng9dJdzaO8Lzoy/eBL2iuGRU/Ny 0hlQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a20si545995ejx.257.2020.08.19.21.53.18; Wed, 19 Aug 2020 21:53:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726734AbgHTEwH (ORCPT + 99 others); Thu, 20 Aug 2020 00:52:07 -0400 Received: from verein.lst.de ([213.95.11.211]:40446 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbgHTEwH (ORCPT ); Thu, 20 Aug 2020 00:52:07 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 690FB68BEB; Thu, 20 Aug 2020 06:52:01 +0200 (CEST) Date: Thu, 20 Aug 2020 06:52:01 +0200 From: Christoph Hellwig To: Tomasz Figa Cc: Robin Murphy , Christoph Hellwig , alsa-devel@alsa-project.org, linux-ia64@vger.kernel.org, Linux Doc Mailing List , nouveau@lists.freedesktop.org, linux-nvme@lists.infradead.org, Linux Kernel Mailing List , "James E.J. Bottomley" , linux-mm@kvack.org, Marek Szyprowski , 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 , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Thomas Bogendoerfer , linux-parisc@vger.kernel.org, netdev@vger.kernel.org, Seung-Woo Kim , linux-mips@vger.kernel.org Subject: Re: [PATCH 05/28] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT Message-ID: <20200820045201.GB4570@lst.de> References: <20200819065555.1802761-1-hch@lst.de> <20200819065555.1802761-6-hch@lst.de> <62e4f4fc-c8a5-3ee8-c576-fe7178cb4356@arm.com> <2b32f1d8-16f7-3352-40a5-420993d52fb5@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 19, 2020 at 04:22:29PM +0200, Tomasz Figa wrote: > > > FWIW, I asked back in time what the plan is for non-coherent > > > allocations and it seemed like DMA_ATTR_NON_CONSISTENT and > > > dma_sync_*() was supposed to be the right thing to go with. [2] The > > > same thread also explains why dma_alloc_pages() isn't suitable for the > > > users of dma_alloc_attrs() and DMA_ATTR_NON_CONSISTENT. > > > > AFAICS even back then Christoph was implying getting rid of > > NON_CONSISTENT and *replacing* it with something streaming-API-based - > > That's not how I read his reply from the thread I pointed to, but that > might of course be my misunderstanding. Yes. Without changes like in this series just calling dma_sync_single_* will break in various cases, e.g. because dma_alloc_attrs returns memory remapped in the vmalloc space, and the dma_sync_single_* implementation implementation can't cope with vmalloc addresses.