[SPDK] Re: sysfs-pci and SPDK IOAT

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

Can you try using spdk_mem_register() after you have called spdk_pci_device_map_bar()?

-Jim


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

    Hi,

    we change to use SPDK pci APIs to access NTB.

    After spdk_pci_device_map_bar(), it can get the "mapped address" for accessing remote memory.

    It's okay that using memcpy to copy "data" to "mapped address":
       memcpy(mapped_addr,  data_buf, size);

    However, when using SPDK IOAT:
       spdk_ioat_build_copy(ioat, cb_arg, cb_fn, mapped_addr, data_buf, size);

        It will fail to  translate mapped_addr by spdk_vtophys().
    _______________________________________________
    SPDK mailing list -- spdk(a)lists.01.org
    To unsubscribe send an email to spdk-leave(a)lists.01.org