Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3350087pxu; Mon, 30 Nov 2020 00:34:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMqmhtICZpzWzWH5WxFwScZzYDPenlS+cjai8rwGltnWjVvUnT6YxVhVkzg+vukzZBcip9 X-Received: by 2002:a17:906:3ec8:: with SMTP id d8mr19762636ejj.32.1606725269425; Mon, 30 Nov 2020 00:34:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606725269; cv=none; d=google.com; s=arc-20160816; b=fSdsViZ7gXL1gzBOId23f3kshRRypErJDKkQCJ9UUGDozGP9mO3BgBZotbzNPMGY94 UaviKFt7okbEwB5G+bqqKdybbqotgTxHc2ZbgoTxxbHzTEjwedcbjH5jIihjRnhPCu9Z iAaYJRh91sHIrVWdjHf3yCblPmo77kP3wfTYyqJbjrq3OR8hPecAS13IPy1WoOyOifyz Rt/XwVlbDJPDPvJKSsrMj+itAUTujqD7LpqdY4jnNjinRYR6aRteRqF6XHuBDLSGH4Q6 JN6yMCq03Aid8tT50Xq3cO5FRehBUKmZ3wtFxTZjPgFE3Tx7cNRMG78RkHeLzN5nJAT7 zvYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XwT5hX4ElwYYJU5+JNys0s1mvL5lhK260VnZRXx6/9s=; b=q4lFpbycmJo8hw9bcPVkihw+SxSzH9ZlWfTcWp5ERzGXjHL9SQXoNjc2ci6iT+IQzq IE9wC4Sy3a95bGd2EgFipDHcGaoA4gYRJdeO3z8qIh950pcOPXtXnVil/unkN9s4KWQE OslZWTBZ4gT5hPEnlrNbqyirEMl5EDokmLJjFSOcHxMuWF+Y7UfOyYl8qhx8KvnkF3fW OAuWyMzdTYbrC1BIUrMu4woSqIYluAQKSf+k8jEEQOovdY6FjtuFPC3+0uVJiycbrOjY ROqueKV537JyFahrBv3QVTNIyf7zM40JqzK7ANAX1eaBHD2Qs3BFfYq711+pt03o3pXs Q49w== 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 m14si10197484ejr.448.2020.11.30.00.34.06; Mon, 30 Nov 2020 00:34:29 -0800 (PST) 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 S1727352AbgK3Ice (ORCPT + 99 others); Mon, 30 Nov 2020 03:32:34 -0500 Received: from verein.lst.de ([213.95.11.211]:43381 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbgK3Ice (ORCPT ); Mon, 30 Nov 2020 03:32:34 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 1D34C68AFE; Mon, 30 Nov 2020 09:31:51 +0100 (CET) Date: Mon, 30 Nov 2020 09:31:50 +0100 From: Christoph Hellwig To: Sergey Senozhatsky Cc: Ricardo Ribalda , Marek Szyprowski , Robin Murphy , Christoph Hellwig , Mauro Carvalho Chehab , IOMMU DRIVERS , Joerg Roedel , Linux Doc Mailing List , Linux Kernel Mailing List , Linux Media Mailing List , Tomasz Figa , Sergey Senozhatsky Subject: Re: [PATCH v3 5/6] media: uvcvideo: Use dma_alloc_noncontiguos API Message-ID: <20201130083150.GC32234@lst.de> References: <20201125221917.150463-1-ribalda@chromium.org> <20201126114450.GB3723071@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201126114450.GB3723071@google.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 26, 2020 at 08:44:50PM +0900, Sergey Senozhatsky wrote: > > + uvc_urb->buffer = vmap(uvc_urb->pages, > > + PAGE_ALIGN(stream->urb_size) >> PAGE_SHIFT, > > + VM_DMA_COHERENT, PAGE_KERNEL); > > This is not related to Ricardo's patch, just a side note: > > I think VM_DMA_COHERENT needs to be renamed. I found it a bit confusing > to see DMA_COHERENT mapping being dma_sync-ed. It turned out that the > flag has different meaning. s/renamed/removed/. This is a normal VM_MAP mapping as far as the core vmalloc/vmap code is concerned. VM_DMA_COHERENT is only for internal use in the core DMA code.