Re: [patch 5/3] fastboot: sync the async execution before late_initcall and move level 6s (sync) first

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Simon Arlott
Date: Thursday, July 31, 2008 - 4:49 am

On Wed, July 30, 2008 20:41, Alan Stern wrote:

I wasn't suggesting comparing ehci_hcd_init/ohci_hcd_mod_init times,
with fastboot I'm assuming it may manage to take a lock those need in
the main initcall process and delay hcd inits.


Yes - and that's the point. The initcall process when it reaches usb/ is
this:
1. ehci_hcd_init
2. ohci_hcd_mod_init
3. usblp_init

There is nothing else to run between 1-2 and 3, so there is no opportunity
to initialise devices in the background and usblp_init blocks for a while.

If ehci_hcd_init and ohci_hcd_mod_init were moved up to before sata/ide/net
but usblp_init was kept after these then the devices should be ready by the
time it gets there.


I'll try this tonight, but all I'd expect to see is the background thread
take longer to do anything?


There's a lot of delays going on during sata/ide/net init, waiting for
the device to do something - usb init continues concurrently.


The usb device driver initcalls aren't initialised by khubd and they're
definitely blocking on the khubd device initialisation [for that device,
as you said earlier] being completed.

-- 
Simon Arlott
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [patch 5/3] fastboot: sync the async execution before ..., Arjan van de Ven, (Sun Jul 20, 2:50 pm)
Re: [patch 5/3] fastboot: sync the async execution before ..., Arjan van de Ven, (Tue Jul 29, 2:04 pm)
Re: [patch 5/3] fastboot: sync the async execution before ..., Arjan van de Ven, (Tue Jul 29, 2:21 pm)
Re: [patch 5/3] fastboot: sync the async execution before ..., Simon Arlott, (Thu Jul 31, 4:49 am)
[PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 11:40 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 12:11 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 12:20 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Greg KH, (Wed Aug 6, 12:29 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 12:49 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Arjan van de Ven, (Wed Aug 6, 12:56 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 1:07 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 1:09 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Arjan van de Ven, (Wed Aug 6, 1:17 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 1:26 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 1:27 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 2:49 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Wed Aug 6, 3:34 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Wed Aug 6, 3:53 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, David Brownell, (Wed Aug 6, 8:29 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, David Brownell, (Wed Aug 6, 8:34 pm)
Re: [PATCH RFC] USB: Add HCD fastboot, Emanoil Kotsev, (Thu Aug 7, 2:28 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Thu Aug 7, 7:14 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Alan Stern, (Thu Aug 7, 9:47 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Rene Herman, (Fri Aug 8, 2:24 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Simon Arlott, (Fri Aug 8, 4:29 am)
Re: [PATCH RFC] USB: Add HCD fastboot, Rene Herman, (Fri Aug 8, 7:30 am)