]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/P2PDMA: Add sysfs group to display p2pmem stats
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 4 Oct 2018 21:27:36 +0000 (15:27 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Oct 2018 17:18:15 +0000 (12:18 -0500)
commit3efd4918423985b5fa4306095e006f47c86e0d9b
treee2f8962588096bf731c2858a9183b2fafa7bb629
parent6e1cfc68d918cdc3216836cc87abc796d5d6034d
PCI/P2PDMA: Add sysfs group to display p2pmem stats

Add a sysfs group to display statistics about P2P memory that is registered
in each PCI device.

Attributes in the group display the total amount of P2P memory, the amount
available and whether it is published or not.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Documentation/ABI/testing/sysfs-bus-pci
drivers/pci/p2pdma.c