This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux PCI rescan/enable error on Sitara AM389X

Hello everybody,

I'm working with an FPGA connected to a Sitara processor. I configure the FPGA once the system is up and running, and of course at this point the kernel has already probed the PCIe bus and hasn't see anything powered yet.  I'd like to be able to rescan the PCIe bus once the device is configured and the PCIe core is running.

I tryed a little bit with /sys/bus/pci/* without results.

 

# ls -la /sys/bus/pci/devices/
drwxr-xr-x    2 root     root            0 Aug  1 16:26 .
drwxr-xr-x    5 root     root            0 Aug  1 16:26 ..
lrwxrwxrwx    1 root     root            0 Aug  1 16:26 0000:00:00.0 -> ../../../devices/pci0000:00/0000:00:00.0
lrwxrwxrwx    1 root     root            0 Aug  1 16:26 0000:01:00.0 -> ../../../devices/pci0000:00/0000:00:00.0/0000:01:00.0
# echo 1 > /sys/bus/pci/devices/0000\:01\:00.0/enable 
# dmesg
...
pci 0000:01:00.0: Refused to change power state, currently in D3

I use a Linux Kernel 2.6.37 (I activate in the kernel config CONFIG_HOTPLU_PCI...).

Any idea?

Thanks in advance,

Simone