AnsweredAssumed Answered

Hotplug PCIe endpoint

Question asked by Niklas Molin on Nov 10, 2017
Latest reply on Nov 12, 2017 by Wigros Sun


We have an i.MX6D and trying to use the PCI to connect to a FPGA.

We load the FPGA and rescan the PCI and the FPGA shows up.

We initialize the driver etc. and can communicate with registers inside the FPGA.

After that we try to change bitfile in the FPGA and then re-establish the PCI connection.

It shows up again when doing lspci and when trying to accessing the FPGA register via the driver, the whole CPU hangs, when trying to access the memory area assigned for the PCI bus.

We have tried to use the remove under /sys/bus/pci..., remove the driver (and initialize it again when reloading FPGA, to make sure we get a new memory location).


Any suggestions what steps we need to take to "hotplug" an endpoint to the PCI bus?