[SPDK] Re: sysfs-pci and SPDK IOAT

wiz.chen at gmail.com Tue, 23 Mar 2021 01:53:40 +0000
Newsgroups dev.linux.lists.spdk
Message-ID <[email protected]>
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().