Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7916711ybn; Mon, 30 Sep 2019 23:41:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrvR2kV0Go+SdpzBcpLKeohjwS1chhI42QlGaMPsPeK+/ObIA10B4vJHw7QsOyo4igKviB X-Received: by 2002:a05:6402:2054:: with SMTP id bc20mr24697344edb.55.1569912060475; Mon, 30 Sep 2019 23:41:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569912060; cv=none; d=google.com; s=arc-20160816; b=SEuNoFgzTS22VzATfFWULdULTUp+aqPz7RTXNObEu5eFwoS6FTG5kc3kY+B5EN+SMz G1oYu30FLGoYjmgSIA1o+vHI7B9vVxyd1CD15YFO58EJ40vhexE3KJjFI2/bQs//r4GM aeZyAsX22r+vUzIvPHr9iO2RsIhXQrou3MKQ1KWPeFLaTDvt1Fv90P9BIAJgmDS7fAtJ GnJz7ftJgD9ZnLUGQvtsgmHdac2C79OvfaRlYLSa0s5ph9s6LAnQ3dDpfsFGbLdIzaDO mpWLAigexpe4P7Seyi1j5f42xLO71+iVdAbOA6vW4GitAC6KEDJ62FTF0pgYvmUAg39R CUDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1J2bXPCX7WE0H0txEjX0ivUz5quBP90hFeMgyCZKxxo=; b=RmUVKeSUYBgVF3zwuSqgifRuQBFoe7jVhKLnxFbOSjg0FGTVZjUNIqv0P3/J5saDJV gX9W0ZDktw1Q27l8+8Cba82whO5+dRVBSQLgfwBTBxG7RwBDNUNIDDmH6qwITRpxePTh 2m5jn4quUO24rFzTOHAmOVjTqg5V8j9OXa3sOTxHyttFmaBmkdJpoEEmLT443lOupkcs xyNq0XWwjZl86sR94zBsYNY2m92cE/Wsi1kkJbbQ99hBSGgQRWkSIxooAezqJhBE3q9k hrPe+bBHCQUChWu5dOE73tTLhQ/zEL/7xPsIgEzp0PF9vR3AXFcdz8nlNdwuIOuUsRcd /QAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PBu8Coen; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c48si8425693edc.169.2019.09.30.23.40.26; Mon, 30 Sep 2019 23:41:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PBu8Coen; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731923AbfJAGhq (ORCPT + 99 others); Tue, 1 Oct 2019 02:37:46 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39110 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbfJAGhq (ORCPT ); Tue, 1 Oct 2019 02:37:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1J2bXPCX7WE0H0txEjX0ivUz5quBP90hFeMgyCZKxxo=; b=PBu8CoencaxSyAddpHhtk33O1 pscNJjIe2M6BHbx5hsP0da5LBziJK9lGdykY1AKQZ+I9oApgaowj8CS7DQHxN2F956cRGedrXzu3k Lvv58vkz9vBT6yrNgCDdK+dPResg6761Wm4yLVdYa8I+PpqzTWZ8lVe+RN1as6JstbuhDMKycS6LL 0OhKiwCi8iCZNM+ifUqrk5ymys1Wo/BipAbs7jyIKFu+giaW9bXDJDZt2bO7a37D2aIHRyHUolSy2 yVCwZv/mDjrn6oRHhbvCTu1B4oY33aIUdmOBmY2XU/HkNLfUk9rJ9e1tAnd03WE8wCfraM4ssvOCX 0+rFJHt9w==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.2 #3 (Red Hat Linux)) id 1iFBn6-00035m-Fo; Tue, 01 Oct 2019 06:37:44 +0000 Date: Mon, 30 Sep 2019 23:37:44 -0700 From: Christoph Hellwig To: Nicolas Boichat Cc: Shik Chen , Linux Media Mailing List , Tomasz Figa , notify@kernel.org, Keiichi Watanabe , Ricky Liang , Mauro Carvalho Chehab , Laurent Pinchart , lkml , kieran.bingham@ideasonboard.com, Vlastimil Babka , Christoph Lameter , Christoph Hellwig Subject: Re: [PATCH] media: uvcvideo: Use streaming DMA APIs to transfer buffers Message-ID: <20191001063744.GA10402@infradead.org> References: <20190802131226.123800-1-shik@chromium.org> <20190930082310.GA1750@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190930082310.GA1750@infradead.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 30, 2019 at 01:23:10AM -0700, Christoph Hellwig wrote: > And drivers really have no business looking at the dma mask. I have > a plan for dma_alloc_pages API that could replace that cruft, but > until then please use GFP_KERNEL and let the dma subsystem bounce > buffer if needed. Can you try this series: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/dma_alloc_pages and see if it does whay you need for usb?