Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp43641pxu; Tue, 24 Nov 2020 18:03:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxL1bIOGC2aUo6xpv38/FFV79Gt8dP3gYf6n2lEj3TJUgdgj3Q7+oOdD+1lgc/A4+jMqW8 X-Received: by 2002:aa7:d4da:: with SMTP id t26mr1398858edr.134.1606269821963; Tue, 24 Nov 2020 18:03:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606269821; cv=none; d=google.com; s=arc-20160816; b=D8Nx7j7nIN4dsi2FUUu334+y4Z6hOyPQWK/SmjGwtdc5trC4Wyq9okYCBhb06rR5lM vKanAOrSvzn/Fmjr661yUIdA1L/lL8ojqnbrG8hrRGd9py4V6ukDqzmChrr9IkQs0gym H2sQwjlYwnHW5DuVcQp6gKgW6yJ+RnRxoHHcyu4PbMsp4/G4vyEdIRPQFquQLtoXzedg c/rDYKtMwpyo4KP6ItvnEups8LvqMKp1ZgRl8cDlosJYyQt323znfQGGmRjQkfw7gH2P l94zwd1Ne/KqTTHrNCfQFZG+Klm+qveu7mCyVOmRtsKRuVtnN8Xi7u40KX7LNMtWpLsp ZUUg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3ID2wmT0o5S/Txg2+1FfCKrIimVZ6vPrSARVzCuRST4=; b=dWAYsAheOV2AccK3li1ROdZxoLUT4BaNTWo4WSx1WgS/hNnJvTGHTvwvtkqT/hWlnF u8W+fzfwqXMIPfEmMlDTLt720oalTsoiNxEtVzTBQHnISEvAmnhvF4ayeADZFNIjlrUQ mpBG3+4nwUeNJIrLbK9eFvy/5O4M/YpO4fTI09BF1nCw3e34730CvOJqPGT9JejzpvxL x1n7diYlIU44Qj6vbY7BHKRHEeK59FqvocWjERDpqDUC39wvumXWYr+QW3PqlTL1ez6V Bf5VTXZY+ef98zCqsP1ZcaVzQlN3B/lijCBg92ue6E8CIXZA+FCimH1LoTmBehAufCaf O2gw== 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 cx24si330509edb.419.2020.11.24.18.03.19; Tue, 24 Nov 2020 18:03:41 -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 S1732572AbgKXLfR (ORCPT + 99 others); Tue, 24 Nov 2020 06:35:17 -0500 Received: from verein.lst.de ([213.95.11.211]:54112 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730158AbgKXLfP (ORCPT ); Tue, 24 Nov 2020 06:35:15 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 94C046736F; Tue, 24 Nov 2020 12:35:12 +0100 (CET) Date: Tue, 24 Nov 2020 12:35:12 +0100 From: Christoph Hellwig To: Ricardo Ribalda Cc: Christoph Hellwig , Mauro Carvalho Chehab , Marek Szyprowski , IOMMU DRIVERS , Joerg Roedel , Robin Murphy , Linux Doc Mailing List , Linux Kernel Mailing List , Linux Media Mailing List , Tomasz Figa Subject: Re: [PATCH] WIP! media: uvcvideo: Use dma_alloc_noncontiguos API Message-ID: <20201124113512.GA21974@lst.de> References: <20200930160917.1234225-9-hch@lst.de> <20201118142546.170621-1-ribalda@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201118142546.170621-1-ribalda@chromium.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 18, 2020 at 03:25:46PM +0100, Ricardo Ribalda wrote: > On architectures where the is no coherent caching such as ARM use the > dma_alloc_noncontiguos API and handle manually the cache flushing using > dma_sync_single(). > > With this patch on the affected architectures we can measure up to 20x > performance improvement in uvc_video_copy_data_work(). This has a bunch of crazy long lines, but otherwise looks fine to me. > > Signed-off-by: Ricardo Ribalda > --- > > This patch depends on dma_alloc_contiguous API1315351diffmboxseries How do we want to proceed? Do the media maintainers want to pick up that patch? Should I pick up the media patch in the dma-mapping tree? Can you respost a combined series to get started?