如何重置/重新启动PCIe设备
方法一
# 查看PCI设备ID
lspci -vvvt
#1.首先移除pcie设备
echo "1" > /sys/bus/pci/devices/AAAA:BB:CC.D/remove
其中AAAA:BB:CC.D为bus-info, 意思分别为Domain:Bus:Device.Function
#2.重新添加pcie设备
echo "1" > /sys/bus/pci/rescan
方法二
#直接reset对应的pcie devices
echo "1" > /sys/bus/pci/devices/AAAA:BB:CC.D/reset