lkml.org 
[lkml]   [2013]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] wait while adding MMC host to ensure root mounts
From
Date
On Thu, 2013-04-04 at 09:35 +0300, Adrian Hunter wrote:
> No, I am booting from eMMC.

Well, in this case you should be aware, that your system is not
concurrency-safe without the patch. It may or may not boot each time
depending on the large number of factors.

> > Maybe introduce mmc_is_hosting_root() and do something like:
> >
> > - mmc_flush_scheduled_work();
> > + if (mmc_is_hosting_root())
> > + mmc_flush_scheduled_work();
>
> No, I am booting from eMMC. Perhaps a host capability:
>
> if (host->caps2 & MMC_CAP2_ROOTWAIT)
> mmc_flush_scheduled_work();
>

Neither my variant, nor yours will help to handle the increased boot
time.

The root cause is that probing several devices is done sequentially and
mmc was reporting end of its probing before it was actually happening.
My patch makes mmc report end of probing on-time. The correct way to fix
the additional delay, my patch introduces, is to rewrite the probing to
be parallel instead of sequential. I understand that it is much easier
just to revert the patch.

If the patch is reverted, something like this somewhere in
'init/do_mounts.c' could conditionally activate 'root_wait':

if (mmc_is_hosting_root())
root_wait = 1;

IMHO this is wrong and my patch is right, but better this than broken
mmc boot.



\
 
 \ /
  Last update: 2013-04-04 13:42    [W:0.057 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site