Hi,
Thank you for the confirmation, Orin side was ok, missed setpci device name on RP side. devmem2 read and write works remotely both from RP and EP side.
Was trying to run a more realistic bandwidth/latency check with massive data transfer, and can see that there is a way by using RP /sys/kernel/debug/pcie-x/ (where x is one of 0,1,2,3) and cat write. Don’t see that subfolder on RP or other PCs, is it only enabled with CONFIG_PCIE_TEGRA_DW_DMA_TEST=y flag on Jetson? Or can be enabled on regular Linux PC also, closest flags by name seen in kernel .config are DMATEST=y or DMA_API_DEBUG=y?
Was looking also through JetPack kernel source samples, but don’t see direct standalone example with DMA and conversion from virtual to physical/bus address space. There is
kernel/nvidia/drivers/misc/tegra-pcie-ep-mem.c static int write(struct seq_file *s, void *data) and read(struct seq_file *s, void *data)
kernel/nvidia/drivers/pci/host/pcie-tegra-dw.c static int write(struct seq_file *s, void *data) and read(struct seq_file *s, void *data)
but don’t know how to populate these, s and data, and can it be used directly from main() reader on the RP side and main() writer on EP side? Any suggestions what could be a good base source code to run EP writes, RP reads?
Thanks.