Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp370029pxu; Wed, 7 Oct 2020 05:28:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylSBMkSex/z4Vw+qVtdXabM0+wuK2uMSgiNdgK9xdsn33Ly3+P2pLkb8JVATwen/ptoBhm X-Received: by 2002:a05:6402:3184:: with SMTP id di4mr3371716edb.362.1602073713965; Wed, 07 Oct 2020 05:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602073713; cv=none; d=google.com; s=arc-20160816; b=wL6k5brTjBJg/yGMNF3LlGbkoHUHqqj+1PGhcFFO29uddm/z2596+FzJqKq9lH6oDx C/Vy7uzvWl7WLpkYTmxnzBfg+P8iN/wOgTENUW5CYfmTYkmSBKilGKXcl0mGQ7KYFVHg QF7Y7SJO8bIBnnExPSKvLB8q0Min2e5l/I3g4qhIrVB8zsIakB3jso7zY9tmzJ6som2h M/L48Y9F/CtIV70k532ddDMshTCx6wAqc9Lj0VJMiSJUKGv3CVS3rG8grssa84jiNvod 6f2XGm7O4qVLRhDyHk+RULR50B5c0/7OgnI9HdWnmjNU5hVfk7LnyPb4dGpwyQBnequj yNJA== 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=NYESZDMFvVZZzlVGU5tcKlcigBj6MHqzjrqat/ABlm4=; b=Lpi4sSMJdN4+j0DKko7MgAMf8NTzQEY2wd+N8bOk0G01h0GG+SzB9klVXsJvAvrUbP ySUiZ9zMBvlTn5512GUTpvdTHGpV9j3I1FQcyr+Pzy90fHe5Ng6UzyA3IxUMxl2pX/1j h8k114lSrVXWFgYSWZrZp5fPqsyTwQzgS4Szir0pWTGghZeMrTDNwpLnlv6bQ1nKfMYA gETsutYogrT0sgO/oY8Gq3iC4LIpn3qUeKoGKr4efXUFRRLYzxZIjABLvgCgLoXYyeNr tB+0f1oSItrsUBNfWvxexnG6DjRObYPhwgRGeKetL+G756mUUjCZx4jlgZ0HvkFI9Sj/ gOVw== 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 x99si1415199ede.160.2020.10.07.05.28.10; Wed, 07 Oct 2020 05:28:33 -0700 (PDT) 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 S1728337AbgJGMYY (ORCPT + 99 others); Wed, 7 Oct 2020 08:24:24 -0400 Received: from verein.lst.de ([213.95.11.211]:37192 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728214AbgJGMYY (ORCPT ); Wed, 7 Oct 2020 08:24:24 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 8D0B768B02; Wed, 7 Oct 2020 14:24:19 +0200 (CEST) Date: Wed, 7 Oct 2020 14:24:18 +0200 From: Christoph Hellwig To: Tomasz Figa Cc: Christoph Hellwig , Sergey Senozhatsky , Mauro Carvalho Chehab , Marek Szyprowski , "open list:IOMMU DRIVERS" , 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: <20201007122418.GA31318@lst.de> References: <20200930160917.1234225-1-hch@lst.de> <20200930160917.1234225-9-hch@lst.de> <20201002175040.GA1131147@chromium.org> <20201005082629.GA13850@lst.de> <20201007062150.GA10601@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 Wed, Oct 07, 2020 at 02:21:43PM +0200, Tomasz Figa wrote: > My initial feeling is that it should work, but we'll give you a > definitive answer once we prototype it. :) > > We might actually give it a try in the USB HCD subsystem as well, to > implement usb_alloc_noncoherent(), as an optimization for drivers > which have to perform multiple random accesses to the URB buffers. I > think you might recall discussing this by the way of the pwc and > uvcvideo camera drivers. Yes. I guess for usb the dma_alloc_noncoherent as-is in linux-next might be better. So if you have the cycles please prototype it either way, although for that we'd also need at least a mmap_noncoherent method, and probaby a get_sgtable_noncoherent one.