Requirement to get BAR pci_bus_address in user space
From: Srinath Mannam
Date: Thu Jun 14 2018 - 06:07:38 EST
Hi Bjorn,
We observed an issue in NVMe CMD cards in SPDK NVMe libraries.
Similar issue fixed with "nvme-pci: Use PCI bus address for
data/queues in CMB" commit in nvme kernel driver.
As per the fix, pci_bus_address of CMB bar is required to program to NVMe cards.
We need to implement similar fix for SPDK NVMe libraries also.
User space libraries get pci device resource information (resource phy
address, resource size) from resource file in sysfs.
But no mechanism available to get pci_bus_address of corresponding
resource physical address in sysfs.
Please suggest me if any alternate mechanism available to get
pci_bus_address in user space.
Thank you.
Regards,
Srinath.