I tried that but the PCIE_RST pin on the Xavier NX was not set. No matter what I tried, the reset was not asserted. It stayed high. The only time I found the pin changed was at boot when the reset was deasserted.
Is that the intended behaviour? Is there a way to assert the PCIE_RST by hand?
Hello, thanks for coming back on that issue. Yes it is. We think it is necessary to reset a PCIe switch after a NVMe connected to that switch was swapped. Right now we have no solution other than to reset the whole system which is not an option for the finished product.
Tegra PCIe doesn’t support hotplug, so rescan/reset sysfs nodes won’t work.
Instead, you can unbind and bind Tegra PCIe platform driver.
Below example is for M.2 Key M slot in Jetson NX board.
cd /sys/bus/platform/drivers/tegra-pcie-dw
echo 141a0000.pcie > unbind
echo 141a0000.pcie > bind