Received: by 10.223.185.116 with SMTP id b49csp8030405wrg; Thu, 1 Mar 2018 15:50:37 -0800 (PST) X-Google-Smtp-Source: AG47ELtTgDiBUFhFu+ZI431Pz3E1zUD3yMubTD+t+ERe3DTTdONUBCjbDhQLeNrQjiixx9H/s9Tn X-Received: by 2002:a17:902:6041:: with SMTP id a1-v6mr3378538plt.225.1519948237064; Thu, 01 Mar 2018 15:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519948237; cv=none; d=google.com; s=arc-20160816; b=M5FPqZ5zdAvmn+H0VxuVK5/MyMHm3UZ2ZIX9Hbh3LnXi4HTRe1/770J8K7JQfSumTV yYXXWoKPJrq21tsFMla+z1kkGg4B0zV1j+1T8hOJQLj9++wlWIPJBayg0a5pX2ggE+pe eYomkiDRJEhIqskcAdqcdFxfUdqT9L78WS2TeURyIzzn2BPkTEuLK1UX7ehtO60J+I3X wGx2CaDuhzqZvt3+py/9Cd8xOKGYj8ZojHCgDrLiAMpLtjAiPBfgDu7oI+2yi3cnJ2tR RyYKmtIrzN+SLqiTKkqZrJkiEJMTujPCcqf/To7bwPchSy0mLUbJr6wF2o3wRX398Cq7 04Tw== 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:arc-authentication-results; bh=/y2Tf21O4H1/mKjtHRK1ynXnnDb3gO8jpp91RQu2zuM=; b=W2pFotZLW3bZKiHeAgszIkdOLOLZUndPjWPZfmk+/hybIW5xbWaBiPrEcejw0unwTl 3lWQhpEKna0w9Bp25VZAL4wwYJqAGX4VMmFGh7jz6pW15SfM0xAXGqlkLqw2ucAyyfnD BB4rgjzssKwhezWd+uv8vjq7RAvf2E+d6rgh0wLMzt6aiTr2v28w7SJYarYM/IzuKP6B 5Pz4z6vDov2YusR0nbwED4X+MTYwby5ONbCC66fDRCL4OlhdSMDiPQDO4EGi0UzdNIFz +g5UoMDOGLvsaThxbE3Jxkv/9NemPIQnZxlzBHFIHtq7eI9t+PO6bW8df/7lkeVZXl+R L63w== ARC-Authentication-Results: i=1; mx.google.com; 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 z3-v6si3758599plb.137.2018.03.01.15.50.20; Thu, 01 Mar 2018 15:50:37 -0800 (PST) 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; 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 S1163546AbeCAXtk (ORCPT + 99 others); Thu, 1 Mar 2018 18:49:40 -0500 Received: from mga02.intel.com ([134.134.136.20]:8196 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163110AbeCAXti (ORCPT ); Thu, 1 Mar 2018 18:49:38 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2018 15:49:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,409,1515484800"; d="scan'208";a="21414328" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by orsmga007.jf.intel.com with ESMTP; 01 Mar 2018 15:49:35 -0800 Date: Thu, 1 Mar 2018 16:49:30 -0700 From: Keith Busch To: Stephen Bates Cc: Jason Gunthorpe , Logan Gunthorpe , Sagi Grimberg , "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" , Christoph Hellwig , Jens Axboe , Bjorn Helgaas , Max Gurtovoy , Dan Williams , =?iso-8859-1?B?Suly9G1l?= Glisse , Benjamin Herrenschmidt , Alex Williamson , Steve Wise Subject: Re: [PATCH v2 10/10] nvmet: Optionally use PCI P2P memory Message-ID: <20180301234930.GG14799@localhost.localdomain> References: <20180228234006.21093-1-logang@deltatee.com> <20180228234006.21093-11-logang@deltatee.com> <749e3752-4349-0bdf-5243-3d510c2b26db@grimberg.me> <40d69074-31a8-d06a-ade9-90de7712c553@deltatee.com> <5649098f-b775-815b-8b9a-f34628873ff4@grimberg.me> <20180301184249.GI19007@ziepe.ca> <20180301224540.GL19007@ziepe.ca> <77591162-4CCD-446E-A27C-1CDB4996ACB7@raithlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77591162-4CCD-446E-A27C-1CDB4996ACB7@raithlin.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 01, 2018 at 11:00:51PM +0000, Stephen Bates wrote: > > P2P is about offloading the memory and PCI subsystem of the host CPU > and this is achieved no matter which p2p_dev is used. Even within a device, memory attributes for its various regions may not be the same. There's a meaningful difference between writing to an NVMe CMB vs PMR, and a single device could have both. We don't want to lump these all together without knowing which region you're allocating from, right?