Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Controller memory buffer - P2PDMA question
@ 2019-04-23 17:55 Heitke, Kenneth
  2019-04-23 18:02 ` Keith Busch
  0 siblings, 1 reply; 3+ messages in thread
From: Heitke, Kenneth @ 2019-04-23 17:55 UTC (permalink / raw)


For the controller memory buffer, the read-data (RDS) and write-data 
(WDS) support isn't required to symmetrical since there are individual 
bits for each. The code below requires that both be supported before the 
P2P memory will be published

nvme_map_cmb:nvme/host/pci.c

         if ((dev->cmbsz & (NVME_CMBSZ_WDS | NVME_CMBSZ_RDS)) ==
                         (NVME_CMBSZ_WDS | NVME_CMBSZ_RDS))
                 pci_p2pmem_publish(pdev, true);

Would it make sense for P2PDMA to support the idea of directionality? 
Should a device be able to publish its controller memory buffer just for 
TO_DEVICE and/or FROM_DEVICE?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-23 18:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-23 17:55 Controller memory buffer - P2PDMA question Heitke, Kenneth
2019-04-23 18:02 ` Keith Busch
2019-04-23 18:24   ` Logan Gunthorpe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox