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=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 8F909C433E6 for ; Mon, 8 Feb 2021 11:55:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4639F64DF6 for ; Mon, 8 Feb 2021 11:55:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232109AbhBHLy7 (ORCPT ); Mon, 8 Feb 2021 06:54:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232256AbhBHLfN (ORCPT ); Mon, 8 Feb 2021 06:35:13 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCCC5C061786 for ; Mon, 8 Feb 2021 03:34:05 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id f14so24039187ejc.8 for ; Mon, 08 Feb 2021 03:34:05 -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=SIdoO/BXrCF5ZGx1sncTZthErRH1ESME+fQ4iZ40G4Y=; b=R4FfWcgnRp7kfMDn8OHGmLFT1VfRqhYLNtKbqtkWdlb75NiARoNYeuQ8plgw69PUvK SrMHBkIe3taDYqbOgv3c7/zQ+MxGUpsl5Jfwyzx4OaASuL8ztU0r+HTymMJR6J0YvC16 zIfDdvWJe+eVik/zwfB7GuuftSM9ixQbVyhf0= 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=SIdoO/BXrCF5ZGx1sncTZthErRH1ESME+fQ4iZ40G4Y=; b=DYODFsTRueBRuKpk7N0g3gAmn0961mZVlTyy1mZBud5Cr9EdvH6V5y/Ye/W49cbrfQ NaSPFjHveSr+yH9xCrj+1y+w5KU8qVeAW50aveeXJQAeuy5C8PxaePoF4Tw2kdbzv/qy jYYpjIyCZdJzIqwhOHJgF+fUKabWfqA/hg5IJYd6oOZ8EHO7SFGNuyAeqD4iJGROCyiM m42ZbIa+OiPkuzPTi/b2e6qpWsjlxCB5dbrzGuB/mmMfzuB9gClaxLeonLbaRCY8ww/n 7vwZ+OEipa0wzeYoupdtQER1UceGhYA++72U61dfCC9zCB70s+ksup91dDVjU1nWSZ+F qvgw== X-Gm-Message-State: AOAM530brQhos0dPpj1HnjLtEUhmTj0IRIJkgoSdUpB6YHdz6jVA09jt cxVG1w9WYKZF9ShXWw4ui2zaDj3BAcDskg== X-Google-Smtp-Source: ABdhPJzP3iP8rHJpGjLJOmKy9wfjwqTs9XWloUJ+jqqHAbZK5sqDllVJT6+ZFj9ebkzA5kt2+/mNHQ== X-Received: by 2002:a17:906:b001:: with SMTP id v1mr16423006ejy.217.1612784044140; Mon, 08 Feb 2021 03:34:04 -0800 (PST) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com. [209.85.221.48]) by smtp.gmail.com with ESMTPSA id i13sm8421683ejj.2.2021.02.08.03.34.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Feb 2021 03:34:03 -0800 (PST) Received: by mail-wr1-f48.google.com with SMTP id g6so3657922wrs.11 for ; Mon, 08 Feb 2021 03:34:03 -0800 (PST) X-Received: by 2002:a5d:6404:: with SMTP id z4mr6111438wru.103.1612784042646; Mon, 08 Feb 2021 03:34:02 -0800 (PST) MIME-Version: 1.0 References: <20210202095110.1215346-1-hch@lst.de> <20210207184855.GA27553@lst.de> In-Reply-To: <20210207184855.GA27553@lst.de> From: Tomasz Figa Date: Mon, 8 Feb 2021 20:33:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: add a new dma_alloc_noncontiguous API v2 To: Christoph Hellwig Cc: Mauro Carvalho Chehab , Marek Szyprowski , Ricardo Ribalda , Sergey Senozhatsky , "open list:IOMMU DRIVERS" , Linux Media Mailing List , Robin Murphy , Linux Kernel Mailing List , Linux Doc Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Mon, Feb 8, 2021 at 3:49 AM Christoph Hellwig wrote: > > Any comments? > Sorry for the delay. The whole series looks very good to me. Thanks a lot. Reviewed-by: Tomasz Figa Best regards, Tomasz > On Tue, Feb 02, 2021 at 10:51:03AM +0100, Christoph Hellwig wrote: > > Hi all, > > > > this series adds the new noncontiguous DMA allocation API requested by > > various media driver maintainers. > > > > 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 > > _______________________________________________ > > iommu mailing list > > iommu@lists.linux-foundation.org > > https://lists.linuxfoundation.org/mailman/listinfo/iommu > ---end quoted text--- 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=-8.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 CEBEFC433DB for ; Mon, 8 Feb 2021 11:34:13 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 352F464E9C for ; Mon, 8 Feb 2021 11:34:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 352F464E9C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C3EF987080; Mon, 8 Feb 2021 11:34:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1AWpg53BEBMI; Mon, 8 Feb 2021 11:34:12 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 4FC9087072; Mon, 8 Feb 2021 11:34:12 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 36787C0174; Mon, 8 Feb 2021 11:34:12 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 79A84C013A for ; Mon, 8 Feb 2021 11:34:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5A0958707A for ; Mon, 8 Feb 2021 11:34:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r0Uhw53cc2tI for ; Mon, 8 Feb 2021 11:34:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by hemlock.osuosl.org (Postfix) with ESMTPS id 56A4E87072 for ; Mon, 8 Feb 2021 11:34:06 +0000 (UTC) Received: by mail-ed1-f54.google.com with SMTP id z22so17580905edb.9 for ; Mon, 08 Feb 2021 03:34:06 -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=SIdoO/BXrCF5ZGx1sncTZthErRH1ESME+fQ4iZ40G4Y=; b=R4FfWcgnRp7kfMDn8OHGmLFT1VfRqhYLNtKbqtkWdlb75NiARoNYeuQ8plgw69PUvK SrMHBkIe3taDYqbOgv3c7/zQ+MxGUpsl5Jfwyzx4OaASuL8ztU0r+HTymMJR6J0YvC16 zIfDdvWJe+eVik/zwfB7GuuftSM9ixQbVyhf0= 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=SIdoO/BXrCF5ZGx1sncTZthErRH1ESME+fQ4iZ40G4Y=; b=rnU9M3Qrf7qwEfNGEKQ63PkJA4AltP9P/xx6KClMS4Qdq6H35clcV/8UkjX2qIdp7j GlNiNx/Cc5BgPK0RnOppWA5M1jnyQOOGrAE+/7YBdN5hdiljYmAAN/3gZVLJvs6YaUlP YI7c7uhgAQdnWYHBaGCd1bBBRcueCo6pUB66OPKWSN2JnQBPijGjRm9MNol1zxKn+Ad2 v1KxmdLUuAECgIbEd7Ln9cRLVeivuLWMn9H4QvNZIDNX7vGjPBhMTu4o2scOn/w74WKB SvBWEnMPKSxwWXnFvnzmu3fLd2hmeItfU+p25HE5/4FJOf8d+Q/3MBlqTqR3bEg3CO8m CHUQ== X-Gm-Message-State: AOAM532wAB1mEY2G35BE/kN6WdPrgOB1WIhbhi72C+2zxMr/G2J/wpqj dFSUrDZzp7ddd85iX720pUwRUeNmm7+wMQ== X-Google-Smtp-Source: ABdhPJzit1MX/K9z0mW9Bj2ih5S8DAp4+je5L1m24nTxq88pMnehlv9ii5sIzzfZQeIuCrnBrxp7uQ== X-Received: by 2002:a05:6402:104b:: with SMTP id e11mr13798190edu.367.1612784044313; Mon, 08 Feb 2021 03:34:04 -0800 (PST) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com. [209.85.221.53]) by smtp.gmail.com with ESMTPSA id n5sm9339478edw.7.2021.02.08.03.34.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Feb 2021 03:34:03 -0800 (PST) Received: by mail-wr1-f53.google.com with SMTP id v14so1072778wro.7 for ; Mon, 08 Feb 2021 03:34:03 -0800 (PST) X-Received: by 2002:a5d:6404:: with SMTP id z4mr6111438wru.103.1612784042646; Mon, 08 Feb 2021 03:34:02 -0800 (PST) MIME-Version: 1.0 References: <20210202095110.1215346-1-hch@lst.de> <20210207184855.GA27553@lst.de> In-Reply-To: <20210207184855.GA27553@lst.de> From: Tomasz Figa Date: Mon, 8 Feb 2021 20:33:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: add a new dma_alloc_noncontiguous API v2 To: Christoph Hellwig Cc: Mauro Carvalho Chehab , Linux Doc Mailing List , Linux Kernel Mailing List , "open list:IOMMU DRIVERS" , Ricardo Ribalda , Sergey Senozhatsky , Robin Murphy , Linux Media Mailing List X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Hi Christoph, On Mon, Feb 8, 2021 at 3:49 AM Christoph Hellwig wrote: > > Any comments? > Sorry for the delay. The whole series looks very good to me. Thanks a lot. Reviewed-by: Tomasz Figa Best regards, Tomasz > On Tue, Feb 02, 2021 at 10:51:03AM +0100, Christoph Hellwig wrote: > > Hi all, > > > > this series adds the new noncontiguous DMA allocation API requested by > > various media driver maintainers. > > > > 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 > > _______________________________________________ > > iommu mailing list > > iommu@lists.linux-foundation.org > > https://lists.linuxfoundation.org/mailman/listinfo/iommu > ---end quoted text--- _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu