linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* hotplugging a bridge?
@ 2004-03-13 19:06 AMusingFool
  0 siblings, 0 replies; only message in thread
From: AMusingFool @ 2004-03-13 19:06 UTC (permalink / raw)
  To: linux-hotplug

Hi all,

I have a machine with a pci-pci bridge that gets configured incorrectly. 
It gets no memory of any sort allocated, and while the bridges behind it 
(pci-cardbus bridges, FWIW) are noted as being bridges, no devices on 
them are available. Right now it can be gotten to work by probing 
memory, and manually setting memory settings, but that's hardly elegant. 
Since changing the hardware is not an option, I was looking at 
simulating a hotplug event with it, to see if it would get allocated 
correctly at that point.

Now, I can't actually test it directly (at the moment; someone else is 
using it), so to try to test things out, I got a laptop, and was doing 
the same sort of testing with the laptop's pci-cardbus bridge. I found 
pci_device_restart(), and wrote a module to call that. It sort of works, 
in that memory does get reallocated; however, it no longer finds 
anything on that cardbus again. It doesn't generate hotplug events, and 
doesn't even do anything with a card left plugged in when the bridge is 
zapped.

I then tried linking in bits of the kernel (starting with 
pcibios_allocate_bus_resources(), and then moving on to its 
dependencies), but that's ending up being more of a kludge than the 
memory probe.

I also tried calling pci_scan_bus() afterwards, but that didn't seem to 
help... Maybe I need to call something else before calling that?

So, a couple of questions: first, can this be considered a bug that the 
kernel doesn't seem to recognize that the new device is a bridge? 
Second, am I just missing something somewhere? ie: does anyone have any 
suggestions for how to proceed? or even what to look for?

FWIW, I'm not using udev or devfs. I'm on kernel 2.4.22 (and moving 
beyond 2.4.x is also not an option).  I have not moved to the 2004-03-11 
hotplug package either, although I think that is an option, if you all 
think that might make a difference.

Thanks in advance for any help you can provide,

Dave Clemmer 




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&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] only message in thread

only message in thread, other threads:[~2004-03-13 19:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-13 19:06 hotplugging a bridge? AMusingFool

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