[SPDK] Re: sysfs-pci and SPDK IOAT

wiz.chen at gmail.com Tue, 23 Mar 2021 02:45:36 +0000
Newsgroups dev.linux.lists.spdk
Message-ID <[email protected]>
hi,

  I check spdk_mem_register(), it needs 2-MB aligned address.

  After some investigation:

  1.  nvme cmb --> nvme_pcie_ctrlr_map_io_cmb():
          it do 2MB alignment here.

  2. vfio: map all PCI BARs in 2MB-aligned virtual addresses
      https://staging.gerrithub.io/c/spdk/dpdk/+/441070

     Does the patch: "vfio: map all PCI BARs in 2MB-aligned virtual addresses" have any side effect?

      Or  I do the 2MB alignment by myself is a batter choice?