Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3864361pxb; Tue, 10 Nov 2020 01:55:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzEIErNBYYMMgkSr5T4aNO1RrO9OkBdhzQwjBLuMawEtQAB2S0NroUHcI/fOi7khAk2mul X-Received: by 2002:aa7:d48d:: with SMTP id b13mr19404031edr.264.1605002149127; Tue, 10 Nov 2020 01:55:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605002149; cv=none; d=google.com; s=arc-20160816; b=amQmSjtKpD4Wrqaz1UDYXTfQUw9TDJoVMlOJhZpDCB6E9INf4MfiyAL5CleSzM84Xl +mEyT4NyG7qP01M+i2lh69ETLCBOakWQ3l4lynADgHIW3yLfIOZ7poGB/7WdLYVIujwb d3tV28vVFcMVwc04iyniV1DW0/BJRIhpc7yWUBdME1fmetZzsHmpWcrNbMEyvHTw+QUz KpZVNDTxDcv2anAyJI+8Yj1cnL9sVVnE+LvhvLC6NvE4++pQC41cS0lIU6xmvcgSr4Ti XUmwmxN9FLklfkid0gfOOUh5BsiOAhAerhj+O6bACWuJGXC6gRueeciXFZrNMdlg40Cw NMOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/xvo1QegjGszfBVPbZfwcJiTRf9LyLsH4tfXgS3DTXk=; b=mZDwZYez6CW/sQDa7MBEUKxT4B9X5toUkI9ecgxsadyhBSHc+uW+UKIxm74WQlvaYh VgTMEbwxnFc8HN9CugVgxaWhj7N36pMoAXE2L2gmR0OV7iMthafVMiVk8yMs0vlcb//9 5UaHwBm7RCBONCpxTxIgrI0cXvVWxGlSEhFx42FvZ72Mg/EkuUW0T02OsTXFZ81NtiU7 Phg/S2KsSrql5cTLIEElpHDLBdsIdHjiF9/uC7xVQ8p+xdDlEoG0aMOmJJdhMDRN9+T8 6Flfsy3G4m3a7STzSazCBWJI4crMIeDY81DkPooyiZbPj7pxayqFrHuMjE45ajSaJ9q7 GyYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XBZqy3t9; 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 v9si8777115ede.143.2020.11.10.01.55.25; Tue, 10 Nov 2020 01:55:49 -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; dkim=pass header.i=@chromium.org header.s=google header.b=XBZqy3t9; 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 S1731707AbgKJJux (ORCPT + 99 others); Tue, 10 Nov 2020 04:50:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731306AbgKJJur (ORCPT ); Tue, 10 Nov 2020 04:50:47 -0500 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 A30D9C0613CF for ; Tue, 10 Nov 2020 01:50:46 -0800 (PST) Received: by mail-ed1-x543.google.com with SMTP id v22so1633092edt.9 for ; Tue, 10 Nov 2020 01:50:46 -0800 (PST) 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=/xvo1QegjGszfBVPbZfwcJiTRf9LyLsH4tfXgS3DTXk=; b=XBZqy3t9IZQRFydJbi3EOQsbNKSoGIh1pco/g0+bITyoIUkri4wfPjhNf10PvUjdHM oiUisGj+v2Bm78WVce9YT8uqvFdrkdOzLCpu67P/MAJzNpCqHb4m8FThormd6bSjouLr 54cSY+5h7nBsSNX31MZu8MmYatBGeKY3cH/a8= 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=/xvo1QegjGszfBVPbZfwcJiTRf9LyLsH4tfXgS3DTXk=; b=lgL/K5xogVvfW7PfZRx88XYw79bk0lSfQs80rJIRTWnf0wOQDCDX5QKG+bW5MSj9y4 Rtl2wJHIKY0w7kpnRHwCvF6juOLC2KV5Zx/yT3CZTH22GC/T/m+0MjMPqmN/fLynGX8d gei0hdHCyXTGbwVvtqZYm9JPE9zMBnh/+kE5o0PO0FQQpvFmkmko/fPzKCkW7J83B2Hc u9U6ongLDnwTGIDhBJdcMKehqsCgbDoGsR1cStjO/AVdduGj5/6tOduZiR2Yj1VW8tCP AjWwRZBoenfFoA1bVOKiYomYbLwQaCRcws/z9nNevbGkutaBNatQutvinMDsJP4g2sdf Upkw== X-Gm-Message-State: AOAM533fQxfLOyEMoVqSKdjPcyvFgmyGkJQSiozctBgtzIzWhm9G+hBi E7iRPJDZQsvGcVqFdngrx0fATdLLsa+q0Q== X-Received: by 2002:aa7:d408:: with SMTP id z8mr19492495edq.166.1605001845137; Tue, 10 Nov 2020 01:50:45 -0800 (PST) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com. [209.85.221.53]) by smtp.gmail.com with ESMTPSA id e2sm10193440edu.93.2020.11.10.01.50.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Nov 2020 01:50:44 -0800 (PST) Received: by mail-wr1-f53.google.com with SMTP id s8so4851364wrw.10 for ; Tue, 10 Nov 2020 01:50:44 -0800 (PST) X-Received: by 2002:adf:ed11:: with SMTP id a17mr8193482wro.197.1605001843595; Tue, 10 Nov 2020 01:50:43 -0800 (PST) MIME-Version: 1.0 References: <20200930160917.1234225-1-hch@lst.de> <20200930160917.1234225-9-hch@lst.de> <20201110092506.GA24469@lst.de> In-Reply-To: From: Tomasz Figa Date: Tue, 10 Nov 2020 18:50:32 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 8/8] WIP: add a dma_alloc_contiguous API To: Ricardo Ribalda , Christoph Hellwig , Kieran Bingham , Laurent Pinchart Cc: 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 6:33 PM Ricardo Ribalda wrote: > > Hi Christoph > > On Tue, Nov 10, 2020 at 10:25 AM Christoph Hellwig wrote: > > > > On Mon, Nov 09, 2020 at 03:53:55PM +0100, Ricardo Ribalda wrote: > > > Hi Christoph > > > > > > I have started now to give a try to your patchset. Sorry for the delay. > > > > > > For uvc I have prepared this patch: > > > https://github.com/ribalda/linux/commit/9094fe223fe38f8c8ff21366d893b43cbbdf0113 > > > > > > I have tested successfully in a x86_64 noteboot..., yes I know there > > > is no change for that platform :). > > > I am trying to get hold of an arm device that can run the latest > > > kernel from upstream. > > > > > > On the meanwhile if you could take a look to the patch to verify that > > > this the way that you expect the drivers to use your api I would > > > appreciate it > > > > This looks pretty reaosnable. > > > > Great > Thanks Christoph for taking a look quickly. > 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? Back in time Kieran (+CC) shared a patch to add extra statistics for packet processing and payload assembly, with results of various approaches summarized in a spreadsheet: https://docs.google.com/spreadsheets/d/1uPdbdVcebO9OQ0LQ8hR2LGIEySWgSnGwwhzv7LPXAlU/edit#gid=0 That and just simple CPU usage comparison would be enough. > > Thanks! > > > Note that ifdef CONFIG_DMA_NONCOHERENT in the old code doesn't actually > > work, as that option is an internal thing just for mips and sh.. In what terms it doesn't actually work? Last time I checked some platforms actually defined CONFIG_DMA_NONCOHERENT, so those would instead use the kmalloc() + dma_map() path. I don't have any background on why that was added and whether it needs to be preserved, though. Kieran, Laurent, do you have any insight? Best regards, Tomasz