The PCIe device driver for Jetson AGX Xavier

Hello,

Could you share the information about the PCIe device driver for Jetson AGX Xavier?
We would like to develop the PCIe device driver; however, we cannot find the tool and way.
Also, do you the partner to develop the PCIe device driver?

Best Regards,
NY

For clarification, are you building a custom PCIe bus? Or are you simply thinking of a driver for something which runs on a PCIe bus? The two are actually quite different.

Hello linuxdev-san,

We are simply thinking of a driver for the device which runs on the PCIe bus.
We would like to capture the data from the external AD converter on the PCIe bus.

Best Regards,
NY

Let’s separate this problem into a PCI side, and a device side. Most likely PCI is already working as expected, and only a specific device driver is needed.

Before starting, beware that if a PCI device is not detected during boot, then the PCI listing commands won’t show anything…unlike a PC which is normally always running the PCIe devices, the Jetson will by default shut down power to PCIe to decrease power consumption if no device is found during boot. Mostly this only affects people with an FPGA or some complicated device which must itself boot like a computer.

To see basic PCIe content, run command “lspci”. What does this show? Note that the left hand side of this command will show a slot specification. An example slot (from a PC) is “1a:00.0” from this line:
1a:00.0 VGA compatible controller: NVIDIA Corporation Device 1e02 (rev a1)

That slot specification can be used to limit a PCIe query to the specific device. I’ll pretend your device is slot “1a:00.0”, but adjust to whatever your device shows up as. Run this command to get the full verbose output, and post the content in this forum:
sudo lspci -vvv -s 1a:00.0

If the device itself is not found, then it is a PCI issue. If the device is found and there are no PCIe bus errors, then the issue is entirely just a need to add the device driver (PCIe would then be confirmed as fully working).

I don’t know what the required device driver is for your device, but you’d probably need to post detailed model and specification information so it could be looked up.

Hello linuxdev-san,

Thank you for your reply.
We’ll confirm your comment.

Best Regards,
NY