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)
commitcbb8ca69fcbb2c82f70abcbb75b6ea8579236210
treee2f8962588096bf731c2858a9183b2fafa7bb629
parent52916982af48d9f9fc01ad825259de1eb3a9b25e
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