Skip to content

Restore PCIE Configuration

Jong Hun Han edited this page Dec 15, 2015 · 1 revision

Rebooting Issue

This page describes restoring PCIE configuration on NetFPGA-SUME to avoid rebooting a host PC after programming FPGA. In the projects, a host PC installed a NetFPGA-SUME card is required to reboot after programming FPGA with the bit file. It is because of some of PCIE configuration disappearing in the FPGA programming. While PCIE configuration are scanned by a root complex during the booting, some of PCIE configuration are lost by the FPGA programming and it is required to reboot the PC for restoring the PCIE configuration. This rebooting issue can be avoided by workaround steps on below.

Restoring PCIE Configuration Procedure

  1. Power on a host PC and prepare a bit image file for HW test.

  2. Program the FPGA with the bit image.

  3. Reboot the host PC. Run 'lspci -d:7028 -vxx' on a terminal and check whether it shows like on below.

  1. Load sume_riffa.ko driver.

  2. Test HW configured with the bit image file.

  3. Generate another bit file.

  4. Program the FPGA with a new bit file.

  5. Without rebooting a host PC, run following steps

$ rmmod sume_riffa
$ bash $SUME_FOLDER/tools/scripts/reconfigure/pci_rescan_run.sh
$ insmod $DRIVER_FOLDER/sume_riffa.ko

This restores PCIE configuration as initial configuration.

  1. Run 'lspci -d:7028 -vxx' and check the PCIE configuration. If it does not show any PCIE configuration, you may need either to check DMA core used to generate the bit file or to repeat the steps in 9).

  2. Test HW.

The script command of pci_rescan_run.sh restores PCIE configuration, and a host PC can run HW test without rebooting after programming the FPGA.

Clone this wiki locally