linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fake hotplug questions
@ 2004-05-03 13:51 David Clemmer
  2004-05-28 23:18 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: David Clemmer @ 2004-05-03 13:51 UTC (permalink / raw)
  To: linux-hotplug





Hi all,

I was looking at the fakephp code, and noted that it just refuses to touch
a bridge.  I was wondering if this is because of not wanting to handle
recursively disabling devices behind the bridge, or not having code
available to re-enable them afterwards, or something else I didn't think
of.  (I'm asking because I'd like to fake replugging a bridge.)

I also have a couple of specific questions.  Is there a better way to find
which hotplug_slot is associated with a (pci_dev*) device than walking the
dummy slot list, and looking for one with a matching dev field?  Also, when
re-enabling a device, I'm assuming that storing the hotplug_slot object
(and a copy of the pci_dev object) would be needed, probably along with
something indicative of which bus something was attached to (and,
presumably, a copy of the pci_bus object, for bridges).

The problem I'm having now is that I have a number of cardbus bridges, most
of which are behind a pci2pci bridge.  The ones in front I got working by
setting the p2cclk flag on (per suggestion of David Hinds), and by
disabling IRQs 10 and 11 in the BIOS (there was an IRQ routing conflict
between 9 & 11).  The ones behind the p2p bridge, on the other hand,
recognize very few cards, and don't do anything with the ones that do get
recognized (they never show up with correct info in cardctl ident, and
nothing shows up via lspci).

The one specific sign of a problem that I have is that both the secondary
and subordinate numbers for the p2p bridge show up as 2.  This doesn't
prevent the cardbus bridges behind from being (apparently) correctly
configured (memory, port, and bridge allocations all appear ok).  I've
tried manually changing the subordinate byte to be the same as the
highest-numbered subordinate of the cb bridges, but that didn't accomplish
anything.

Anyway, if anyone has any ideas, I'm all ears.  Thanks,

Dave Clemmer



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id149&alloc_idÅ66&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] 2+ messages in thread

end of thread, other threads:[~2004-05-28 23:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-03 13:51 fake hotplug questions David Clemmer
2004-05-28 23:18 ` Greg KH

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