Develop new PCIe endpoint driver

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:

  1. where I can get started, which DMA channel I can use, how to write a dtsi section for this device?
  2. 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.

Please refer to PCIe Endpoint Mode — Jetson Linux Developer Guide documentation (nvidia.com) to see if can find some information.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.