Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3855366pxb; Tue, 10 Nov 2020 01:35:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsqVKK7VOTB0ylFt677pVPzSSiGqzzxDpqEnD5FxC3sb730z+Fh1go6WmrsWFN/Whp0FuZ X-Received: by 2002:a17:907:20c3:: with SMTP id qq3mr18578950ejb.274.1605000936432; Tue, 10 Nov 2020 01:35:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605000936; cv=none; d=google.com; s=arc-20160816; b=x4Yev6qB/1Qa/40QDvc5Atd92fCzrJB77CkiLobJuFw5fUqJxLN2LvsIYDlsIgDBdP WEoeFPooiWKArdcsCpaeWvFEBu9C/yybWbjZ1uZwHtonjBf+xIXKFkXd80cglgLfoY5b C+h2z/8+2dmuSjsnQWmj550ykQb/0mBvllnIEmddlM7Q6suxye2iPPLjnsjj2KzMDihP derd/CUI19osKirCuFJ0Yln1lFNaPKIIycX0SRN1dMTNYzXDt/DJb0O2sBmub6nrEJSd IWgTM3IHJVN2aDSQuYFtDUJGSlyRXvI4C0+i4z7VV9PgTsqgwuu303faQRTwaLpHJo5U 2Qxg== 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=4UkFzS0xqfoJt9doPeSUXNjV1Z9m4QzgZeqM5Nk8Yss=; b=FcFwp7M4OwXNa+ujlkiMs6+iCoMHdOgRecMQUzfhf3rzn8oRqWlA154Gyqg+WJdmzj 0oBPyvzbO2Ap3ESHI1KN2v0a+XvaUMQ9/pL2ndLuE4DEk1H6aYpUcAMMD3/1uWnxy9q2 MMlrAFl0nyAVt5YR2OQMB7D8hslz7dVjKJMfoW+ETJq63NcASZw9p83W0s+mdmQICIZe VmwP3uKTRuxz/cHJlbFDQTAhSfj5BUsFYThcWaaZsZ93wcNHijT5Jdr7EXEyyXcMEo9l rQnKUTwq+9fK8yLZfo0IY+LEQmMWVcsjtJwcec8RZ/4G7Txp89BIDSzKSsoLPivUGRIx Je5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="i7K+5/+7"; 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 cq11si8832672edb.332.2020.11.10.01.35.12; Tue, 10 Nov 2020 01:35:36 -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="i7K+5/+7"; 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 S1729386AbgKJJdW (ORCPT + 99 others); Tue, 10 Nov 2020 04:33:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbgKJJdU (ORCPT ); Tue, 10 Nov 2020 04:33:20 -0500 Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C14C0613CF for ; Tue, 10 Nov 2020 01:33:19 -0800 (PST) Received: by mail-oi1-x241.google.com with SMTP id m13so13582571oih.8 for ; Tue, 10 Nov 2020 01:33:19 -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=4UkFzS0xqfoJt9doPeSUXNjV1Z9m4QzgZeqM5Nk8Yss=; b=i7K+5/+7cLZ5ZRdhNEamXRcWw2QQ5XKCYG2d+/ImIPCzSBjpmq/0TvrywlA9n7NxpH B766buJa+ieQ3fgGJlGjHosI3xzo0781KmeChVDqeRbxFFNxJfRC7WWIFV7adexCwpx+ NTIuE0Bpoi0kHCRsaU97HNjA1Reud/62RUqaQ= 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=4UkFzS0xqfoJt9doPeSUXNjV1Z9m4QzgZeqM5Nk8Yss=; b=CYxnjn0ZD8tVoh/U7Ei7bXAs6UlXVvOOs9bdJXFMrbi1xoKFT21xQCy2bmBarf5SbV TXCiMdlDpz1yevwWorDyiRT7M4b7DC7xqilNhMBrimLYsX5rCw1dDd4clYzpaOyKMAeW F/IIilSLuDkma4HJ8hir4F5rVvVox2Tk/aJN+d3n7DoLvOHxkKYEbbd4qbeK4NFMmE+G cBF9XFXxHR26ake7k01OqRL994WLcNb5fKFl0kaiQoUXl2ub7e/aS9L3lgxT3YZi1meK 7AMWmuUW5MpBFuOEAtCJN9xL7lIzJtsTQXZ+EHQjOOp4M9kXE+Xb30rKHqFezlmaZgU6 OYcQ== X-Gm-Message-State: AOAM530FA4hTa6cNkmeHn0vdgoBpiJM/PGrCPgPJfQCuuVB1E6n6yIta dNK2e9zk0qBAUoAEl8cfUrZiSPFX3dna9xkt X-Received: by 2002:aca:ef56:: with SMTP id n83mr2179780oih.30.1605000798297; Tue, 10 Nov 2020 01:33:18 -0800 (PST) Received: from mail-oi1-f175.google.com (mail-oi1-f175.google.com. [209.85.167.175]) by smtp.gmail.com with ESMTPSA id d62sm1055541oia.6.2020.11.10.01.33.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Nov 2020 01:33:17 -0800 (PST) Received: by mail-oi1-f175.google.com with SMTP id c80so13602535oib.2 for ; Tue, 10 Nov 2020 01:33:17 -0800 (PST) X-Received: by 2002:aca:3c54:: with SMTP id j81mr551270oia.11.1605000796616; Tue, 10 Nov 2020 01:33:16 -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: <20201110092506.GA24469@lst.de> From: Ricardo Ribalda Date: Tue, 10 Nov 2020 10:33:05 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 8/8] WIP: add a dma_alloc_contiguous API To: Christoph Hellwig Cc: 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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? 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.. -- Ricardo Ribalda