From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 09 Dec 2004 23:45:40 +0000 Subject: Re: Fakephp to hotplug FPGAs Message-Id: <20041209234540.GB7523@kroah.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Dec 08, 2004 at 04:25:16PM -0500, Jay Miller wrote: > Hi All, > > I was hoping that someone could help me out of a hotplugging nightmare? > > We're running Linux 2.6.6 on and embedded system with FPGAs on the other > side of a PCI-X bridge. The FPGAs are programmed after boot and I have > tried to use fakephp to discover the newly programmed device without > rebooting. > > This works in the sense that lspci reports a new device, but it doesn't > assign any resources for the device. My assumption is that the bridge > doesn't have any resources to give because no device was detected on the > first bus scan. That is true. You are going to have to figure out how to reserve a resource range at boot time. Hardware that supports PCI hotplug controllers reserve this in their BIOS (or firmware in the case of PPC64 hardware). It looks like you need to adapt the compact pci hotplug driver to do this. There were patches for the 2.4 kernel to accept ranges of resources at boot time to ignore, and later on those ranges were availble for the compact pci controller to dole out to any devices attaching through it. Scan the linux pci hotplug mailing list archives for these patches. Good luck, greg k-h ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel