* Faking a Hot-Unplug event in kernel 2.6
2005-06-02 11:33 Faking a Hot-Unplug event in kernel 2.6 Rajat Jain
@ 2005-06-03 6:08 ` Rajat Jain, Noida
2005-06-03 8:11 ` Greg KH
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Rajat Jain, Noida @ 2005-06-03 6:08 UTC (permalink / raw)
To: linux-hotplug
Hi,
Please pardon me if this is not the right list for this post. I'm using 2.6
Kernel. I'm having a (Hot-pluggable) Qlogic HBA plugged into a PCI Express
Slot.
I want to fake an hot-unplug event for this HBA, without physically removing
it from the slot. Basically what I want is that while the HBA is still
physically present at the slot, I want to fire a command / program that
would fake the hot-unplug event for this slot, and thus will deregister the
HBA from Linux. Ideally, I want to do this from userspace. But if it is not
possible, then I can go for a kernel module as well.
I think that this feature was made available by "Fake PCI Hot plug
controller Driver", but I believe that can only be used if my system does
not have REAL hot-plugging slots. Can "Fake PCI Hot-plug Controller Driver
(fakephp.ko)" and "PCI Express Hot-plug Controller Driver (pciehp.ko)"
Co-exist ??? (So that I can manually give fake unplug event and THEN remove
the device; While hot-plugging, I want PCI Express HPC driver to take care
of every thing)
Is it possible to do what I am trying to do?
TIA,
Rajat
Disclaimer:
This message and any attachment(s) contained here are information that is
confidential,proprietary to HCL Technologies and its customers, privileged
or otherwise protected by law.The information is solely intended for the
individual or the entity it is addressed to. If you are not the intended
recipient of this message, you are not authorized to read, forward,
print,retain, copy or disseminate this message or any part of it. If you
have received this e-mail in error, please notify the sender immediately by
return e-mail and delete it from your computer.
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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] 5+ messages in thread* Re: Faking a Hot-Unplug event in kernel 2.6
2005-06-02 11:33 Faking a Hot-Unplug event in kernel 2.6 Rajat Jain
2005-06-03 6:08 ` Rajat Jain, Noida
@ 2005-06-03 8:11 ` Greg KH
2005-07-25 2:30 ` Rajat Jain
2005-07-25 2:46 ` randy_dunlap
3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2005-06-03 8:11 UTC (permalink / raw)
To: linux-hotplug
On Thu, Jun 02, 2005 at 04:51:28PM +0530, Rajat Jain wrote:
> Hi,
>
> Please pardon me if this is not the right list for this post. I'm
> using 2.6 Kernel. I'm having a (Hot-pluggable) Qlogic HBA plugged into
> a PCI Express Slot.
There is a pci hotplug mailing list for Linux, if you have lots of
questions about this.
> I want to fake an hot-unplug event for this HBA, without physically
> removing it from the slot. Basically what I want is that while the HBA
> is still physically present at the slot, I want to fire a command /
> program that would fake the hot-unplug event for this slot, and thus
> will deregister the HBA from Linux. Ideally, I want to do this from
> userspace. But if it is not possible, then I can go for a kernel
> module as well.
Um, why not do it for real?
echo 0 > /sys/pci/slots/SLOTNAME/power
if you have a hotplug controller (and you say you do.)
> I think that this feature was made available by "Fake PCI Hot plug
> controller Driver", but I believe that can only be used if my system
> does not have REAL hot-plugging slots.
Well, the fake driver is for systems with no hotplug controllers.
> Can "Fake PCI Hot-plug
> Controller Driver (fakephp.ko)" and "PCI Express Hot-plug Controller
> Driver (pciehp.ko)" Co-exist ???
No, why would you want it to?
> (So that I can manually give fake unplug event and THEN remove the
> device; While hot-plugging, I want PCI Express HPC driver to take care
> of every thing)
Why would you want to do this?
> Is it possible to do what I am trying to do?
Only if you really want to confuse the kernel.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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] 5+ messages in thread
* Re: Faking a Hot-Unplug event in kernel 2.6
2005-06-02 11:33 Faking a Hot-Unplug event in kernel 2.6 Rajat Jain
2005-06-03 6:08 ` Rajat Jain, Noida
2005-06-03 8:11 ` Greg KH
@ 2005-07-25 2:30 ` Rajat Jain
2005-07-25 2:46 ` randy_dunlap
3 siblings, 0 replies; 5+ messages in thread
From: Rajat Jain @ 2005-07-25 2:30 UTC (permalink / raw)
To: linux-hotplug
On 6/3/05, Greg KH <greg@kroah.com> wrote:
> On Thu, Jun 02, 2005 at 04:51:28PM +0530, Rajat Jain wrote:
> > Hi,
> >
> > Please pardon me if this is not the right list for this post. I'm
> > using 2.6 Kernel. I'm having a (Hot-pluggable) Qlogic HBA plugged into
> > a PCI Express Slot.
>
> There is a pci hotplug mailing list for Linux, if you have lots of
> questions about this.
Is Linux-hotplug-devel@lists.sourceforge.net is the list you are
talking about? Or are there any other lists as well??
Thanks,
Rajat
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&opÌk
_______________________________________________
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] 5+ messages in thread
* Re: Faking a Hot-Unplug event in kernel 2.6
2005-06-02 11:33 Faking a Hot-Unplug event in kernel 2.6 Rajat Jain
` (2 preceding siblings ...)
2005-07-25 2:30 ` Rajat Jain
@ 2005-07-25 2:46 ` randy_dunlap
3 siblings, 0 replies; 5+ messages in thread
From: randy_dunlap @ 2005-07-25 2:46 UTC (permalink / raw)
To: linux-hotplug
On Mon, 25 Jul 2005 11:30:40 +0900 Rajat Jain wrote:
> On 6/3/05, Greg KH <greg@kroah.com> wrote:
> > On Thu, Jun 02, 2005 at 04:51:28PM +0530, Rajat Jain wrote:
> > > Hi,
> > >
> > > Please pardon me if this is not the right list for this post. I'm
> > > using 2.6 Kernel. I'm having a (Hot-pluggable) Qlogic HBA plugged into
> > > a PCI Express Slot.
> >
> > There is a pci hotplug mailing list for Linux, if you have lots of
> > questions about this.
>
> Is Linux-hotplug-devel@lists.sourceforge.net is the list you are
> talking about? Or are there any other lists as well??
Nope, see the pcihpd project at sourceforge:
http://sourceforge.net/projects/pcihpd/
and the mailing list for it is:
pcihpd-discuss@lists.sourceforge.net
---
~Randy
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&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] 5+ messages in thread