Re: Add option to passively listen for PCIE hotplug events

From: Matthew Garrett
Date: Tue Nov 04 2008 - 10:57:39 EST


On Tue, Nov 04, 2008 at 03:44:23PM +0000, Alan Jenkins wrote:

> I instrumented all the delays I could find. hpc_check_lnk_status() was
> the only one that came up. 1000ms delay per call, and I get 6 such delays.

Ok, which is getting called from pciehp_enable_slot(). I'm not quite
clear on why this is being called 6 times - any chance you can put a
dump_stack() in there? Some are probably directly from the resume code.
This confuses me a little, since there's a check for whether there's a
card in the slot first. If that fails, pciehp_enable_slot() isn't
called. If it succeeds, pciehp_enable_slot checks whether the slot is
already powered up. If it is, it bails before doing the link setup. So
something funny is going on here, since on the Eee I'd expect those
slots to either be empty or already powered up.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/