[SPDK] Re: sysfs-pci and SPDK IOAT

Harris, James R <james.r.harris at intel.com> Tue, 23 Mar 2021 14:04:18 +0000
Newsgroups dev.linux.lists.spdk
Message-ID <[email protected]>
Hi,

You'll need to do the alignment yourself for now.  I cannot vouch for the correctness of the vfio patch.

-Jim


On 3/22/21, 8:25 PM, "wiz.chen(a)gmail.com" <wiz.chen(a)gmail.com> wrote:

    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?
    _______________________________________________
    SPDK mailing list -- spdk(a)lists.01.org
    To unsubscribe send an email to spdk-leave(a)lists.01.org