Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4833929pxy; Tue, 27 Apr 2021 13:50:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhmG6Mxgri4OJPvazu0NyEAgRo1beowODR49lDRd+W79MyII4xRtCSeZtlIZOYXXmtealT X-Received: by 2002:a62:ce4a:0:b029:261:aa4e:a03c with SMTP id y71-20020a62ce4a0000b0290261aa4ea03cmr25304423pfg.19.1619556611892; Tue, 27 Apr 2021 13:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619556611; cv=none; d=google.com; s=arc-20160816; b=zEyFIv9nVZNOUviiQ/jlgb5SnC3dDmq/K+vnyrdDQioZGGzX/rkZi9UOx0k2MKBRMg Ys2vL1XJvZ6nAHLTEm9cbKDuss8Dmvm5aB7xC84Q4o+RxQ6WhuhppS4w3A8VBxG97DNd MzYKG3JqaYlkvrvQyBtOnPf4K7y+Lari9AuaKt/XBEeumxiWNs1/1W1lm9SV4lgF5fjs fA5wZgjhDbkNUL0+TYt/uvUaRDNSWyf86FzhebsaU5RQJRyDtZdquc7ws5Ih/VbnFMIk 7LQywDgTwQ+8hS9bY7aEpmW6MWMlW8VVoNXFpLLqF1/0Ifrp58jewyjgCknCmOXAvCX7 g5/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=GGoNFfJfVqo1Dt2wA+3xepQEKzGpUM+1CEyd/kxn9I4=; b=cZBQarLzHttVVmyTkvfTrrqCxGa+svQO3RWnuW8PXIbyscceef9FM+3ipGo3ivFxCh gaj0+QWjgvTAnGO82iYJH4C92Qg/RUKCnLO/pieX7ZMrxQDZsjKQvvzDTuWmm/OyG2N0 6tOWUYxpwhVkTcumT9UJSxUmK5RGo3NTzKhG5Lu/GGX9iLd5ygEvA/qqt6SkyL9C2OoD n2OEmVVUKGJJwNIPNN7n0txg1ErtP/jsMQ00NrRxt+9o3+C1pTkoLJ9q7Nl79DbP7fJ9 s814A6wbss5WDpSuXoM6NBYSt+0RRd6yJX3CeKUuQN3T6TT42W6eSzCpw3NHNQHxqlNz On8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=qEfkSh7M; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si1002911pga.523.2021.04.27.13.49.59; Tue, 27 Apr 2021 13:50:11 -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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=qEfkSh7M; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238966AbhD0Utx (ORCPT + 99 others); Tue, 27 Apr 2021 16:49:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238941AbhD0Uts (ORCPT ); Tue, 27 Apr 2021 16:49:48 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E136C061574 for ; Tue, 27 Apr 2021 13:49:04 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id y3so35310748eds.5 for ; Tue, 27 Apr 2021 13:49:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GGoNFfJfVqo1Dt2wA+3xepQEKzGpUM+1CEyd/kxn9I4=; b=qEfkSh7MGE8PVxlqCWGjjSgsiEnsnVBnvrjRNNxqQEj5HU0k4aWay+siPtJdTOW5Xf zVOpXzCXY0HakOzD/zAOFn8Rvsn7R9MMypGaIbyqQ5mvyZd62oAMQzRju3r4ZZ6Dbh4Z PGwXTw7U7ke5bt4PusVhU/FjOe6PO8GyPwyQEOdOvEKEQO2whSN6EREZEHU4BumJ0tUN wYRqkBp8E0mktosAXmG+bLKjKBN+4yGMkELK1CaFKSqtKceOXNV5kbTOZ4Y9znDBNz7U OaKb8R39/BDxfS854M5MpP4bM8rl5sKWIpgUHtqb2i2Vtr8Gvv6JoSyU7i78Aj09c75j QnXA== 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=GGoNFfJfVqo1Dt2wA+3xepQEKzGpUM+1CEyd/kxn9I4=; b=BJ+QpqWxoQl7GoGCjfCEzXaRPkEjJWyMV041O1fu7JVgcG1GJxpZACeZZr6tHrtLRg OZ0FLn3024pi3Eaf+SBdG1S0GZqKaG6ZW1EBNRV45yaYU5yJXoKlYygHYAAv8rC9g887 CkibO2iRFahlBSIclarSzyH7GrKzSnzr1CVg5z6jX5oxGZ02MUCfi8EcppozsbMGWdfj C0xfBs8Stkuj51DFe7AZaCzQa+wI5fONjw14xj9oM4Dp1unnmaP8xVm8PBIP7dE2Nbf5 f6HCRa8eA2ICjmMLSZ5lq+og+x2VB+XcNnBp3tvm8RHNx9d3sJjxLk0ndZN+bilxvcer g0nw== X-Gm-Message-State: AOAM531ipzbkxoyVhDgHff48kO3FRtz02cQFefciVgDz+jj9YffFJ9qq FzsQjIl50LLn0+J572zpkwEgIWpz1T/Kpr0ly7Spkg== X-Received: by 2002:aa7:cd52:: with SMTP id v18mr6553464edw.97.1619556543314; Tue, 27 Apr 2021 13:49:03 -0700 (PDT) MIME-Version: 1.0 References: <20210408170123.8788-1-logang@deltatee.com> <20210427192838.GP2047089@ziepe.ca> <52f14602-94bc-fa98-0b97-5f4084d808a0@nvidia.com> In-Reply-To: <52f14602-94bc-fa98-0b97-5f4084d808a0@nvidia.com> From: Dan Williams Date: Tue, 27 Apr 2021 13:48:58 -0700 Message-ID: Subject: Re: [PATCH 00/16] Add new DMA mapping operation for P2PDMA To: John Hubbard Cc: Jason Gunthorpe , Logan Gunthorpe , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, linux-pci@vger.kernel.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Stephen Bates , Christoph Hellwig , =?UTF-8?Q?Christian_K=C3=B6nig?= , Don Dutile , Matthew Wilcox , Daniel Vetter , Jakowski Andrzej , Minturn Dave B , Jason Ekstrand , Dave Hansen , Xiong Jianxin , Bjorn Helgaas , Ira Weiny , Robin Murphy Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 1:22 PM John Hubbard wrote: > > On 4/27/21 12:28 PM, Jason Gunthorpe wrote: > > On Thu, Apr 08, 2021 at 11:01:07AM -0600, Logan Gunthorpe wrote: > >> Hi, > >> > >> This patchset continues my work to to add P2PDMA support to the common > >> dma map operations. This allows for creating SGLs that have both P2PDMA > >> and regular pages which is a necessary step to allowing P2PDMA pages in > >> userspace. > >> > >> The earlier RFC[1] generated a lot of great feedback and I heard no show > >> stopping objections. Thus, I've incorporated all the feedback and have > >> decided to post this as a proper patch series with hopes of eventually > >> getting it in mainline. > >> > >> I'm happy to do a few more passes if anyone has any further feedback > >> or better ideas. > > > > For the user of the DMA API the idea seems reasonable enough, the next > > steps to integrate with pin_user_pages() seem fairly straightfoward > > too > > > > Was there no feedback on this at all? > > > > oops, I meant to review this a lot sooner, because this whole p2pdma thing is > actually very interesting and important...somehow it slipped but I'll take > a look now. Still in my queue as well behind Joao's memmap consolidation series, and a recent copy_mc_to_iter() fix series from Al.