linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Fakephp to hotplug FPGAs
Date: Thu, 09 Dec 2004 23:45:40 +0000	[thread overview]
Message-ID: <20041209234540.GB7523@kroah.com> (raw)
In-Reply-To: <E8F8DBCB0468204E856114A2CD20741F390D43@mail.local.ActualitySystems.com>

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

      reply	other threads:[~2004-12-09 23:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-08 21:25 Fakephp to hotplug FPGAs Jay Miller
2004-12-09 23:45 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041209234540.GB7523@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).