From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E64EC433E9 for ; Mon, 1 Mar 2021 08:55:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 420C461601 for ; Mon, 1 Mar 2021 08:55:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233651AbhCAIz1 (ORCPT ); Mon, 1 Mar 2021 03:55:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233361AbhCAIyN (ORCPT ); Mon, 1 Mar 2021 03:54:13 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2018C061788; Mon, 1 Mar 2021 00:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=/y/IlBQLfgNT2S5nwStuxp6zBAlsDLYSfzk0/A7qRR4=; b=Crdvh+f2fbEBfXNlDsCHXyvPlT ZJcLBYUP+YsUw5+jCgIBYF6lr4RM4lJM81MK9aO/Gol4awhfP1xAFbDp6BRnKeTy4IvssYipAfBfC XO4SuKTVOuh4YcPbZMtdlHZdQ3pfPctiEBcvi8DpX0q4CAuTxl1F9pmZ576OR0uGXZ3te2UV8EwBg xhy5wrLGTyBla/QqmY1OuFbiH7iSNTzg41D5bk2t/TuwzDHwMofcPhuuw9AUm0LQSxNSjugMo8oTk heHmY957JH5sFQD3eYzBlIYiBzmqEuTySCwmRkDhWM1YzdzFIcgMGSDP9mZldpull582kMY1ZVF0D /+TREJqg==; Received: from [2001:4bb8:19b:e4b7:cdf9:733f:4874:8eb4] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lGeI9-00FVFN-3I; Mon, 01 Mar 2021 08:52:41 +0000 From: Christoph Hellwig To: Mauro Carvalho Chehab , Marek Szyprowski , Tomasz Figa , Ricardo Ribalda , Sergey Senozhatsky , Laurent Pinchart , iommu@lists.linux-foundation.org Cc: Robin Murphy , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: add a new dma_alloc_noncontiguous API v3 Date: Mon, 1 Mar 2021 09:52:30 +0100 Message-Id: <20210301085236.947011-1-hch@lst.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hi all, this series adds the new noncontiguous DMA allocation API requested by various media driver maintainers. Changes since v2: - rebased to Linux 5.12-rc1 - dropped one already merged patch - pass an attrs argument to dma_alloc_noncontigous - clarify the dma_vmap_noncontiguous documentation a bit - fix double assignments in uvcvideo Changes since v1: - document that flush_kernel_vmap_range and invalidate_kernel_vmap_range must be called once an allocation is mapped into KVA - add dma-debug support - remove the separate dma_handle argument, and instead create fully formed DMA mapped scatterlists - use a directional allocation in uvcvideo - call invalidate_kernel_vmap_range from uvcvideo