PCI hotplug
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
Quoted 4 lines · Tom Duffy
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?
Quoted 4 lines
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_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 8 lines · Greg KH
Quoted 4 lines · Tom Duffy
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
Quoted 2 lines
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 :-)
Quoted 1 line
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
Signature · 12 lines
"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
Quoted 10 lines · Tom Duffy
Quoted 8 lines · Greg KH
Quoted 4 lines · Tom Duffy
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?
Quoted 7 lines
kernel, 2.6
Quoted 2 lines
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.
Quoted 9 lines
Quoted 1 line
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.
Quoted 5 lines
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_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
PCI HotPlug
In reply to Tom DuffyHi 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: PCI HotPlug
In reply to Tom DuffyQuoted 5 lines · Tejas Sumant
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?
Quoted 2 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: PCI HotPlug
In reply to Tom DuffyOn Thu, Dec 09, 2004 at 03:40:47PM -0800, Greg KH was heard to remark:
Quoted 3 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: PCI HotPlug
In reply to Tom DuffyQuoted 7 lines · Linas Vepstas
On Thu, Dec 09, 2004 at 03:40:47PM -0800, Greg KH was heard to remark:
Quoted 3 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Re: PCI HotPlug
In reply to Tom DuffyOn Thu, Dec 09, 2004 at 04:22:23PM -0800, Greg KH was heard to remark:
Quoted 6 lines · Linas Vepstas
Quoted 5 lines
On Thu, Dec 09, 2004 at 03:40:47PM -0800, Greg KH was heard to remark:
Quoted 3 lines
There is a pci hotplug for linux specific mailing list. Perhaps this would be better there?
Quoted 7 lines
Quoted 2 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel