How to communicate between TX2 and ZynQ?

Hi

I’m trying to communicate between TX2 and ZynQ through PCIe interface, but
have no any information to program PCIe interface on TX2.
If the following information is provided it is very helpful in developing.

  1. Where is the PCIe device driver source code in linux kernel on TX2.
  2. Sample code for communicating with external devices through PCIe on TX2
  3. How to test PCIe interface with any other device on TX2
  4. Any other information of PCIe and ZynQ on TX2

Thanks a lot in advance.
Regards.

If your ZynQ is configured properly (as per PCIe spec), then TX2 enumerates it without any issues.

Where is the PCIe device driver source code in linux kernel on TX2.
If you are referring to PCIe host controller driver, then, it can be found @ kernel/drivers/pci/host/pci-tegra.c file. But, I think you are looking for ZynQ PCIe end point device driver, which needs to be written for that particular device.

Sample code for communicating with external devices through PCIe on TX2
We don’t have any sample code for ZynQ. For any other device, if the driver is available upstream, it can be used directly. May be, this question can be posted in ZynQ forums.

How to test PCIe interface with any other device on TX2
Any NIC (Realtek 8196, Intel e100e, Intel IGB Etc…), NVMe device can be connected to it and since the drivers for these cards are available upstream, you should be able to exercise their functionality.