Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753367AbeADV7s (ORCPT + 1 other); Thu, 4 Jan 2018 16:59:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:43846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753119AbeADV7q (ORCPT ); Thu, 4 Jan 2018 16:59:46 -0500 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 172722188B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Thu, 4 Jan 2018 15:59:42 -0600 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 Subject: Re: [PATCH 01/12] pci-p2p: Support peer to peer memory Message-ID: <20180104215941.GG189897@bhelgaas-glaptop.roam.corp.google.com> References: <20180104190137.7654-1-logang@deltatee.com> <20180104190137.7654-2-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180104190137.7654-2-logang@deltatee.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, Jan 04, 2018 at 12:01:26PM -0700, Logan Gunthorpe wrote: > Some PCI devices may have memory mapped in a BAR space that's > intended for use in Peer-to-Peer transactions. In order to enable > such transactions the memory must be registered with ZONE_DEVICE pages > so it can be used by DMA interfaces in existing drivers. > ... > + * pci_p2pmem_alloc_sgl - allocate p2p memory in an sgl > + * @pdev: the device to allocate memory from > + * @sgl: the allocated sgl > + * @nents: the number of sgs in the list > + * @length: number of bytes to allocate Your later patches use "SGL" in English text. If that's the conventional capitalization, please use it here, too.