Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp91644pxu; Tue, 1 Dec 2020 06:52:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRFqUiRSxwWMC6scItwTkf8aFp4ctf5YK/evf5QdQZOXvF9qPOCvOT0K5RmyXERqmJ0n8Z X-Received: by 2002:a17:906:175b:: with SMTP id d27mr3437362eje.260.1606834338468; Tue, 01 Dec 2020 06:52:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606834338; cv=none; d=google.com; s=arc-20160816; b=QL2xEiOr4IuJlRbMRITdMsbqI4Bbjwyp6Tk+X/3yvK4d/WEcKWsod5r/ndWXs8B/4q k+J7v25WBdqTUNjc0zOts+NQhYAEM4L8yYGezSdo0kPeg2o9q0DRWg3T6JruKkoZHolo Nhnx0vABbSUrYSVqj65A7MR1BxP/y0Ylt43QCh2hdsQF4R0DvkwfhXLYKW1b/RB6Jmg3 ynp6h86Fqk5qEyPwh3idI2EyGv8WCsxdKRhrUOmJyauIgPA7EKlf8AjdCUmjD4lvVzKV fgUTRE7R+y46a7YkVHzvSrjr3alFqjqkygjF/40FDzRGOww+eEBY70vWUWv+4JVRynww ytnw== 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=oXWiK00WTq+aMsQIcMTcym1N7JvRoJ9qspjXdkD559s=; b=qoFGx7cmVTXcxqofEDmPClR8ubX65jsDgQ/DUxfpjPombXclYZMYuMxfjNlMJAdwM+ kazspNF9C4L2hDQVW0Xk0DQLubU0meLtW5k+o0TbAOtz97aTLEb4Ow4KOWrTDxUme12X xvgsTnx6zQfQT0OV+wlk8QmLleO0mZLSLax3I+m9uXHhQuC2L8A+9CE5WzoWO5t61A2O 8axayEXwh9bbClZWDOPWj/Fp6SCJQ4eh+CalLUoRCw8gTrrZ5Arka//YAMbcnm6jm/3u bqE6gNJyg6qynBW0KRPrLC4UyPJ97Rpwpg6KVGl45uVuyuwuu0jowJVxyQsCg+Hr5Uc3 Qj6g== 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 s16si1255152edt.488.2020.12.01.06.51.55; Tue, 01 Dec 2020 06:52:18 -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 S2391731AbgLAOuB (ORCPT + 99 others); Tue, 1 Dec 2020 09:50:01 -0500 Received: from verein.lst.de ([213.95.11.211]:50170 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389038AbgLAOuA (ORCPT ); Tue, 1 Dec 2020 09:50:00 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 8C8EB67373; Tue, 1 Dec 2020 15:49:16 +0100 (CET) Date: Tue, 1 Dec 2020 15:49:16 +0100 From: Christoph Hellwig To: Sergey Senozhatsky Cc: Christoph Hellwig , Ricardo Ribalda , Marek Szyprowski , Robin Murphy , Mauro Carvalho Chehab , IOMMU DRIVERS , Joerg Roedel , Linux Doc Mailing List , Linux Kernel Mailing List , Linux Media Mailing List , Tomasz Figa , Sergey Senozhatsky Subject: Re: [PATCH v3 5/6] media: uvcvideo: Use dma_alloc_noncontiguos API Message-ID: <20201201144916.GA14682@lst.de> References: <20201125221917.150463-1-ribalda@chromium.org> <20201130083410.GD32234@lst.de> <20201201033658.GE3723071@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201201033658.GE3723071@google.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 01, 2020 at 12:36:58PM +0900, Sergey Senozhatsky wrote: > Not that I have any sound experience in this area, but the helper > probably won't hurt. Do you also plan to add vmap() to that helper > or dma_alloc_noncontiguous()/sg_alloc_table_from_pages() only? Yes, I think adding the vmap is useful, and it probably makes sense to do that unconditionally. I'd also include the fallback to dma_alloc_pages when the noncontig version isn't supported in the helper.