linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: PCI Hot Plug Operation
@ 2002-05-03 15:16 Greg KH
  2002-05-03 15:40 ` Greg KH
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Greg KH @ 2002-05-03 15:16 UTC (permalink / raw)
  To: linux-hotplug

On Fri, May 03, 2002 at 11:00:10AM -0500, Bill Bruce wrote:
> My situation:
> 
> The software base is Redhat 7.2. The kernel has been updated to 2.4.9. The
> user-space hot plug files/scripts dated 2002_4_1 from SourceForge have been
> installed.
> 
> I install a PCI card in my system and power it up. It appears on the PCI bus
> (lspci -H1 confirms this).
> 
> There is no driver for this card in the kernel, but according to my reading
> of the hot plug documentation I expect the /sbin/hotplug script to be
> invoked, giving me an opportunity to load a driver. This is not happening.

/sbin/hotplug is not envoked at the first scanning of the PCI bus.  This
might be considered a bug, but as there is no userspace set up at this
point in time, any call out to /sbin/hotplug would not work anyway :)

This will be fixed in 2.5, when we have initramfs working.

> Some rudimentary questions:
> 
> I am assuming the kernel is periodically scanning the PCI bus, looking for
> new devices. Is this correct? If so how often does this happen?

No, this is not happening.

> Do I need to install a driver for my card to make the kernel aware of a
> possible hot pluggable device?

PCI Hotplug only works if you have a PCI Hotplug controller on your
motherboard.  This is usually only on high end servers or cPCI machines.
Do you have such a machine?

If not, you need to manually load the kernel module for your pci device,
sorry, as there are no "hotplug" pci events able to be generated.

I've posted a small module that manually rescans the pci bus and allows
events to be generated if it sees a new device, but this is a bit of a
hack :)  Check the archives if you're interested.

thanks,

greg k-h

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net
_______________________________________________
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-05-06 17:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-03 15:16 PCI Hot Plug Operation Greg KH
2002-05-03 15:40 ` Greg KH
2002-05-03 16:00 ` Bill Bruce
2002-05-03 16:53 ` Greg KH
2002-05-03 17:48 ` Stephen Williams
2002-05-04  8:33 ` Paul Hedderly
2002-05-04  8:57 ` David Woodhouse
2002-05-06 16:32 ` Greg KH
2002-05-06 17:16 ` David Brownell

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).