issues with pcie rescan
Posted: 2019/05/08 02:45:50
Hi,
I'm using CentOS 7.6
The system connected to a fpga card using pcie
fpga initialization is slower then the cpu, so there is no pcie device of fpga found after os starts
After execute
echo 1 > /sys/bus/pci/rescan
the fpga pcie device found
lspci as follows
[root@localhost ~]# lspci -vxs 06:00.0
06:00.0 Memory controller: Xilinx Corporation Device 9038
Subsystem: Xilinx Corporation Device 0007
Physical Slot: 0-2
Flags: bus master, fast devsel, latency 0, IRQ 30, NUMA node 0
Memory at 90800000 (64-bit, non-prefetchable)
Memory at 91000000 (64-bit, non-prefetchable)
Capabilities: [40] Power Management version 3
Capabilities: [60] MSI-X: Enable- Count=8 Masked-
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [1c0] Secondary PCI Express <?>
00: ee 10 38 90 07 01 10 00 00 00 80 05 08 00 00 00
10: 04 00 80 90 00 00 00 00 04 00 00 91 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 ee 10 07 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 0b 01 00 00
But the fpga driver read bar memory at 90800000 is all 0xffffffff
reboot will fix this issue,fpga driver can works
Why the rescan does not work?
Thanks in advance for helping with this!
I'm using CentOS 7.6
The system connected to a fpga card using pcie
fpga initialization is slower then the cpu, so there is no pcie device of fpga found after os starts
After execute
echo 1 > /sys/bus/pci/rescan
the fpga pcie device found
lspci as follows
[root@localhost ~]# lspci -vxs 06:00.0
06:00.0 Memory controller: Xilinx Corporation Device 9038
Subsystem: Xilinx Corporation Device 0007
Physical Slot: 0-2
Flags: bus master, fast devsel, latency 0, IRQ 30, NUMA node 0
Memory at 90800000 (64-bit, non-prefetchable)
Memory at 91000000 (64-bit, non-prefetchable)
Capabilities: [40] Power Management version 3
Capabilities: [60] MSI-X: Enable- Count=8 Masked-
Capabilities: [70] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [1c0] Secondary PCI Express <?>
00: ee 10 38 90 07 01 10 00 00 00 80 05 08 00 00 00
10: 04 00 80 90 00 00 00 00 04 00 00 91 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 ee 10 07 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 0b 01 00 00
But the fpga driver read bar memory at 90800000 is all 0xffffffff
reboot will fix this issue,fpga driver can works
Why the rescan does not work?
Thanks in advance for helping with this!