I have two Jetson AGX Orin connected through PCIe.
slave running pci-epf-tegra-vnet.c (PCIe EP driver)
Master running tegra_vnet.c (PCIe ethernet function driver)
I plan to write my own PCIe EP mode driver on Slave. So I have the PCIe functional driver running on master, my EP driver will receive data pass the data to a real device connected on slave. I have all detail information function l driver on master. but I also want keep pci-epf-tegra-vnet.c/tegra_vnet.c works. My question is:
- where I can get started, which DMA channel I can use, how to write a dtsi section for this device?
- an easier way is to remove current main logic of pci-epf-tegra-vnet.c/tegra_vnet.c, and change to my new logic, e.g. don’t register_netdev. so use same MMIO and DMA. but I will lose network connection.
Thanks.