PCIE-EP mode in Jetson agx orin kernel

I am using a Jetson AGX Orin with a custom carrier board. I operate the Jetson AGX Orin in EP mode by adding ODMDATA="gbe-uphy-config-22,nvhs-uphy-config-1,hsio-uphy-config-0,gbe0-enable-10g,hsstp-lane-map-3";. After the system starts up completely, I manually perform the following configurations:

bash
cd /sys/kernel/config/pci_ep/
mkdir functions/pci_epf_nv_test/func1
echo 0x10de > functions/pci_epf_nv_test/func1/vendorid
echo 0x0001 > functions/pci_epf_nv_test/func1/deviceid
ln -s functions/pci_epf_nv_test/func1 controllers/141a0000.pcie_ep/
echo 1 > controllers/141a0000.pcie_ep/start

However, the server acting as the RC (Root Complex) requires a reboot to detect the EP device. How can I integrate the above configuration into the kernel boot process to prevent the server from missing the detection?

If you mean you don’t want another reboot, then you could try to bind and rebind the pcie controller on RC.

Or trigger the rescan node in the pcie controller node to let it do the link training again.

bind or rescan dont work

Are you sure EP is really ready when you try the rescan?

after rebooting i can see it via lspci on RC,so EP is really ready

What is your method/command to rebind/rescan?

RC doesnt supoort hot-plug

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