PCIe re-enumation in linux driver question (pcie hotplug doesn't work)
I'm working on a system where a PCIe endpoint comes on-line after my Linux OS is up and running. I'm finding that the device is not recognized even though I have PCIe hotplug enabled in the "make menuconfig" option.
I'm trying to figure out how to re-enumerate the PCIe bus to get it find and initialize the endpoint. I've been doing some websearching, but I haven't found anything useful. Any help is greatly appreciated. Thanks |
Quote:
... Have you tried starting from here: http://wiki.linuxquestions.org/wiki/Discover ? |
I'll look into this feature to see if I can locate the code that drives it.
Thanks |
Quote:
|
Solution ?
Quote:
Did you work out, how to get the driver to know about availability of new endpoint on the PCIe slots ? Thanks Anand |
PCI / PCIe bus rescan in Linux
I'm developing a PCIe card and just recently stumbled on this problem. I looked in the kernel documentation on the /sys filesystem and discovered that typing
echo 1 > /sys/bus/pci/rescan will force a PCI bus rescan. By the way one can also enable a PCI / PCIe device from userspace by typing echo 1 > /sys/bus/pci/devices/xxxx:yy.zz/enable which appears to have the same effect as the pci_enable function you might use in a PCI device driver. |
All times are GMT -5. The time now is 06:01 PM. |