Re: msleep(1000) in pciehp_ctrl.c makes laptop boot slow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 17, 2008 at 11:36:47AM +0900, Kenji Kaneshige wrote:
> Phil Endecott wrote:
> > Dear Experts,
> > 
> > Some of you may have heard about Arjan van de Ven and Auke Kok's work
> > to get an ASUS EEE 901 to boot in 5 seconds.  I'm trying to achieve
> > something similar on my own '901.
> > 
> > One of the things that Arjan and Auke didn't do in their startup was
> > wireless networking.  This can be switched on and off using a special
> > key combination, and uses pcie hotplug.  I'm not entirely certain how
> > it all hangs together, but what seems to work is loading pciehp either
> > as a module or built in to the kernel, and setting pciehp_force=1.
> > This is functional, but very slow because of at least one msleep(1000)
> > in pciehp_ctrl.c.  Arjan & Auke boot their kernel in less than a second,
> > but mine spends does about four of these 1-second waits :-(
> > 
> > So, what can I do about this?  I am a bit suspicious of the pciehp_force
> > parameter; what is it supposed to do?  I only need hotplugging on this
> > one device; can I avoid these delays for initialisation associated with
> > other PCI devices that cannot be hot-unplugged?  Can the 1 second delay
> > safely be reduced?  Can it be made to occur concurrently with other
> > activity?
> 
> If your platform allows hotplug using OS native hotplug driver (pciehp
> in Linux) to handle hotplug slots, you don't need pciehp_force. The
> pciehp_force parameter is supposed to be used only for testing purpose
> if you want pciehp to handle hotplug slots even though your platform
> doesn't allow hotplug using OS native hotplug driver.

While true, this doesn't really help him.

Is there any way of getting rid of this one-second delay?

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux