Hi AastaLLL, please can you help me
I have a Xavier AGX (with C5 configured in PCIe EndPoint mode) connected to an x86 host (Root-Complex). How can I use
int nvidia_p2p_get_pages(u64 virtual_address, u64 length, struct nvidia_p2p_page_table **page_table, void (*free_callback)(void *data), void *data);
on the Xavier in order to access (in my CUDA kernel) the virtual address returned by "dma_alloc_coherent() "? The first parameter of “nvidia_p2p_get_pages” can be the pointer returned by "dma_alloc_coherent() "?
Note: I use dma_alloc_coherent() in the “pci_epf_nv_test” driver to allocate 512M