* Re: pci configuration registers
2006-03-14 15:03 pci configuration registers Philippe Faes
@ 2006-03-14 19:25 ` Greg KH
2006-03-15 7:49 ` Philippe Faes
2006-03-15 15:57 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2006-03-14 19:25 UTC (permalink / raw)
To: linux-hotplug
On Tue, Mar 14, 2006 at 04:03:47PM +0100, Philippe Faes wrote:
> Hi Gang,
>
> I've read how I can use fakephp to (virtually) remove an detect devices
> on my PCI bus.
> My problem now is: my (new) device doesn't have its PCI configuration
> registers set. Normally this is done during boot, but since I hot-plug
> it, they are not set.
> I think pci_setup_device does something similar, but this function is
> not made visible to the modules.
>
> What is the proper way to automatically configure the PCI registers?
Use the pci hotplug controller interface :)
good luck,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
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] 4+ messages in thread
* Re: pci configuration registers
2006-03-14 15:03 pci configuration registers Philippe Faes
2006-03-14 19:25 ` Greg KH
@ 2006-03-15 7:49 ` Philippe Faes
2006-03-15 15:57 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Philippe Faes @ 2006-03-15 7:49 UTC (permalink / raw)
To: linux-hotplug
On Tue, 2006-03-14 at 11:25 -0800, Greg KH wrote:
> On Tue, Mar 14, 2006 at 04:03:47PM +0100, Philippe Faes wrote:
> > Hi Gang,
> >
> > I've read how I can use fakephp to (virtually) remove an detect devices
> > on my PCI bus.
> > My problem now is: my (new) device doesn't have its PCI configuration
> > registers set. Normally this is done during boot, but since I hot-plug
> > it, they are not set.
> > I think pci_setup_device does something similar, but this function is
> > not made visible to the modules.
> >
> > What is the proper way to automatically configure the PCI registers?
>
> Use the pci hotplug controller interface :)
>
> good luck,
>
> greg k-h
>
And where do I look for the specific functions of interest?
I've been browsing through the kernel source a lot, but as you know the
kernel is pretty big (and not always well-documented).
Thanks
--
ir. Philippe Faes
Ghent University - Department ELIS
Sint-Pietersnieuwstraat 41 -- B-9000 Gent
Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
http://www.elis.UGent.be/~pfaes
ON5DEU -- LPIC1 -- gpg-key:173720B6
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
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] 4+ messages in thread* Re: pci configuration registers
2006-03-14 15:03 pci configuration registers Philippe Faes
2006-03-14 19:25 ` Greg KH
2006-03-15 7:49 ` Philippe Faes
@ 2006-03-15 15:57 ` Greg KH
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2006-03-15 15:57 UTC (permalink / raw)
To: linux-hotplug
On Wed, Mar 15, 2006 at 08:49:14AM +0100, Philippe Faes wrote:
> On Tue, 2006-03-14 at 11:25 -0800, Greg KH wrote:
> > On Tue, Mar 14, 2006 at 04:03:47PM +0100, Philippe Faes wrote:
> > > Hi Gang,
> > >
> > > I've read how I can use fakephp to (virtually) remove an detect devices
> > > on my PCI bus.
> > > My problem now is: my (new) device doesn't have its PCI configuration
> > > registers set. Normally this is done during boot, but since I hot-plug
> > > it, they are not set.
> > > I think pci_setup_device does something similar, but this function is
> > > not made visible to the modules.
> > >
> > > What is the proper way to automatically configure the PCI registers?
> >
> > Use the pci hotplug controller interface :)
> >
> > good luck,
> >
> > greg k-h
> >
>
> And where do I look for the specific functions of interest?
> I've been browsing through the kernel source a lot, but as you know the
> kernel is pretty big (and not always well-documented).
What specifically are you trying to do when you say that you "hotplug"
your new device? Are you using fakephp to do this? For a new device
that was just added to the system? Or for a device that was just
removed by the same driver?
And what do you mean that "pci_setup_device is not made visible to the
modules"? What modules? You should not ever need to call that
function, as on its own, it is incomplete to set up a new pci device.
What is wrong with the pci_scan_single_device() call that fakephp makes?
Also, if you have further pci hotplug specific questions, there is a pci
hotplug mailing list with people on it that can help you out.
thanks,
greg k-h
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
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] 4+ messages in thread