Thread (58 messages) 58 messages, 9 authors, 2018-09-11

Re: [PATCH v5 13/13] nvmet: Optionally use PCI P2P memory

From: Logan Gunthorpe <logang@deltatee.com>
Date: 2018-08-31 15:42:27
Also in: linux-nvme, linux-pci, linux-rdma, lkml, nvdimm

Thanks, for the review.

On 30/08/18 06:25 PM, Sagi Grimberg wrote:
quoted
+	if (req->port->p2p_dev) {
+		if (!pci_p2pdma_assign_provider(req->port->p2p_dev,
+						&ctrl->p2p_clients)) {
+			pr_info("peer-to-peer memory on %s is not supported\n",
+				pci_name(req->port->p2p_dev));
+			goto free_devices;
+		}
+		ctrl->p2p_dev = pci_dev_get(req->port->p2p_dev);
+	} else {
When is port->p2p_dev == NULL? a little more documentation would help 
here...
In the configfs functions, if the user enables p2p (port->use_p2pmem)
using 'auto' or 'y' then port->p2p_dev will be NULL. If the user sets a
specific p2p_dev to use, port->p2p_dev will be set to that device. I can
add a couple comments in the next version.

Logan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help