Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2281847imm; Thu, 27 Sep 2018 10:10:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV60t4330q80oMWnWt/9BK8Pcx4mGgXw3ovAWlOgHGifUN6asEbB/I4Z5Cbu3V1QZ9lTW6X9i X-Received: by 2002:a63:ac11:: with SMTP id v17-v6mr11203178pge.196.1538068250338; Thu, 27 Sep 2018 10:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538068250; cv=none; d=google.com; s=arc-20160816; b=rxEk7dn9+F3zM2qSLbflw8m534NcLApsotghQiU1jHEhi5nwGlrCu8GjmJquMFioiy stloJsU9NL1RT8bVMlDthNHiHQ+W7Er5fBKnHQQULoY4CY2y/KTM/KJ3/YkyATLCT649 vUtDR1IsJWa4S//SDB1hmznVn7hzqsq0TjYcuhu3nFmCxznnfzkeKFF53mHkTu5ePziw //bNx4m+ASO603sz6IbdvBo+Kdc9GEvZ/28y0fww4qVCm/3sZS99gtAmg7PNET/MKhNO txgnuQT7NK8QUL5S++uF7tKjNrODErPmLESb+GzOqs5GMX5rlzBD/NF2dCANn60mYsHE nTkA== 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; bh=xFcX6rr7Aph6izdhQHwvNYM+nqzZH+Vgp8o6dbdqHl4=; b=DiZib2VH/7MjgGhdKUVRxOQ5BdGgo9MviiOaviWrUA2IaSrUJb7c96cS3UKWOfVcOP 6qTFdqM3y2QKprvvWyef5WiJEmSht1kjeDK6HptAIf3KDip2EB7CSWCprSWrNyugVNJm k+XvYdMRj8jetYASfzg3OVLyMRottf7V0YrcBUVrUnTbKI/r3EJ6PwfARghIvX/+w6wX DAK4zcloz2OigocWqZ3Al9o5tMT/K49j2rJW06VBr2Vq13t9c5PNE7GUDSiQ/4QRNzCE BJNDtzELC7ICsDrdSUk+tG6wF5/AQBoxev48/oeQ8DsqLRVVUQkIjag8qF4XBbw0lF/Y QE2g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c133-v6si2687520pfb.296.2018.09.27.10.10.34; Thu, 27 Sep 2018 10:10:50 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728730AbeI0X16 (ORCPT + 99 others); Thu, 27 Sep 2018 19:27:58 -0400 Received: from mga17.intel.com ([192.55.52.151]:19167 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727320AbeI0X16 (ORCPT ); Thu, 27 Sep 2018 19:27:58 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2018 10:08:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,311,1534834800"; d="scan'208";a="95452714" Received: from unknown (HELO localhost.localdomain) ([10.232.112.44]) by orsmga002.jf.intel.com with ESMTP; 27 Sep 2018 10:08:28 -0700 Date: Thu, 27 Sep 2018 11:10:38 -0600 From: Keith Busch 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, Jens Axboe , Christian =?iso-8859-1?Q?K=F6nig?= , Benjamin Herrenschmidt , Alex Williamson , =?iso-8859-1?B?Suly9G1l?= Glisse , Jason Gunthorpe , Bjorn Helgaas , Max Gurtovoy , Christoph Hellwig Subject: Re: [PATCH v8 10/13] nvme-pci: Add support for P2P memory in requests Message-ID: <20180927171038.GD19589@localhost.localdomain> References: <20180927165420.5290-1-logang@deltatee.com> <20180927165420.5290-11-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180927165420.5290-11-logang@deltatee.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, Sep 27, 2018 at 10:54:17AM -0600, Logan Gunthorpe wrote: > For P2P requests, we must use the pci_p2pmem_map_sg() function > instead of the dma_map_sg functions. > > With that, we can then indicate PCI_P2P support in the request queue. > For this, we create an NVME_F_PCI_P2P flag which tells the core to > set QUEUE_FLAG_PCI_P2P in the request queue. > > Signed-off-by: Logan Gunthorpe > Reviewed-by: Sagi Grimberg > Reviewed-by: Christoph Hellwig Looks good to me as well. Reviewed-by: Keith Busch