* PCI hotplug
@ 2004-10-27 18:52 Tom Duffy
2004-10-30 4:03 ` Greg KH
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Tom Duffy @ 2004-10-27 18:52 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 382 bytes --]
Greg, et. al,
Is there a document out there describing in detail how PCI hotplug works
under Linux? I have found stuff on how to implement a driver so it
works with PCI hotplug, but haven't found one on how PCI hotplug was
implemented in Linux. I am specifically interested in how Linux
interacts with the BIOS and what protocols it uses, like ACPI.
Thanks,
-tduffy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: PCI hotplug
2004-10-27 18:52 PCI hotplug Tom Duffy
@ 2004-10-30 4:03 ` Greg KH
2004-11-01 17:19 ` Tom Duffy
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2004-10-30 4:03 UTC (permalink / raw)
To: linux-hotplug
On Wed, Oct 27, 2004 at 11:52:09AM -0700, Tom Duffy wrote:
> Greg, et. al,
>
> Is there a document out there describing in detail how PCI hotplug works
> under Linux?
From a kernel viewpoint, or from a userspace viewpoint? For 2.4 or
2.6?
> I have found stuff on how to implement a driver so it
> works with PCI hotplug, but haven't found one on how PCI hotplug was
> implemented in Linux. I am specifically interested in how Linux
> interacts with the BIOS and what protocols it uses, like ACPI.
Did you take a look at the acpi pci hotplug driver in the kernel?
Source is always your best documentation :)
Anything specific you are wondering about?
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
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
* Re: PCI hotplug
2004-10-27 18:52 PCI hotplug Tom Duffy
2004-10-30 4:03 ` Greg KH
@ 2004-11-01 17:19 ` Tom Duffy
2004-11-01 18:56 ` Greg KH
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Tom Duffy @ 2004-11-01 17:19 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 2007 bytes --]
On Fri, 2004-10-29 at 21:03 -0700, Greg KH wrote:
> On Wed, Oct 27, 2004 at 11:52:09AM -0700, Tom Duffy wrote:
> > Greg, et. al,
> >
> > Is there a document out there describing in detail how PCI hotplug works
> > under Linux?
>
> From a kernel viewpoint, or from a userspace viewpoint? For 2.4 or
> 2.6?
kernel, 2.6
> Did you take a look at the acpi pci hotplug driver in the kernel?
> Source is always your best documentation :)
Yes, I started to go through it. And I was afraid you were going to say
that :-)
> Anything specific you are wondering about?
Well, we are building a system that will have PCI-E hotplug and I need
to make sure that Linux will support it.
I am under the impression that Windows uses ACPI to tell the BIOS to
stimulate the hotplug controller registers. In general, Linux has
relied less on the BIOS to handle system management, instead
implementing all the bits in the OS.
With proper support from the OS, the driver itself could use interrupts
from the standard hotplug controller in the host's root PCI bridge to
handle hotplug events.
So, what does Linux do?
-tduffy
--
"A democracy cannot exist as a permanent form of government. It can only
exist until the voters discover that they can vote themselves money from
the public treasure. From that moment on, the majority always votes for
the candidates promising the most money from the public treasury, with
the result that democracy always collapses over loose fiscal policy
followed by a dictatorship. The average of the world's greatest
civilizations has been two hundred years. These nations have progressed
through the following sequence: from bondage to spiritual faith, from
spiritual faith to great courage, from courage to liberty, from liberty
to abundance, from abundance to selfishness, from selfishness to
complacency, from complacency to apathy, from apathy to dependency, from
dependency back to bondage." -- Alexander Tyler, 1778
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: PCI hotplug
2004-10-27 18:52 PCI hotplug Tom Duffy
2004-10-30 4:03 ` Greg KH
2004-11-01 17:19 ` Tom Duffy
@ 2004-11-01 18:56 ` Greg KH
2004-12-09 15:24 ` PCI HotPlug Tejas Sumant
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2004-11-01 18:56 UTC (permalink / raw)
To: linux-hotplug
On Mon, Nov 01, 2004 at 09:19:31AM -0800, Tom Duffy wrote:
> On Fri, 2004-10-29 at 21:03 -0700, Greg KH wrote:
> > On Wed, Oct 27, 2004 at 11:52:09AM -0700, Tom Duffy wrote:
> > > Greg, et. al,
> > >
> > > Is there a document out there describing in detail how PCI hotplug works
> > > under Linux?
> >
> > From a kernel viewpoint, or from a userspace viewpoint? For 2.4 or
> > 2.6?
>
> kernel, 2.6
>
> > Did you take a look at the acpi pci hotplug driver in the kernel?
> > Source is always your best documentation :)
>
> Yes, I started to go through it. And I was afraid you were going to say
> that :-)
Heh.
> > Anything specific you are wondering about?
>
> Well, we are building a system that will have PCI-E hotplug and I need
> to make sure that Linux will support it.
>
> I am under the impression that Windows uses ACPI to tell the BIOS to
> stimulate the hotplug controller registers. In general, Linux has
> relied less on the BIOS to handle system management, instead
> implementing all the bits in the OS.
For some controllers, yes, Linux implements all the bits. For some, it
has to use ACPI, no other way to do it. Linux supports both, depending
on the hardware you have.
There's a driver in the kernel that should work for any hotplug
controller that matches the SHPC spec. Examples of this include both
AMD's hardware, and Intel's hardware, so I feel good about this driver
matching the published spec.
For PCI-E, we also have a driver that doesn't rely on ACPI. However it
may be pretty much tied to a specific PCI-E implementation from Intel,
as I don't know of any other chipsets that support PCI-E and hotplug
today.
> With proper support from the OS, the driver itself could use interrupts
> from the standard hotplug controller in the host's root PCI bridge to
> handle hotplug events.
>
> So, what does Linux do?
As described above, both, depending on your hardware. Probably not what
you wanted to hear :)
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
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
* PCI HotPlug
2004-10-27 18:52 PCI hotplug Tom Duffy
` (2 preceding siblings ...)
2004-11-01 18:56 ` Greg KH
@ 2004-12-09 15:24 ` Tejas Sumant
2004-12-09 23:40 ` Greg KH
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Tejas Sumant @ 2004-12-09 15:24 UTC (permalink / raw)
To: linux-hotplug
Hi All,
I have recently subcribed the list.
I dont know much about PCI hotplugging, but have knowledge about linux
kernel programming and device drivers.
Can anybody tell me what all things should I to enable
hotplugging of PCI device on linux?
Thanks in advance.
Tejas
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: PCI HotPlug
2004-10-27 18:52 PCI hotplug Tom Duffy
` (3 preceding siblings ...)
2004-12-09 15:24 ` PCI HotPlug Tejas Sumant
@ 2004-12-09 23:40 ` Greg KH
2004-12-10 0:16 ` Linas Vepstas
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2004-12-09 23:40 UTC (permalink / raw)
To: linux-hotplug
On Thu, Dec 09, 2004 at 08:42:26PM +0530, Tejas Sumant wrote:
> Hi All,
>
> I have recently subcribed the list.
> I dont know much about PCI hotplugging, but have knowledge about linux
> kernel programming and device drivers.
There is a pci hotplug for linux specific mailing list. Perhaps this
would be better there?
> Can anybody tell me what all things should I to enable
> hotplugging of PCI device on linux?
You need a motherboard that supports this functionality. Do you have
this kind of hardware? If so, just enable the configuration option in
your kernel, load up the proper pci hotplug controller driver, and then
have fun adding and removing your pci devices.
Simple really :)
thanks,
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: PCI HotPlug
2004-10-27 18:52 PCI hotplug Tom Duffy
` (4 preceding siblings ...)
2004-12-09 23:40 ` Greg KH
@ 2004-12-10 0:16 ` Linas Vepstas
2004-12-10 0:22 ` Greg KH
2004-12-10 0:39 ` Linas Vepstas
7 siblings, 0 replies; 9+ messages in thread
From: Linas Vepstas @ 2004-12-10 0:16 UTC (permalink / raw)
To: linux-hotplug
On Thu, Dec 09, 2004 at 03:40:47PM -0800, Greg KH was heard to remark:
>
> There is a pci hotplug for linux specific mailing list. Perhaps this
> would be better there?
Really? Google can't find it. I'm subscribed to this list because
I know of no other list that discusses linux hotplug issues.
--linas
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: PCI HotPlug
2004-10-27 18:52 PCI hotplug Tom Duffy
` (5 preceding siblings ...)
2004-12-10 0:16 ` Linas Vepstas
@ 2004-12-10 0:22 ` Greg KH
2004-12-10 0:39 ` Linas Vepstas
7 siblings, 0 replies; 9+ messages in thread
From: Greg KH @ 2004-12-10 0:22 UTC (permalink / raw)
To: linux-hotplug
On Thu, Dec 09, 2004 at 06:16:36PM -0600, Linas Vepstas wrote:
> On Thu, Dec 09, 2004 at 03:40:47PM -0800, Greg KH was heard to remark:
> >
> > There is a pci hotplug for linux specific mailing list. Perhaps this
> > would be better there?
>
> Really? Google can't find it. I'm subscribed to this list because
> I know of no other list that discusses linux hotplug issues.
So if Google doesn't find something it doesn't exist? :)
https://lists.sourceforge.net/lists/listinfo/pcihpd-discuss is what you
want.
thanks,
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: PCI HotPlug
2004-10-27 18:52 PCI hotplug Tom Duffy
` (6 preceding siblings ...)
2004-12-10 0:22 ` Greg KH
@ 2004-12-10 0:39 ` Linas Vepstas
7 siblings, 0 replies; 9+ messages in thread
From: Linas Vepstas @ 2004-12-10 0:39 UTC (permalink / raw)
To: linux-hotplug
On Thu, Dec 09, 2004 at 04:22:23PM -0800, Greg KH was heard to remark:
> On Thu, Dec 09, 2004 at 06:16:36PM -0600, Linas Vepstas wrote:
> > On Thu, Dec 09, 2004 at 03:40:47PM -0800, Greg KH was heard to remark:
> > >
> > > There is a pci hotplug for linux specific mailing list. Perhaps this
> > > would be better there?
> >
> > Really? Google can't find it. I'm subscribed to this list because
> > I know of no other list that discusses linux hotplug issues.
>
> So if Google doesn't find something it doesn't exist? :)
>
> https://lists.sourceforge.net/lists/listinfo/pcihpd-discuss is what you
> want.
Hmm. Appearently, I've even posted to it. How embarrassing :-/
Its a low traffic list.
--linas
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-12-10 0:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 18:52 PCI hotplug Tom Duffy
2004-10-30 4:03 ` Greg KH
2004-11-01 17:19 ` Tom Duffy
2004-11-01 18:56 ` Greg KH
2004-12-09 15:24 ` PCI HotPlug Tejas Sumant
2004-12-09 23:40 ` Greg KH
2004-12-10 0:16 ` Linas Vepstas
2004-12-10 0:22 ` Greg KH
2004-12-10 0:39 ` Linas Vepstas
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).