Hello,
This is with regards to Jetson Nano
I have a CUDA program that performs cudaHostAlloc(). The app. also sets CU_POINTER_ATTRIBUTE_SYNC_MEMOPS for this memory region. Further this memory is pinned using nvidia_p2p_get_pages and then mapped with nvidia_p2p_dma_map_pages. At a later stage a GPU updates this memory region and asks the host to DMA out of it.
If a device is going to DMA to/from this pinned memory is there a need to perform dma_sync_sg_for_{device,cpu} at the kernel level before and after outgoing and incoming DMA transfers to this region, respectively or can the region be considered coherent.
Thanks