Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3858828pxb; Tue, 10 Nov 2020 01:43:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkb55uT1eYUapFozp59pxkuJn5olpjDBbL6Wwc+VaeW9Nf+3JQ5K6UjWzz2xu3VLZddV3V X-Received: by 2002:a50:bb25:: with SMTP id y34mr19236736ede.249.1605001415241; Tue, 10 Nov 2020 01:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605001415; cv=none; d=google.com; s=arc-20160816; b=dn0+9Fo7G5KsNtr124I27OeUTlToGt9grvE3RmrNluFd1ubaxgga/wYe6TpNueoOZU X4mb+uYHQrWFqvap5BL0XnH1O5/vM3XGCkruNUpgF98t+6WLXAMzEG3Jhxij5VYUrUCA uOKcW55tMNNqVwXSQ09SHYFm65UE6Modpa8LeJ5AUwb937xLZ18k0jVO1hN2qK6hkw/Y 4WifF1q+v//R93to1a1FV6bxhgtud4scD/tZEVj0dS+GI80XjnA13UouFtUX/BIwytr8 m7RoXUjRlHy57KPVBYbbIIbhQ5gKYmW0Ig4YsXyr/XWyxUB6BiNsFyQsQCVE4EUagXVQ CQEg== 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=43sU/YjsZhE4GzkhNGhliBADSV9hH43qdumO0vpkDvQ=; b=NgntohyMrpNzHzR6IHfA20sGttlRfzBOz5d5202Ek+djmglIrvgRb7pePGxu3/3Q3m 08GVi8p9nJGxQzArqFrbNvqNuTI5tV32SfojQh53+ta0F7jAJBmnkWlme6hbasxsYd9f 3a/Utqso3EYh3vgr62c47r5mQRRV2uThwZ7l0SHBa9/YHNt+b8xfZ8X4acyVTsQbi/jY 4CTtLg1zlCaAwffWO1aCg+jPLHdSw2L5adN9DXl9E2Qi9kUace8JeV6BgVUyKY7nS2bP af14abflLpfHgGLh1tYjGEIXddZaxR5Ye72SkGOfkoQbt4uHvs1+EuT7cENeMo08cFOD Cetg== 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 j23si8449949ejc.46.2020.11.10.01.43.12; Tue, 10 Nov 2020 01:43:35 -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 S1730242AbgKJJl1 (ORCPT + 99 others); Tue, 10 Nov 2020 04:41:27 -0500 Received: from verein.lst.de ([213.95.11.211]:35320 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726462AbgKJJl0 (ORCPT ); Tue, 10 Nov 2020 04:41:26 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 9BE796736F; Tue, 10 Nov 2020 10:41:23 +0100 (CET) Date: Tue, 10 Nov 2020 10:41:23 +0100 From: Christoph Hellwig To: Ricardo Ribalda Cc: Christoph Hellwig , Tomasz Figa , Mauro Carvalho Chehab , Marek Szyprowski , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Robin Murphy , Linux Doc Mailing List , Linux Kernel Mailing List , Linux Media Mailing List Subject: Re: [PATCH 8/8] WIP: add a dma_alloc_contiguous API Message-ID: <20201110094123.GA25672@lst.de> References: <20200930160917.1234225-1-hch@lst.de> <20200930160917.1234225-9-hch@lst.de> <20201110092506.GA24469@lst.de> 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 10:33:05AM +0100, Ricardo Ribalda wrote: > Also FYI, I managed to boot an ARM device with that tree. But I could > not test the uvc driver (it was a remote device with no usb device > attached) > > Hopefully I will be able to test it for real this week. > > Any suggestions for how to measure performance difference? I have to admit I don't know at all how uvc works. But the main problem with dma_alloc_coherent is that all access is uncached. So anything that does larger and/or many data transfers to and from it will be glacially slow. With the dma streaming API we still have to pay for cache flushes, but only before and after the transfers, and in many cases in a somewhat optimized fashion.