summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2018-12-01 12:31:34 -0500
committerBjorn Helgaas <bhelgaas@google.com>2018-12-11 08:53:07 -0500
commitfcf9ab35ba418edbab3ba0882ff230f82b16403b (patch)
tree360f3c391f957f2a71d24076de9b755c9a9eb7e5 /Documentation
parent651022382c7f8da46cb4872a545ee1da6d097d2a (diff)
PCI/P2PDMA: Clean up documentation and kernel-doc
Fix typos, spellos, and grammar in p2pdma.rst and p2pdma.c. Fix return value(s) in function pci_p2pmem_alloc_sgl(). Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Logan Gunthorpe <logang@deltatee.com> Cc: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/driver-api/pci/p2pdma.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/driver-api/pci/p2pdma.rst b/Documentation/driver-api/pci/p2pdma.rst
index 4c577fa7bef9..6d85b5a2598d 100644
--- a/Documentation/driver-api/pci/p2pdma.rst
+++ b/Documentation/driver-api/pci/p2pdma.rst
@@ -49,7 +49,7 @@ For example, in the NVMe Target Copy Offload implementation:
49 in that it exposes any CMB (Controller Memory Buffer) as a P2P memory 49 in that it exposes any CMB (Controller Memory Buffer) as a P2P memory
50 resource (provider), it accepts P2P memory pages as buffers in requests 50 resource (provider), it accepts P2P memory pages as buffers in requests
51 to be used directly (client) and it can also make use of the CMB as 51 to be used directly (client) and it can also make use of the CMB as
52 submission queue entries (orchastrator). 52 submission queue entries (orchestrator).
53* The RDMA driver is a client in this arrangement so that an RNIC 53* The RDMA driver is a client in this arrangement so that an RNIC
54 can DMA directly to the memory exposed by the NVMe device. 54 can DMA directly to the memory exposed by the NVMe device.
55* The NVMe Target driver (nvmet) can orchestrate the data from the RNIC 55* The NVMe Target driver (nvmet) can orchestrate the data from the RNIC
@@ -111,7 +111,7 @@ that's compatible with all clients using :c:func:`pci_p2pmem_find()`.
111If more than one provider is supported, the one nearest to all the clients will 111If more than one provider is supported, the one nearest to all the clients will
112be chosen first. If more than one provider is an equal distance away, the 112be chosen first. If more than one provider is an equal distance away, the
113one returned will be chosen at random (it is not an arbitrary but 113one returned will be chosen at random (it is not an arbitrary but
114truely random). This function returns the PCI device to use for the provider 114truly random). This function returns the PCI device to use for the provider
115with a reference taken and therefore when it's no longer needed it should be 115with a reference taken and therefore when it's no longer needed it should be
116returned with pci_dev_put(). 116returned with pci_dev_put().
117 117