Received: by 10.192.165.148 with SMTP id m20csp3647765imm; Mon, 7 May 2018 16:26:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZodmHK/joqXJWFTtJUPyv550o7TJUclUH/uGJhKdL17ZhtVI4YkmQ/WhEbbf7gc1jov7UWr X-Received: by 2002:a17:902:b485:: with SMTP id y5-v6mr7388666plr.381.1525735607021; Mon, 07 May 2018 16:26:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525735606; cv=none; d=google.com; s=arc-20160816; b=gGFWZyaxADbaiPkH7EKon0RWA3SBIwkGBbU6YTh/akZV1V7TfT/Nl3FqdcEBdVDZah vWQsv4aKsVtiK9jnQF4vaT46HmKT5Dp1ftgPL19z+KF5WdH2PiawHtLRcM5Z8IizUlZN 2f/6mRp8iRo0fNcz9+x2DTBSaPDIT+59AkBMYCbQuVEIZy+v72EqOOKCn/8ALbgNRigM sgc6jRPMvg6h13Vq8zh4eqeoul1Qwxn/WfYtcuzxPwQGc2gpLaZff6YWgqQvVpjLqQxX RIbJgsoVwxCryjp4OvMxWOC0mpS6nAP4N1RPF+FfFCpW3y32KO/sh4X1zLrFeUSsiamS K5mw== 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:arc-authentication-results; bh=ItIZzX8aHVRBEK7TdjVLs0gl/hs0+THuSDjPjVj9hSI=; b=ajI4Js+0nKD6Cu0h2HBqxm6x0t2wnrdvlLH5Mtv22tIV2e0pcAI0LpVnr9d6VHugVf 8y3Al5/DP9FK+BKDMRruytrDyUpk79zcKX1Hp4VEWZKnPnc0vK+O+798z45foVrFSWxN fs3akOpIQYssdh/5KL2pdcKYP98Jlt3tzjAb8a6qrsZVvvWzsU/RJcBcBTkxGSqQ6mXp MgCPwvTAYwc8NkOWVtebER/Kh7cG0jkmEF2dfk/gkh3NWQFGdGH20d7X7QAx+qmbWxCe MDm/+VlQ8ScwvboNKkwINsPhxQZ/zJALCgmrjnmWs/VK4wQVzcm4khUjUFWseCfuUQCm Ioow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qUawXvfH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si22109781pfh.271.2018.05.07.16.26.31; Mon, 07 May 2018 16:26:46 -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=pass header.i=@kernel.org header.s=default header.b=qUawXvfH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753459AbeEGXXu (ORCPT + 99 others); Mon, 7 May 2018 19:23:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:57210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752719AbeEGXXs (ORCPT ); Mon, 7 May 2018 19:23:48 -0400 Received: from localhost (unknown [69.71.5.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 83EEA2173F; Mon, 7 May 2018 23:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525735427; bh=DFD6kAqPBEYP+TmVfKzUqu40efqXgojSnqMGKU8EWmA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qUawXvfHanMOsDNb+D57wdoqSUX+BsSoZsKY1CJTl4dXv06R2lf5/yMq8mKouI7Jy A8dWPdtEdcDFB70f8u2NQdKLIvTAlmNShz81ju5PPoOSvbYQfn/R6IiOFuTNP2cfi4 QK5D20UISxN/JecasZ//AaFRGS5A9lJO2aVKkrSE= Date: Mon, 7 May 2018 18:23:46 -0500 From: Bjorn Helgaas To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, linux-nvdimm@lists.01.org, linux-block@vger.kernel.org, Stephen Bates , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , =?iso-8859-1?B?Suly9G1l?= Glisse , Benjamin Herrenschmidt , Alex Williamson , Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: [PATCH v4 00/14] Copy Offload in NVMe Fabrics with P2P PCI Memory Message-ID: <20180507232346.GI161390@bhelgaas-glaptop.roam.corp.google.com> References: <20180423233046.21476-1-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180423233046.21476-1-logang@deltatee.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2018 at 05:30:32PM -0600, Logan Gunthorpe wrote: > Hi Everyone, > > Here's v4 of our series to introduce P2P based copy offload to NVMe > fabrics. This version has been rebased onto v4.17-rc2. A git repo > is here: > > https://github.com/sbates130272/linux-p2pmem pci-p2p-v4 > ... > Logan Gunthorpe (14): > PCI/P2PDMA: Support peer-to-peer memory > PCI/P2PDMA: Add sysfs group to display p2pmem stats > PCI/P2PDMA: Add PCI p2pmem dma mappings to adjust the bus offset > PCI/P2PDMA: Clear ACS P2P flags for all devices behind switches > docs-rst: Add a new directory for PCI documentation > PCI/P2PDMA: Add P2P DMA driver writer's documentation > block: Introduce PCI P2P flags for request and request queue > IB/core: Ensure we map P2P memory correctly in > rdma_rw_ctx_[init|destroy]() > nvme-pci: Use PCI p2pmem subsystem to manage the CMB > nvme-pci: Add support for P2P memory in requests > nvme-pci: Add a quirk for a pseudo CMB > nvmet: Introduce helper functions to allocate and free request SGLs > nvmet-rdma: Use new SGL alloc/free helper for requests > nvmet: Optionally use PCI P2P memory > > Documentation/ABI/testing/sysfs-bus-pci | 25 + > Documentation/PCI/index.rst | 14 + > Documentation/driver-api/index.rst | 2 +- > Documentation/driver-api/pci/index.rst | 20 + > Documentation/driver-api/pci/p2pdma.rst | 166 ++++++ > Documentation/driver-api/{ => pci}/pci.rst | 0 > Documentation/index.rst | 3 +- > block/blk-core.c | 3 + > drivers/infiniband/core/rw.c | 13 +- > drivers/nvme/host/core.c | 4 + > drivers/nvme/host/nvme.h | 8 + > drivers/nvme/host/pci.c | 118 +++-- > drivers/nvme/target/configfs.c | 67 +++ > drivers/nvme/target/core.c | 143 ++++- > drivers/nvme/target/io-cmd.c | 3 + > drivers/nvme/target/nvmet.h | 15 + > drivers/nvme/target/rdma.c | 22 +- > drivers/pci/Kconfig | 26 + > drivers/pci/Makefile | 1 + > drivers/pci/p2pdma.c | 814 +++++++++++++++++++++++++++++ > drivers/pci/pci.c | 6 + > include/linux/blk_types.h | 18 +- > include/linux/blkdev.h | 3 + > include/linux/memremap.h | 19 + > include/linux/pci-p2pdma.h | 118 +++++ > include/linux/pci.h | 4 + > 26 files changed, 1579 insertions(+), 56 deletions(-) > create mode 100644 Documentation/PCI/index.rst > create mode 100644 Documentation/driver-api/pci/index.rst > create mode 100644 Documentation/driver-api/pci/p2pdma.rst > rename Documentation/driver-api/{ => pci}/pci.rst (100%) > create mode 100644 drivers/pci/p2pdma.c > create mode 100644 include/linux/pci-p2pdma.h How do you envison merging this? There's a big chunk in drivers/pci, but really no opportunity for conflicts there, and there's significant stuff in block and nvme that I don't really want to merge. If Alex is OK with the ACS situation, I can ack the PCI parts and you could merge it elsewhere? Bjorn